The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
55 views

How to return the first row of feature class as a list in ArcPy?

I need to return the first record of a feature class as a list. Is this possible? I can't seem to figure it out using row.getValue() as it does not allow me to put a wildcard in there.
1
vote
1answer
295 views

Subquery a list in select layer by attribute management using python

I am new to python and having trouble with my script. I want only the records from the COMTRS field (of the pur_dbf_view) that match values from the ComtrsList to be selected; however, I am getting ...
0
votes
0answers
18 views

Convert raster_stats list output to array / csv file

I usually program in R, but recently I have started to use python for most of my spatial programming. My python skills are still limited, and please excuse the simplicity of the question. I am ...
1
vote
2answers
98 views

Creating a drop down list in ModelBuilder

I have a model that exports GIS data to CAD. The model has two nested models, the first collects the data to be exported and the other exports it. The export to cad tool has a seed file parameter ...
1
vote
1answer
76 views

Multiply a raster list with a field value list in a FOR loop in ArcPy

I'm trying to create a simple map algebra calculation not managed by ModelBuilder, but writing it in Python is trickier than I thought. I have a list of raster in a GDB and I must multiply them by ...
1
vote
1answer
60 views

ListRasters not recognizing raster files in python

I have 2 rasters in my workspace, one in TIFF Format and the other in GRID format: "C:\ExampleFolder" When I use the python script: import arcpy >>> ...
3
votes
2answers
361 views

Where is list of Geographic Transformations in ArcGIS, and their areas of applicability?

I have some data in Provisional South American Datum 1956, and I need to project it to Web Mercator with WGS84 as the datum. When I use the project tool in ArcGIS desktop, it requires a Geographic ...
0
votes
0answers
64 views

extract country code from lat long submission - offline

1) need to extract the country code 3166 from a lat long submission (example http://ws.geonames.org/countryCode?lat=-16.03&lng=167.2 2) want to localize that data set of country coordinates if ...
4
votes
1answer
106 views

How to check if feature class or table contains field with specific name before adding it?

Im trying to write a script that finds out if the shapefile has a specific field and if not to add the field. I get it to show me the field, but the loop goes through each field, so it would create a ...
1
vote
1answer
46 views

How do I use a generic List with my Arc Objects code?

/// <summary> /// Gets a list of all geoms in a Feature Class /// </summary> /// <param name="FClass">The Feature Class</param> /// <returns>a List of ...
0
votes
0answers
28 views

arcpy.ListFeatureClasses(wildcard, type, dataset) - Help with grabbing from 2 different feature datasets? [duplicate]

I'm trying to join multiple line fcs to their matching named point. (point and lines in same gdb, but separate feature datasets. stand alone python script/arcgis 10.1) My initial line of psuedocode ...
0
votes
1answer
245 views

Parsing list object file paths for file name

I am trying to automate a naming process that takes the file name from a list of file paths to name other folders, geodatabases, zipfiles, etc. The problem I'm running into is that, I assume, I am ...
5
votes
3answers
2k views

Table to table script using Excel sheets (not workbooks) arcpy

So what I'm trying to do is to create feature classes from the sheets in an Excel table. I can get it to work if I save each excel sheet as its own workbook, however this isn't really what I want. I ...
3
votes
2answers
181 views

Process every 100 records in list

An arcpy merge process is failing due to the size of the datasets and I need to just merge every 100 tiles before it goes on to the next 100 tiles. I wrote the following snippet but it is just ...
2
votes
1answer
192 views

Convert a List to a file list to use in an arcpy tool

I just can't figure out how to feed a list of files into an arcpy tool... I have List_tif.append(os.getcwd()+"\\Stage1\\"+name+"\\GeoTif\\"+name+"_"+str(ddp.pageRow.PageName) + ".tif;") That ...