ArcPY - Python
Follow
Find
42.5K views | +27 today
ArcPY - Python
Information and Tutorials about ArcGis Python
Your new post is loading...
Your new post is loading...
Rescooped by Elpidio I F Filho from Geoprocessing
Scoop.it!

Managing Cultural Data with ModelBuilder and Python - Blogs - Exprodat

Managing Cultural Data with ModelBuilder and Python - Blogs - Exprodat | ArcPY - Python | Scoop.it

Cultural data which E&P organisations rely on for exploration and commercial developments is ever-changing by nature. Status of leases change, as do company equities and stakes in existing and new blocks, number of wells and information about production.
Typically, cultural data is made available by the data suppliers as regular updates, often in an unstructured format, including shapefiles or file geodatabases, tables and .csv files, which need to be incorporated within the organisation's corporate spatial data repositories. Datasets also need to comply with internal standards, not only in terms of data format, but also in term of naming conventions (for both feature classes as well as attributes), coordinate reference system and language......

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Python's version for Object Model Diagram

Is there anything similar to the object model diagram for Python. I looked at the documentation starting on this page: http://help.arcgis.com/en/arcgisdesk...00000v7000000/ However, this section on arcpy does not appear to cover all functions, ...
more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Python Scripting with ArcGIS

An intro to Python scripting with ArcGIS and how to use the Model Builder to create Python Scripts.
more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

The ArcPad Team Blog: ArcPad and Python

The ArcPad Team Blog: ArcPad and Python | ArcPY - Python | Scoop.it

As of ArcPad 10.0.3, the Windows (Desktop/Tablet) version now supports the Python (2.6) scripting language in addition to vbScript and Jscript. There is a port of Python to windows Mobile, you might want to try PythonCE - http://sourceforge.net/projects/pythonce/ but do so at your own risk as it is not an "official" port.
You can now write your applets and customizations in python and take advantage of many of the extra libraries that are available to Python users.
Supports the ArcGIS implementation of ArcPy.
If you have ArcGIS installed on the same PC as ArcPad they are already there, or
Using ArcPad in conjunction with an ArcGIS Runtime license (I currently have this on my laptop).........

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Learning Python | LIGIS

Learning Python | LIGIS | ArcPY - Python | Scoop.it

Python as you already know is a programming language that is included in default installations of ArcGIS. There are many ways that you can learn how to use this language, some free and some not. I have put together a list of some training resources below.................

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Updating and fixing data sources with arcpy.mapping

There are numerous reasons why data sources need to be repaired or redirected to different locations. The idea of making these changes manually in every affected map document can be overwhelming. Methods are available with the arcpy.mapping scripting environment that make it possible to automate these changes without even having to open a map document. You have control of updating data sources for individual layers, or you can update all layers at once that have a common workspace. Brief discussions are available with each method's help topic, but this document is intended to summarize and compare them all......

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Calculate a unique value for each record « Café Python

Calculate a unique value for each record « Café Python | ArcPY - Python | Scoop.it

In this example, a unique value is calculated for each record starting with 1. The result is 1, 2, 3 … to the number of records. This is often necessary when you have to do some spatial operation and perform a join or relate using that field. It can also be useful when your table doesn’t have an OBJECTID field.....................

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Calculate a mean value from a field « Café Python

Calculate a mean value from a field « Café Python | ArcPY - Python | Scoop.it

Here’s a function to return a mean value from a field by taking advantage of the Summary Statistics tool.

This code is supported in ArcGIS 10.0: ...................

 

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

A handy wildcard tip « Café Python

A handy wildcard tip « Café Python | ArcPY - Python | Scoop.it

As you know, the arcpy module provides functions built specifically for listing data so it can be iterated through during processing. All these list functions can be passed a wildcard argument which filters what is returned. For example, if you only require feature classes that start with a prefix of “tax”, you would do this:

......................

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Using geometry objects with geoprocessing tools

In many geoprocessing workflows, you may need to run a specific operation using coordinate and geometry information but don't necessarily want to go through the process of creating a new (temporary) feature class, populating the feature class with cursors, using the feature class, then deleting the temporary feature class. Geometry objects can be used instead for both input and output to make geoprocessing simpler. Geometry objects can be created from scratch using Geometry, Multipoint, PointGeometry, Polygon, or Polyline classes.

 

Using geometry as input
The following sample creates a polygon geometry object created using a list of x,y coordinates. The Clip tool is then used to clip a feature class with the polygon geometry object.......

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

arcpy.mapping sample script tools | ArcGIS Resource Center

arcpy.mapping sample script tools | ArcGIS Resource Center | ArcPY - Python | Scoop.it

