461 reputation
210
bio website
location
age
visits member for 1 year, 10 months
seen yesterday

1d
awarded  Taxonomist
Apr
4
comment Measure average distance between two lines with common endpoints
Basically it is just to put the difference created by the two methods (straight line vs least cost path) into context. It is not intended to show any sort of significance but to allow readers to mentally quantify the variation. If that makes sense? It is just to take the difference out of visuals and put some sort of number to it.
Apr
4
asked Measure average distance between two lines with common endpoints
Feb
12
comment What might cause “python.exe has stopped working” when closing ArcPy script?
I don't think you should have to delete your cursor if you use a with statement, but try maybe adding a 'del row, cursor' line to your script?
Dec
5
awarded  Popular Question
Sep
30
comment How to batch split feature classes using Arcpy?
That is weird, because it shouldn't. With the code you show above, you are telling the tool to split your Province feature class using the fc layer's 'province' field.
Sep
30
comment How to batch split feature classes using Arcpy?
If you are attempting to split your fc features, they should be the first parameter in the Split tool. help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//…
Sep
27
comment Calculating a field based on two other fields, if they exist
What are you naming your fieldC? And how do you have it input into the model variable? I did not get that error when running my sample model, however a quick google search of the error code says this is a refresh error, that creating the field and then trying to calculate it within a single script in model builder does not give ArcMap enough time to 'refresh' the layer and recognize the new field. Try removing the Add Field code from the script and adding the tool to the model before the script.
Sep
25
comment Calculating a field based on two other fields, if they exist
I've never really gotten a good grasp of formatting, embarrassingly enough, but this is a good tip. Especially if S.S. has 800 shapefiles.
Sep
25
answered Calculating a field based on two other fields, if they exist
Sep
25
comment Calculating a field based on two other fields, if they exist
Also check this similar question: gis.stackexchange.com/questions/26892/…
Sep
24
comment Calculating a field based on two other fields, if they exist
Have you tried using/are you familiar with conditional statements? There is an example here (resources.arcgis.com/en/help/main/10.1/index.html#//…) of conditional formating in the code block.
Sep
20
comment Calculate Field python code has “Expected end of statement” error
Fantastic, I'm not sure I've ever heard of the repr() function, but this will come in handy a lot!
Sep
20
accepted Calculate Field python code has “Expected end of statement” error
Sep
20
asked Calculate Field python code has “Expected end of statement” error
Aug
21
comment Only perform Near analysis on selected rows
I've worked quite a bit with tools inside loops and while I know many people don't like the process, it is often the best way to cast the problems I am working with as they are temporal and spatial, often depending on results from preceding rows. I was considering the math.hypnot() function, however I am not looking at distances between points but between points and lines, and the Near tool will use the closest point on the line whereas the python tool would not.
Aug
14
comment Only perform Near analysis on selected rows
The reason I am hesitant to use the Select tool is that it generates a new feature class so I run into the same problem I have with the Generate Near Table tool in that it takes more processing time and memory than simply iterating the Near tool over a single file.
Aug
14
comment Only perform Near analysis on selected rows
Sorry, that was my fault and I accidentally deleted a row when copying it over, I've added it now. finishList is a list of the id and date combinations that I have already iterated over so I don't do anything twice because my sometimes for a given id there will be multiple entries with the same date. And yes, the Help does say everything else is set to -1, however the blog topic that I linked to suggests this shouldn't happen in an iterator.
Aug
14
revised Only perform Near analysis on selected rows
added 39 characters in body
Aug
14
asked Only perform Near analysis on selected rows