Tagged Questions
0
votes
2answers
35 views
Why is Shapely not installing correctly?
I am trying to run Shapely on a new machine, and tried both installing it from source, using the installer on its webpage, and using pip install shapely. Every reference I try to make from the library ...
2
votes
1answer
89 views
GDAL/Python: How do I get coordinate system name from SpatialReference?
In Python, using GDAL, I've extracted a raster's projection as a WKT string as follows:
wkt = dataset.GetProjection()
# wkt is ...
2
votes
2answers
105 views
Help with Python and adding a grouplayer to arc, renaming it from a folder name, then adding layers to it from that folder
I am trying to use os.walk to go through a directory tree, pull out all the .shp files in it, create a grouplayer in the mxd, rename the grouplayer the folder name, then add the layers from that ...
3
votes
0answers
93 views
How do I write XML metadata with Python?
Some Python software I have written generates raster files via GDAL. I would like the software to create an XML metadata file for each raster so that I can include details about how the raster was ...
3
votes
1answer
218 views
Import functions in python Add-In logic script
I am running into an error. I have a set of functions which I want to import in the python Add-In script at the time of execution, but when I built Add-In with "import stats" line then tools are ...
4
votes
1answer
201 views
Efficient computation of nearest distance for each point to closest polygon
I'm looking for a more efficient way to compute the nearest distance between features from 2 layers, in this example for each point the nearest distance to the closest polygon. Is there a more ...
0
votes
1answer
203 views
zonal histogram fails to create output table when looping
Using python I'm having problems when trying to attempt a FOR LOOP with the ZonalHistogram function of ArcGIS 10.1. It works fine if I use it only for one image but it gives me this error while for ...