Problem labeling with fields that are null
I am trying to make labels that read: first name last name parcel number The problem is that there are some parcels that do not have last names and as a result just leaves that line blank. I would like...
View Articleexport data driven pages and single mxd with only one python script
Hi everyone, In the past months i had a working in a script for export a group of maps from various mxd in a single folder. In this sense, i developed two approachs: (a) one mxd with a single map to...
View ArticleTurn off map tips in python?
Is there a way to programatically turn off Map Tips (the ones on the Display tab) with Python? Thanks.
View Articlename a list with a record in a cursor...
I want to step through some data in a search cursor and create a new list with a name based off one of the attributes. The code below will return SyntaxError: can't assign to function call. Any ideas...
View Articlelyr.symbology.reclassify() - causes python crash
Hello All: I've been trying to get a code to execute for a couple of days now and I have been unsuccessful, I've even started contacting ESRI about it. I'm a mid-level developer and know most of the...
View ArticleCreate new function for Arcpy
Hello, As a result for my graduation paper I am trying to create a new toolbox for ArcGIS using Python scripting. The problem is I am stuck with my code because none of the existing functions in Arcpy...
View ArticleReturning feature dataset name for a feature class
Python noob here wondering if there's a direct way to return the name of a feature dataset for a feature class. I know I can return the data source and extract the dataset name, but I figure there's...
View Articledeleting used files
The code works, I just want to be able to delete the intersected output.shp and the frequency table once the code finishes looping through the featureclasses. I tried doing a Delete_management but it...
View ArticleError in hyperlink script
I wrote a hyperlink script in Python for the Display tab. It has an if/elif structure based on the value of a field. With just the if clause, it runs fine an opens the document. But when I add the elif...
View ArticleConverting geometries between GeoJSON, esri JSON, and esri Python
Hi, I want to be able to convert geometries between GeoJSON [1], esri JSON [2, 3], and esri Python objects [4] using ArcGIS 10.1 SP1. [1] http://geojson.org/geojson-spec.html [2]...
View ArticleUsing Validator Class to Update Value List Parameter
With the validator class in the arcpy GUI, we can update a value list using the filter.list property: Code: fc = "path to fc" vList = [str(i.getValue("SITE_NAME")) for i in arcpy.SearchCursor(fc)]...
View ArticleGP Performance: Number of map layers in mxd, Foreground vs. Background...
Please help me understand how background/foreground processing performance relates to the number of map layers in the open ArcMap Map Document. Here is an observation that I'm trying to make sense of:...
View ArticleCreating live maps with Python
I would like to create a map showing live data using Python. Essentially I will have attendees sign-up online for events and I want to map the attendees' hometowns. Since registration will be open for...
View ArticleExcel Sheets set up for GIS
I have thirty-eight excel work sheets in a work book that are partially set up for GIS. To complete the set up the first ten rows need to be deleted. Setting up one or two excel sheets is fairly easy,...
View ArticlePython coding for point distance
I am a bit stuck and hoping someone can help. I have some python experience, but am getting stuck on the best rout forward for a specific function I am trying to run. I have two point shapefiles. The...
View ArticleAddin Objects in Python Interpreter Window
Hi: I created an add in that found the unique values in a field and listed the output to the python window. At 10.0 I could access the objects from the addin in the Python window; at 10.2.1 this is no...
View ArticleTrouble with writing feature to shapefile
I created a new shapefile and using the cursor I'm trying to add data to the new shapefile using an array. When I run the python script this always shows: feat.shape = pointArray File "C:\Program Files...
View ArticleImporting libraries in Python Toolbox
I have developed a library in Python which I would like to utilize in a Python toolbox by importing it in the "execute" method of the Tool class, like so: Code: def execute(self, parameters,...
View ArticlePython Script to find data sources
We are in the process of cleaning up a network drive and began loading shapefiles into SDE. Some of the shapefiles that we are migrating are sourced to various mxd's. Is there a script/tool out there...
View Articlejoining features from database to shapefile
Is there a way to use python to do a spatial join from data in an odc connection to a feature. I have multiple queries in an access database that is connected to ArcGIS 10.2.1, and I have created point...
View Article