Reputation
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
5 25 62
Impact
~205k people reached

Jul
14
comment Replacing multiples words using field calculator in attribute table python
Just for clarification, are you replacing all instances of the exact strings "Aa", "Bb" and "Cc" with the string "Rr"?
Jul
5
comment ArcGIS Data Interopabality Extension and Exporting from Mapcom M4
Is it possible that there are features in the table which don't have associated geometry? Just rows? If you're unable to determine the difference between the exported features and the ones in Mapcom, how do you know there are features not being exported? Is it by row count?
Jul
3
comment Limiting digits in ArcMap?
see my edit which explains how to do it with a Double field in a geodatabase.
Jun
24
comment Using .len() in IF THEN statement in ArcMap field calculator
You could add the desired_len as a parameter to the function. Like def zeros(value, desired_len):. That way, you can change the length as required. Then, you call it like zeros(!photoStr!, 5) or zeros(!photoStr!, 8) etc.
Jun
19
comment How to display geotagged photos in layout view to export in map book ArcGIS for Desktop?
You can have image elements in your layout. You might be able to place them into the elements. But what do you plan to do when you have many images? AT the moment, you have four images on the layout, but it looks like there are at least 8 in the map window. How would you handle it if you had 20 image points in the map? Do you want all 20 to appear in the layout? Where should they be placed?
Jun
10
comment How to sort points in a proper order using arcpy?
I've left work and am on my phone now so can't write a proper answer. Look at the linear referencing tools. There's a lot of documentation and plenty of posts on this site about it.
Jun
10
comment How to sort points in a proper order using arcpy?
If these points fall on a coastline, I suggest looking into the linear reference tools. The coastline would be your route layer and the points could be events along the route. This would solve your sorting problem. You'd calculate measures along the route.
Jun
10
comment How to sort points in a proper order using arcpy?
From the documentation: "For the Field(s) parameter, sorting by the Shape field or by multiple fields is only available with an Advanced license. Sorting by any single attribute field (excluding Shape) is available at all license levels."
Jun
9
comment How to create a feature mask with a polygon?
What license level of arcGIS do you have? If you have the Advanced level, you can change the line end type to Flat in the Buffer tool.
Jun
6
comment How to insert non-spatial features into a Polygon shapefile - FME 2015
In your shape file writer, you specify the geometry type. You might need a second writer writing to the same file but with null geometry type. Can't remember exactly what it is called.
Jun
6
comment CalculateField with variables
@apatera please post your comment as a new question
Jun
2
comment How to Remove Multiple Labels for Stacked Points? ArcGIS 10.2.2?
@dmahr, great second suggestion. Elegant.
Jun
2
comment Extracting color values from layer to build index using ArcPy/ArcMap?
Would it be feasible for you to save lyr files which store all those things? You could open all your layers into an MXD with all the symbology set. Then, iterate through them and use arcpy.SaveToLayerFile_management
May
29
comment Are there any Python scripts available for Hydrology to compute watershed Basin from csv file?
Have you had a look at Whitebox GAT?
May
27
comment Batch export all layers in ArcMap document that have selected features?
+1 SIslam, the way you've written now is better. However, you're incorrect about FeatureClassToFeatureClass. It will only export selected features if there is a selection. But if there is no selection, it will export the whole feature class. But the way you've rewritten it, it appears you realise that.
May
27
comment Batch export all layers in ArcMap document that have selected features?
I think you misunderstood the question. The OP asks for exporting only selected features. Not layers which are visible.
May
21
comment How to change sign of z value in a large dataset?
@JessH, please accept this answer.
May
15
comment Distance Measure appears to be wrong in ArcGIS Desktop?
Equal area projections are not suitable for measuring distances. Only areas.
May
12
comment Waterflows simulation in Blender Game engine
This is not necessarily GIS related. It should be on the blender SE site.
May
5
comment Setting Two Definition Queries as Parameters in Python Script tool causes: RuntimeError: LayerObject: Set attribute definitionQuery does not exist
what about base layers? Like ESRI backgrounds? Also, if the answer worked for you, please accept it.