Need python code example – setting a combo listbox to Null
I want to be able to set the value of a field to Null using python, but I get an error. I am using arcpy.CalculateField_management Any help would be appreciated. Rob Smith
View ArticleWhy does CalculateField set values to when called after arcpy.Describe()?
I’m quite new to ArcGIS, and now I have to work on a script that goes through a list of feature classes to: add a field to their attribute table and fill that field with a number that I retrieve from...
View ArticleHow do I change the isNullable property for a field?
Once in awhile I encounter a field in my featureclasses that have their isNullable property set to No. Is there a simple way using python to correct this? I came up with this code, but unfortunately...
View Articlearcpy.setValue for Condition from Dictionary
Hi: I am trying to create a function to update multiple fields based on different criteria. I want to pass the field name and condition thru’ a dictionary (please see the function description in the...
View ArticleAdd a time dimension in ESRI mosaic raster dataset
I am in the process of creating a script to pull daily .asc files from a ftp server, convert them to a raster format, and push them into a mosaic raster dataset. Ultimately, the raster dataset will be...
View ArticleCopy Raster Catalog from .mdb to .gdb, but only within a certain extent with...
I am stumped again, this website has really helped me before so here is another shot. I am trying to copy a raster catalog from a personal geodatabase to a newly created file geodatabase but only...
View ArticlePlease help, need script [closed]
need help . I am new in programming, learning now. using ArccGis 10.0 and need script if someone can write the code for next operation: I have 2 layers “seqtor”(polygon) and “PP”(polygon). “seqtor” and...
View ArticleHow to create buffers around points layer and clip to features in another...
I have a points feature class and I need to create a buffer around each point, then use the point buffers to clip the streets feature class and then calculate the length of the clipped streets using...
View ArticleHow to place points along a line in a specific offset using python / arcpy?
I have a street shapefile with information about the street name, house number from / to on the left side and house number from / to on the right side. My aim is to create a point shapefile that...
View ArticleArcGIS Desktop 10.1 SP1: how to install/use additional Python modules?
I’m currently working on a project where I have to identify geomorphological features in a digital elevation model. Since the aim is to have a single ArcGIS Toolbox integrating all processing steps in...
View ArticleIs there a compelling case to learn/use Python Toolboxes (new at ArcGIS 10.1)...
I’ve written a few Python Toolboxes (which are new at ArcGIS 10.1), but am yet to decide whether/when I should write them rather than Python Script Tools in a standard toolbox. I thought the Online...
View ArticleUsing update cursor on a field with a domain
I have been replacing field calculations with python update cursors in many of my work flows and today I ran into a problem. The fields being updated have an attribute domain. so now, when I...
View ArticleArcPy method to determine ArcMap document version
Is there a way with ArcPy to identify the version of a Map Document (MXD). I am working on a solution to inventory our MXD’s and would like to know if a document is 8.1, 9.2, 10.0, etc. I am currently...
View ArticleHelp with Point on Polygon overlay in ArcPy
I am trying to do this simple task but not sure how to do this in Python. I have a point shapefile and I want to overlay with polygon layer to get all the polygons for each point. After this would...
View ArticleHow do I obtain layout coordinates of features using arcpy?
I just read the topic about Convert point XY to page units XY using arcpy? but I didn’t find a solution to my problem. I have a point layer file, I know coordinates in map view, I’d like to know...
View ArticleCreate line from two points, two different feature class
I’m attempting to automate this in ModelBuilder in ArcMap. I have one feature class with one point (Start) and one feature class with multiple points (Destinations). I want to iterate through the...
View ArticleArcPy Create Point Along Line A Specified Distance From A Specified Point
In ArcGIS Basic I am trying to take a road polyline(one segment for the entire length of road) and get a point placed on the map a specified distance from an intersection. I have a layer of...
View ArticleCan ArcPy 10.1 be used to generate true curve elliptical polygons in a file...
As background, this question arose from trying to answer a question on How to generate overlapping polygons from lines output from Table To Ellipse tool? Using the ArcMap GUI it is very easy to...
View ArticleArcGIS Python Extension – How to Capture Edited Feature in onChangeFeature event
I’ve built an ArcGIS 10.1 Addin in Python. It is set up and functions properly in ArcMap with simple print commands as the event body. I’d like to capture the attributes being changed for a feature and...
View ArticleHow to rename a file in the output (ArcGIS python)?
raslist=arcpy.ListRasters() for ras in raslist: arcpy.ProjectRaster_management(ras,outfolder2+ras+'_Albers',spatialref2) print ras+' has been reprojected' I was using the above code for batch...
View Article