ArcGIS-Brasil
31.9K views | +2 today
Follow
 
Rescooped by Richard Dalaqua from ArcPY - Python
onto ArcGIS-Brasil
Scoop.it!

Field mapping and Python scripting | ArcGIS Resource Center

Field mapping and Python scripting | ArcGIS Resource Center | ArcGIS-Brasil | Scoop.it

A number of geoprocessing tools including Spatial Join (Analysis), Append (Management), Merge (Management), Feature Class To Feature Class (Conversion), and Table To Table (Conversion), have a parameter for controlling how fields from the input dataset(s) are processed and written, or mapped, to the output dataset – the Field Map parameter. In addition to the simple moving of attributes from input to output, field mapping can also be useful for some common tasks such as field concatenation and calculating statistics like mean, sum, and standard deviation.

 

If you haven’t used the Field Map before, you should! Understanding and using field mapping will often reduce the number of processing steps in a workflow, and ensure that, in any scenario, attributes are handled in an appropriate way. Yes, the Field Map parameter is a complicated one, but it is well worth the time it takes to figure it out.

Because the Field Map is a complicated parameter, working with it in Python can also be complicated. The best way to interact with field mapping in Python scripting is with the FieldMappings object. In Python, most geoprocessing tool parameter types are seen as simple numbers or strings (specifying a feature class input is as easy as providing the feature class’ path). But several of the more complex parameters have objects that exist to help you effectively work with the parameter. The Field Map parameter can accept a long structured string indicating the field map settings (you may have seen this long string equivalent in geoprocessing messages), however, working with the field mapping string is inefficient and error-prone, so use the FieldMappings object for the best experience.

 

Problem

I was recently presented with a data migration problem where field mappings and Python scripting literally saved me weeks of work. The goal was to convert a collection of hundreds of VPF (Vector Product Format) databases containing many feature classes to a handful of geodatabases, and because of the large scale of the migration it had to be accomplished in an automated fashion (this is where the many weeks of work would be saved). The schema of the geodatabases was already set up with a number of feature datasets and empty feature classes into which the VPF feature class data would be imported using the Append (management) tool.

The iteration through the collection of VPF databases was solved with some simple looping techniques involving the arcpy.ListDatasets() and arcpy.ListFeatureClasses() functions. However, there was a fundamental problem that nearly derailed the automation of this process: VPF feature classes can have spaces in their field names, while geodatabase datasets cannot. When the empty geodatabase feature classes were created from the schema of the VPF feature classes, the spaces in the field names were automatically changed to underscores ( _ ) in the geodatabase feature classes. This very subtle difference caused huge ripples in the automated process, since the Append (Management) tool can not automatically match fields like ‘mcc description’ to ‘mcc_description’; in the output geodatabase feature class, all the values in the ‘mcc_description’ field are NULL because the fields were not matched.

 

 

 


Via Elpidio I F Filho
more...
No comment yet.
ArcGIS-Brasil
Assuntos relacionados ao Software de SIG ArcGIS
Your new post is loading...
Your new post is loading...
Scooped by Richard Dalaqua
Scoop.it!

6 apps in our new App Showcase you need to see

6 apps in our new App Showcase you need to see | ArcGIS-Brasil | Scoop.it
Sharing information through GIS-based Web apps is growing in popularity and the continuous release of out-of-the box tools is making it easier and easier to create them.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Georreferenciamento ArcGis Arcmap - Basemap - Aula 02

Georreferenciamento de imagem com o Arcmap utilizando Basemap. Obs.: para melhorar a qualidade do vídeo utilize a ferramenta DETALHE que se encontra ...
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

June Topographic and Imagery Basemap updates

June Topographic and Imagery Basemap updates | ArcGIS-Brasil | Scoop.it
New Canadian content has been added to both the Imagery and World Topographic Basemaps on ArcGIS Online. Find out which regions have been updated.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Criar um Esri Personal Geodatabase e Importar Dados | Anderson Medeiros

Criar um Esri Personal Geodatabase e Importar Dados | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
Neste tutorial explicamos desde como criar um Personal Geodatabase, visualizar sua estrutura e como inserir dados geográficos no banco gerado.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Criar um Esri Personal Geodatabase e Importar Dados | Anderson Medeiros

Criar um Esri Personal Geodatabase e Importar Dados | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
Neste tutorial explicamos desde como criar um Personal Geodatabase, visualizar sua estrutura e como inserir dados geográficos no banco gerado.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Como Trabalhar com Diagrama de Voronoi no ArcGIS | Anderson Medeiros

Como Trabalhar com Diagrama de Voronoi no ArcGIS | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
O diagrama de Voronoi, também conhecido pela denominação de polígonos de Thiessen são utilizados para resolver problemas que envolvem conceito de proximidade em
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Apostila: Introdução ao Geoprocessamento com ArcGIS | Anderson Medeiros

Apostila: Introdução ao Geoprocessamento com ArcGIS | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
A apostila foi elaborada para treinamento de colaboradores da Embrapa Solos, e também de seus parceiros, em ferramentas de SIG, utilizando o programa ArcGIS. O
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

ArcGIS: Como Recortar Dados Raster a partir de Polígono de Interesse | Anderson Medeiros

ArcGIS: Como Recortar Dados Raster a partir de Polígono de Interesse | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
Neste tutorial aprenderemos como usar o ArcGIS para recortar imagens a partir shapes. Faremos uso de uma das ferramentas do ArcToolBox.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Apostila: Iniciando no ArcGIS

