Reputation
4,326
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
4 19
Newest
 python
Impact
~59k people reached

Apr
23
comment Any suggestions for offline maps for Windows laptops?
Have you looked into the ArcGIS Runtime SDK for WPF? It supports offline editing.
Apr
20
comment Using Editor tools in Arcpy script
Yep, that wouldn't be hard to work in, the above is just demonstrating a simple geometry merge. If the user is just adding some values, at each iteration in the top loop (not the parts), they could append the values to a list and run a sum().
Apr
20
answered Using Editor tools in Arcpy script
Apr
18
answered Pass sql expression with GetParameterAsText to SelectLayerbyAttribute in .py script
Apr
14
comment Spatial Reference not working with If-Else
it needs to be srcDesc.spatialReference.Name with the "S" being lowercase as it is a class property.
Apr
8
revised Public transport offline routing
edited tags
Apr
8
comment Public transport offline routing
I just added an answer that has some links. I hope it helps.
Apr
8
answered Public transport offline routing
Apr
7
comment Public transport offline routing
Ah, I missed that detail when I read your post. You can do this with public transport routing, you would just need to build the network yourself. In the sample I posted, Esri has created a network for the streets of San Francisco and published it as a tile package.
Apr
7
comment Public transport offline routing
Yes, I would recommend having a look at the ArcGIS Runtime SDK for iOS, it supports fully offline routing and geocoding. Here is a sample from their GitHub page. They have samples in both Swift and Objective-C.
Apr
5
comment How can I change number format and alias in javascript API legend?
I think if you set the labels up for the symbology of the feature class within the MXD you are publishing from, that should automatically carry over to the JS API for the Legend.
Apr
1
comment Fiona: get each feature extent (bounds)
+1, this is brilliantly efficient.
Apr
1
answered How can I get a map image from an ArcGIS mapserver centered on a single feature?
Apr
1
comment How can I change number format and alias in javascript API legend?
You'll have to stop the Service and then you can use either Alter Field or you can do this in the Feature Class properties in the Fields tab.
Apr
1
answered How can I change number format and alias in javascript API legend?
Mar
28
comment Can a tab masquerade as a space in a unicode string?
That makes sense. The problem was you were referencing the whole row object, which is either a list or tuple that gets returned from the cursor. To set individual field values, you need to reference that value by the index that matches the field.
Mar
28
answered Can a tab masquerade as a space in a unicode string?
Mar
24
comment Fill in NoData gaps in raster using ArcGIS for Desktop?
you could set an environment to clip to the extent of the original raster. Assuming in_raster is a Raster object, you can do this before executing the line above: arcpy.env.extent = in_raster.extent and it should clip it to the original extent.
Mar
23
comment Loop over pixel data using Python in ArcMap
Have you looked into converting the raster into numpy arrays?
Mar
22
answered Looping fields in an update cursor