177 reputation
11
bio website sfei.org
location Oakland
age 31
visits member for 1 year, 2 months
seen May 15 at 21:39
stats profile views 22

GIS Specialist at www.sfei.org


Jan
3
comment Problem with SplitLineAtPoint tool in arcpy
SplitLineAtPoint should not split anywhere where there are no input points. Something else must be going on. For starters, why do you have multiple lines with unique start and end points? If you convert a normal poly to line, you should end up with one line with one start and end point each.
Jan
3
comment Problem with SplitLineAtPoint tool in arcpy
i know you may have tried this already, but RepairGeometry fixes a lot of unexplainable geometry errors.
Jan
2
comment How are people using Python data structures and classes in Arcpy?
another reason dicts may be preferable is because they are read a lot faster than lists because they are not ordered. hence, very long lists may take a bit more time to process if they have many entries.
Dec
25
comment How to re-order fields permanently using ArcGIS Make Query Table tool?
Note: you can also use MakeQueryTable to change the names of your fields by inputting a list of lists of field names and aliases ([[fieldname1,alias1],[fieldname2,alias2]...])
Dec
20
accepted How to best organize files for a large arcpy script tool?
Dec
20
comment How to best organize files for a large arcpy script tool?
i will choose this as the answer, because it is correct, but preface that it will not work for arcpy script tools. in this case, please put all your executables and globals you'd like to keep local your main script below if __name__ == '__main__':
Dec
18
comment How integrated can an IDE get for arcpy scripting?
Anyone know about the current status of PyScripter development? Seems like it's not in dev. If not, is there something similar in current dev that anyone knows of?
Dec
12
comment How to best organize files for a large arcpy script tool?
The problem is that a single script gets loaded into the "script tool", which gets a GUI and is able to be run from an ArcGIS toolbox. This script must contain references to the parameters and must also run the process. Therefore, a "parameters.py" file would need to run the main code as well. I got around this eventually by using [[if _ name _ == '_ main _':]] to separate the globals from the call to the main functions and other variable definitions. Is there a better, more elegant way?
Dec
10
comment How to best organize files for a large arcpy script tool?
I agree that this is the best way to organize a collection of scripts, but the complication with an arcpy script tool is that the file specifying the global variables (i.e. parameters) must also execute the main code.
Dec
7
comment How to best organize files for a large arcpy script tool?
Spoke too soon. The ESRI blog post concerning Python Templates is on the right track, but doesn't address multiple files. Ideally, I am looking for an example of a parameters.py that defines all params and global variables, and also imports the other modules. These other modules will need to import the globals from parameters.py in order to reduce the number of inputs to their functions. The problem I have is multiple imports occurring at once, and I'm convinced there's a better way.
Dec
7
comment How to best organize files for a large arcpy script tool?
Thank you. Actually, the ESRI blog post concerning Python Templates is exactly what I'm looking for. My particular problem was not importing modules, but deciding on a good file structure for my code. Much obliged!
Dec
7
comment ArcPy and running Python scripts (with parameters) within another Python script
this link has since moved, and I believe it rests here now: blogs.esri.com/esri/arcgis/2011/08/04/pythontemplate
Dec
7
asked How to best organize files for a large arcpy script tool?
Aug
29
awarded  Commentator
Aug
29
comment explode overlapping polygons to new non-overlapping features
this method doesn't get you to the desired product, which is a minimal series of selections or unique feature classes of the original that do not overlap. the products will be fed into zonal statistics, and therefore keeping the original geometry of each feature is vital.
Aug
28
accepted explode overlapping polygons to new non-overlapping features
Aug
28
comment explode overlapping polygons to new non-overlapping features
thanks whuber, your solution was a bit more elegant =D
Aug
28
comment Looping multiple feature classes in python for ArcGIS 10
can you post the operation you'd like to iterate? i'm having a hard time figuring out what you're trying to do. if you post a concrete workflow, i can take a crack at iterating it.
Aug
28
comment How to automatically place parcels on suitability map?
when you say you want to "fill" the most suitable lands, do you mean accumulate a collection that fits certain cost requirements? if you're still trying to solve this problem, could you write a more specific explanation, perhaps with images?
Aug
28
answered explode overlapping polygons to new non-overlapping features