Apostila: Iniciando no ArcGIS | ArcGIS-Brasil | Scoop.it
Na internet há muito material de qualidade, em vários idiomas, sobre o ArcGIS. Indicamos aqui uma excelente apostila gratuita, elaborada de forma a ajudar o usuário iniciante a dar seus primeiros p...
more...
No comment yet.
Rescooped by Richard Dalaqua from ArcGIS-Brasil
Scoop.it!

Mapping the Future with Big Data | World Future Society

Mapping the Future with Big Data | World Future Society | ArcGIS-Brasil | Scoop.it

Esri offers a “Facebook for Maps” that promises to change the way we interact with our environment, predict behavior, and make decisions in the decades ahead.


Via Alexandre Marques de Aguiar, Richard Dalaqua
more...
No comment yet.
Rescooped by Richard Dalaqua from Geoflorestas
Scoop.it!

Mapping the Future with Big Data | World Future Society

Mapping the Future with Big Data | World Future Society | ArcGIS-Brasil | Scoop.it

Esri offers a “Facebook for Maps” that promises to change the way we interact with our environment, predict behavior, and make decisions in the decades ahead.


Via Alexandre Marques de Aguiar
more...
No comment yet.
Rescooped by Richard Dalaqua from Geotecnologias & Governo Federal
Scoop.it!

Primeiros Passos com a ArcGIS JavaScript API

Primeiros Passos com a ArcGIS JavaScript API | ArcGIS-Brasil | Scoop.it

No dia 05/09 às 15:00 horas, Roberto Pepato, Engenheiro de Software GIS, vai apresentar como utilizar a ArcGIS JavaScript API para criar geoaplicações, de forma simples e com pouco esforço de codificação. 

Junte-se a nós nesta sessão de live coding para aprender os fundamentos da ArcGIS JavaScript API e saiba como construir suas primeiras aplicações!


Via André Gavlak
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Adicionar Fotografias no ArcGIS - GeoTagged Photos to Points

ArcGIS Angola, 1ª Video Aula - (Demo) - Como adicionar uma foto do GPS, Camera ou SmarthPhone com GPS ativo no ArcGIS e realizar o mapeamento da sua ...
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Georreferenciamento ArcGis Google Earth Pro - Aula 01

Georreferenciando imagem do Google Earth Pro utilizando o ArcGis 10.1 (Arcmap). Obs.: para melhorar a qualidade do vídeo utilize a ferramenta DETALHE ...
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

December Updates to the World Topographic Map

December Updates to the World Topographic Map | ArcGIS-Brasil | Scoop.it
The World Topographic Map was updated this week with new content and a new design for 1:144 k, 1:72 k and 1:36 k scales.
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Explorer for ArcGIS agora disponível em versão Android | MundoGEO

Explorer for ArcGIS agora disponível em versão Android | MundoGEO | ArcGIS-Brasil | Scoop.it
Projetado para qualquer um que precise explorar dados em um contexto geo- gráfico, o Explorer for ArcGIS permite descobrir e...
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Some tips on capturing ArcSDE error logs to diagose issues | Esri Canada

Some tips on capturing ArcSDE error logs to diagose issues | Esri Canada | ArcGIS-Brasil | Scoop.it
Some tips on capturing ArcSDE error logs to diagose issues http://t.co/WazAqI99Yl via @EsriCanada
more...
No comment yet.
Rescooped by Richard Dalaqua from geoinformação
Scoop.it!

Livro Gratuito: ArcGIS no Processamento de Imagens Orbitais | Anderson Medeiros

Livro Gratuito: ArcGIS no Processamento de Imagens Orbitais | Anderson Medeiros | ArcGIS-Brasil | Scoop.it
Neste artigo iremos indicar um excelente e-book gratuito sobre Processamento de Imagens Orbitais no ArcGIS.

Via geoinformacao
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

Como fazer o Download Gratuito e Instalar o ArcGIS

Como fazer o Download Gratuito e Instalar o ArcGIS | ArcGIS-Brasil | Scoop.it
Como baixar o ArcGIS gratuitamente e validar a instalação? Neste tutorial queremos propor um guia completo sobre como fazer o download, instalação e ativação do ArcGIS 10.2. Logicamente, estamos no...
more...
No comment yet.
Rescooped by Richard Dalaqua from ArcGIS Geography
Scoop.it!

Técnicas de Classificação de Imagens ArcGIS - YouTube

As principais técnicas de classificação de imagens supervisionada e não supervisionada através do ArcGIS.

Via Alexandre Marques de Aguiar
more...
No comment yet.
Rescooped by Richard Dalaqua from Geotecnologias & Governo Federal
Scoop.it!

Plug-in para ArcGIS: Landsat 8 Image Service Add-In Tools

Plug-in para ArcGIS: Landsat 8 Image Service Add-In Tools | ArcGIS-Brasil | Scoop.it

Add-In for ArcGIS Desktop 10.2.1 or 10.2.2 - to add and analyze Esri's Landsat 8 image serviceClick here to edit the title


Via André Gavlak
more...
No comment yet.
Scooped by Richard Dalaqua
Scoop.it!

E-books Gratuitos da Esri sobre GIS

E-books Gratuitos da Esri sobre GIS | ArcGIS-Brasil | Scoop.it
A Esri está distribuindo para download gratuito uma série de livros digitais gratuitos sobre tópicos diversos que vão desde conceitos básicos em SIG até as diversas aplicações do sistema ArcGIS par...
more...
No comment yet.