769 reputation
38
bio website profile.usgs.gov/cprice
location
age
visits member for 2 years, 3 months
seen Oct 9 at 23:23

Due to the lapse in appropriations, I am prohibited from conducting work as a Federal employee, including returning phone calls and emails, until further notice. If you urgently need to speak with someone at the USGS regarding emergencies or matters of protecting life and property, call (703) 648-7411 or (703) 648-7412. For more information on the shutdown, please visit the Department of the Interior website at www.doi.gov. Thank you.


Sep
26
comment Having trouble with 'and' 'or' statements and negative numbers
I agree. Unfortunately, the poster tagged the question as 10.0 -- arcpy.da cursors were added at 10.1.
Sep
26
answered Having trouble with 'and' 'or' statements and negative numbers
Sep
26
comment Having trouble with 'and' 'or' statements and negative numbers
A better condition to use is
Sep
26
answered Raster clipping without producing no data values
Sep
24
awarded  Autobiographer
Aug
9
comment can arcpy detect whether it's running in Desktop or Server?
Should be noted that this Python code assumes the software is installed using the normal folder naming conventions. It is pretty rare for someone not to use the default folder name "Desktop10.1" evn if they may move the path around (for example, we install to "C:\ArcGIS\Desktop10.1".
Aug
9
revised can arcpy detect whether it's running in Desktop or Server?
update to add support for arcpy in ArcGIS Pro
Aug
9
answered ArcGIS for Desktop equivalents to ArcInfo Workstation tolerance types?
Aug
9
answered Meaning of red cross icon next to Geoprocessing tool/model?
Aug
9
comment How to export all the layers from Table of Content to shp file?
What a great argument for eschewing .NET/ArcObjects in favor of Python! Which code will you be able to read and use five years from now!
Jul
22
awarded  Necromancer
Jul
12
awarded  Yearling
Jul
7
comment Python Toolbox (.pyt) Tool Output Layer Name
Seems to me the best solution is to set up an output GPLayer as a derived parameter, this gives you full control of the layer. But this doesn't really solve the problem as I suspect your feature class and layer outputs will both be added to the TOC.
Jul
7
answered Script never finishes and throws no errors. Creates lock on file until restart?
Jul
7
comment Efficient way to use a CSV to Define a Feature Class
Just be clear, the layer's geodata are not in memory, just validated informatino about the layer. If you create a feature layer or table view and pass that to a tool, the tool does not have to validate the input (ie make sure it exists, get the field list and other properties - the layer has all this "metadata" in memory already).
Jul
7
answered Python Toolbox (.pyt) Tool Output Layer Name
Jul
7
comment Changing default parser in ArcGIS Field Calculator to Python?
Yes, definitely VB is gone in AGP -- since VB isn't supported in 64 bit arcpy -- and ArcGIS Pro is native 64 bit!!
Jul
7
answered Changing default parser in ArcGIS Field Calculator to Python?
May
23
comment Will ArcGIS 10 support Python 2.7 or Python 3.1?
ArcGIS 10.2.2 is still at Python 2.7.x. However the new ArcGIS Pro desktop application (to be released in mid-2014) uses Python 3.4 - and uses the same GP environment (toolboxes) as Desktop 10x. So ArcGIS scripters should work on their skills writing code that is 2.7/3.4 compatible -- which BTW isn't that difficult.
Jan
31
answered Append to text file using ArcGIS and Python