Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live
↧

How to access arcgis online for routing service from arcpy

Hi I am trying to geocode addresses and make a route using arcpy and arcgis online. I successfully complete the geocode using arcpy and arcgis online. Using CSV file data and generate points data as...

View Article


spatial license "NotLicensed" in stand alone script...

... but fine (Available) when I debug the script in a python IDE. In this doc on page 116, I read that the setting of product and extensions is necessary only within stand alone scripts. So in my py...

View Article


Update fields from Spatial Join

I am trying to populate some fields of a feature class from a spatial join. The fields i need have different names and i am not sure how to update those fields. I would appreciate any help. For example...

View Article

Creating buffer with Python

I am very new to python, and am trying to utilize a stand alone script that I can use on a working geodatabase full of feature classes in various feature datasets. Here's what I'm trying to accomplish,...

View Article

dir function does not show CreateSQLiteDatabase too

I'm just starting to work with 10.2. One new functionality I want to explore is the use of SQLite databases. According to the documentatation http://resources.arcgis.com/en/help/...000002q000000/ the...

View Article


does running a script as a tool alter python import behavior?

I have attempted to create a common "shared_variables.py" module so that I can share information between a python script tool and an outside python interface. It seems that when the script tool is...

View Article

Image may be NSFW.
Clik here to view.

Min value (OD Cost Matrix)

Hi I have an attribute table with columns that I have gained from running an OD Cost Matrix. In one column named "Total Minutes" I will select the lowest value (the shortest route). Then I will create...

View Article

Create Polygon.shp from Point.shp using Python Code

Hello, I have a question about the code below. Do I create default point and polygon shapefiles or do I neet to add attributes to the point and polygon shapefiles. I have been trying to work on this...

View Article


error 000861: Destination field is not valid:

Hi everyone, First I would like to highlight that I´m an absolut newby with python. I trying to use this already created python tool but keep on receiving this error message: error 000861: Destination...

View Article


Write polyline vertices to csv

I am looking for some code to write out each line feature in a feature class/shapefile to a csv file that would look something like this: FID, X, Y All help is appreciated. thanks Tony

View Article

ArcMap10.1 Loop through a unique list to create new layers for each unique name.

I have only taken one GIS class that used python so this is messy! I was able to get the unique list from the attributes table under the column 'Layer'. Next I need the program to use each unique name...

View Article

Question on FieldMapping(arcpy)

I take an attempt to how fieldmapping is working according to the arcgis desktop help on FieldMapping(arcpy). But it gives me following error. Can you give me a help to solve it. Thanks >>>...

View Article

Sorting Records

Does anyone know of a good way to sort records by attribute value without the sort_management function? I need do the following:Iterate through an FC, get the feature with the highest point value...

View Article


Resizing the width of fields.

My boss has requested an automated process that will make symbology and attribute tables of similar feature classes homogeneous based on a template. One of the main things he is looking for is having...

View Article

Field default values

Hi guy's. I have had a search through the online help, and I must be missing something. I have a number of fields across my schema with no domain associated but they have default values. I can see...

View Article


Image may be NSFW.
Clik here to view.

intersect zip python

hi everyone, I try to change the python script ExtractData to do the intersection., but until now I fails to do so. you find my code attached below. No error is displayed for the moment. I do not know...

View Article

Exporting Layers to PNG using Python

Hi guys! I'm pretty new to python and have a question about an automation i'm trying to achieve. Is it possible to export several layers to a specific file format (the module offers several) using...

View Article


Problems single quotes and variables used in Where Clause

I did not know where else to put this. I have a python list of string variables from an Arc Table I made, some of which contain single quotes in the middle of them. I am trying to have a for loop...

View Article

Editing shapefile with Python

I'm new here at the Forum and I tried looking for something like my problem, and I got nothing. If there is something, please, forgive me. I have a binary polygon shapefile, with a feature called...

View Article

Apply Symbology w/out adding layer to map.

I am using 10.2 which now apparently adds layer to map upon using arcpy.ApplySymbologyFromLayer_management (). I am trying to add symbology to layer and then add layer at a specific position in the...

View Article
Browsing all 2485 articles
Browse latest View live