These (~20) tools were created as representative samples for how arcpy.mapping could be used to perform a variety of tasks. The script tools are divided into 3 categories: Cartography Tools, Export and Printing Tools, and MXD and LYR Management Tools.

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Using ArcPy Mapping to Add and Remove Layers in a Map Document

Using ArcPy Mapping to Add and Remove Layers in a Map Document | ArcPY - Python | Scoop.it
In previous posts on the new ArcPy.Mapping module, introduced at ArcGIS 10, I introduced some of the capabilities of the module and showed you how to programmatically access and manipulate layout e...
more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

a goes to c: Great circle flights from Beijing, arcpy version

a goes to c: Great circle flights from Beijing, arcpy version | ArcPY - Python | Scoop.it
In the previous post, we found a pure Python solution to generating great circles from a common point, specifically from Beijing airports to all other airports in the world that maintain commercial flight routes from it.
more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Ebook : Dive Into Python

This book lives at http://diveintopython.org/. If you're reading it somewhere else, you may not have the latest version.

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in Appendix G, GNU Free Documentation License.

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Learn Python - Free Interactive Python Tutorial

Learn Python - Free Interactive Python Tutorial | ArcPY - Python | Scoop.it
Welcome to learnpython.org's interactive Python tutorial.

 

Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn the Python programming language.

You are welcome to join our group on Facebook for questions, discussions and updates.

Just click on the chapter you wish to begin from, and follow the instructions. Good luck!

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

arcgis 10.0 - How to clip a vector feature to the extent of an existing raster dataset using arcpy - GIS - Stack Exchange

arcgis 10.0 - How to clip a vector feature to the extent of an existing raster dataset using arcpy - GIS - Stack Exchange | ArcPY - Python | Scoop.it

I have a clipped raster dataset with polylines (from the contour tool) overlayed (see attached). I am trying to clip the polylines to the extent of the raster dataset, which seems simple enough, but I've tried multiple things and can't seem to get it to work. I will eventually need to code this using arcpy but I think for now, just a nudge in the right direction as to which tool will accomplish this will help me for now..........

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Create a list of unique field values « Café Python

Create a list of unique field values « Café Python | ArcPY - Python | Scoop.it

This function can be used to return a unique list of field values. It takes advantage of the new data access module in ArcGIS 10.1. ...............

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Find overlapping features « Café Python

Find overlapping features « Café Python | ArcPY - Python | Scoop.it

In ArcGIS 10, additional functions for performing relational operations was added to the geometry object. The following code uses the overlaps function to find overlapping features and prints out the ObjectID pairs. For a complete list of relational operators, see the Geometry class. This code is supported in ArcGIS 10.0. ................

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Recursive list feature classes « Café Python

Recursive list feature classes « Café Python | ArcPY - Python | Scoop.it

The following function (recursive_list_fcs) will return a list of all feature classes that fall under the input workspace, including those not seen by the file system such as in a file geodatabase..................

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Using Python to calculate NDVI with multiband imagery

Using Python to calculate NDVI with multiband imagery | ArcPY - Python | Scoop.it
The following is a helpful section of python code to assist with calculating NDVI (Normalised Difference Vegetation Index) using the arcpy site package.  The Image Analysis Window allows you to se...
more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Esri Training | Using Python in ArcGIS Desktop 10

At ArcGIS Desktop 10, Python scripting is tightly integrated into ArcMap and ArcCatalog, allowing you to create and automate GIS workflows quickly and easily.....

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

A quick tour of ArcPy

ArcPy is a site package that builds on (and is a successor to) the successful arcgisscripting module. Its goal is to create the cornerstone for a useful and productive way to perform geographic data analysis, data conversion, data management, and map automation with Python.
ArcPy provides access to geoprocessing tools as well as additional functions, classes, and modules that allow you to create simple or complex workflows quickly and easily.
ArcGIS applications and scripts written using ArcPy benefit from being able to access and work with the numerous Python modules developed by GIS professionals and programmers from many different disciplines. The additional power of using ArcPy within Python is the fact that Python is a general purpose programming language that is easy to learn and use. It is interpreted and dynamically typed, which provides you with the ability to quickly prototype and test scripts in an interactive environment while still being powerful enough to support the writing of large applications......

more...
No comment yet.
Scooped by Elpidio I F Filho
Scoop.it!

Introducing the ArcPy.Mapping Module in ArcGIS 10

Introducing the ArcPy.Mapping Module in ArcGIS 10 | ArcPY - Python | Scoop.it
The ArcPy.Mapping module is new to ArcGIS 10 and brings some really exciting features for mapping automation including the ability to manage map documents and layer files as well as the data within...
more...
No comment yet.