4,571 reputation
724
bio website
location St Louis, MO
age
visits member for 3 years, 3 months
seen 2 hours ago

Sep
16
comment Arcpy Export To PDF exporting same PDF instead of changing
It probably won't fix it, but if you have not already try arcpy.RefreshTOC() before arcpy.RefreshActiveView() too.
Sep
16
comment Arcpy Export To PDF exporting same PDF instead of changing
Don't think I can replicate your workspace for testing, but are you calling arcpy.RefreshActiveView() at any point to redraw the map after you make all your layer changes?
Aug
11
awarded  Caucus
Jul
20
comment gdal ImportError in python on Windows
Old question, but it popped up on my feed today. I always use the binary install: lfd.uci.edu/~gohlke/pythonlibs/#gdal
Jul
13
comment Free ServerContext has failed because the Wait Timeout Interval has elapsed
Also realize that the web server itself, eg IIS, will have a timeout on requests. If I remember right, this is normally 60 seconds. A 100+ layer service is probably failing to render in 60 seconds and resulting in a web server timeout.
Jun
17
awarded  Yearling
May
16
revised What are Esri's new “ArcGIS for Professionals” and “ArcGIS Pro”?
added 7 characters in body
May
13
answered How to identify concentrated areas with multiple point values to produce a “heat map” appearance
May
12
reviewed Approve suggested edit on Function to add layer with button click
Apr
14
comment Python - Find the largest extent in a list of extents (tuple format)
I think it should be, but I noticed in ogr docs that Destroy is normally explicitly called.
Apr
14
comment Python - Find the largest extent in a list of extents (tuple format)
Both should be pretty fast. Shapely might be faster because of the box case. You would need a large number of operations to notice a difference. (And if you are doing large numbers of operations, the reprojection problem is bigger) It does introduce an additional dependency though. Once again, you just substitute for the getArea function with a shapely based one, and then use that function as your key on max()
Apr
14
comment Python - Find the largest extent in a list of extents (tuple format)
Very true. Especially a problem for very large extents like those in the example extents. Although... I am not certain that is an issue when comparing extents if you only need relative size, not exact value. It probably is an issue, just not certain it would be an issue.
Apr
14
answered Python - Find the largest extent in a list of extents (tuple format)
Apr
3
awarded  arcpy
Mar
24
comment How to output visually correlated clusters using Morans I Spatial Autocorrelation?
In addition to Getis-Ord Gi*, Anselin Local Moran's I, Ripley's K, Getis-Ord General G, and Spatial Scan statistics (like used in SatScan) are potential statistics that could be appropriate models for the dataset you are using.
Mar
24
comment How to output visually correlated clusters using Morans I Spatial Autocorrelation?
Moran's I is only a measure of spatial auto-correlation across an entire dataset (global spatial auto-correlation). It tells you the scales at which spatial auto-correlation is strongest. It tells you nothing about clustering. Instead, you can use Moran's I to determine the appropriate scale (and hence search distance) to use for a clustering spatial statistic, most likely Getis-Ord Gi*. I'm not writing this as an answer, because I would have to look at your data set in more detail to figure out exactly how you would use a spatial statistic to find clustering in your dataset.
Mar
21
comment How to avoid ImportError: No module named arcpy causing Failed to execute (Script) error?
Okay, that is the right path for arcpy from sys.modules. what path are you getting for idlelib though? That will tell us more about the python instance being used.
Mar
20
comment How to avoid ImportError: No module named arcpy causing Failed to execute (Script) error?
Ah, I think I see your problem now. You have ArcGIS 10.2.2 installed. You are trying to import a 10.1 toolbox for ArcHydro which references 10.1 python libraries, which are no longer installed on your system. Go get the latest version of ArcHydro (10.2.0.38 from 2/13/2014) and install that. Use that toolbox instead of the 10.1 toolbox. See if that improves things.
Mar
19
comment How to avoid ImportError: No module named arcpy causing Failed to execute (Script) error?
An ImportError has nothing to do with your workspaces. It means that the module you are importing (and the only one you import is arcpy) is not present. The result of sys.modules['idlelib'] would tell us where IDLE is executing, giving an idea why arcpy is not present.
Mar
18
comment How to avoid ImportError: No module named arcpy causing Failed to execute (Script) error?
Execute the code in IDLE first. After it fails, import sys in the interactive window, then type and provide back here the result: sys.modules['idlelib']