Reputation
13,293
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
13 74 161
Newest
 Yearling
Impact
~820k people reached

Jun
17
comment Using File Geodatabase with Null values in Field Calculator of ArcGIS Desktop 10.0?
just a general python note: if item is the same as if (item is not None) and easier to read. Likewise if not item is the same as if item == None. I'm not sure if this has any bearing on your Q as I can't test in Arc10 or earlier. FWIW, v1 returns extra Nulls in Arc10.3 also, v3 appears to work properly but beware because mutating a list in place causes unexpected but not immediately obvious mistakes in the results (see here). Bottom line: v2 works, don't use the others.
Jun
17
comment calculating a field in which null values may be present
2 problems in the 2014-Feb-28 update: (a) The EOL syntax error is because of the line break. You need to either triple quote the block, or since it's so short turn it into a one liner: codeBlock = "def stack(*args): return sum(filter(None, args))". (b) In exSummed = you are concatenating or adding the fields together before passing them to your stack function. Needs to be "stack(!item1!, !item2!, !item3!)"
Jun
17
comment calculating a field in which null values may be present
+1 for the example of an unwanted results. There's a syntax error in def stack though, the 2nd myList line is missing =. Also the list comprehension can be simplified to [item for item in mylist if item] -- because if item is functionally identical to if item is not None. See docs.python-guide.org/en/latest/writing/style/…
Jun
16
comment Converting models from QGIS to Python scripts?
The save as python was removed when Modeller was rebuilt using a better system. It's planned to make a comeback in future according to gis.stackexchange.com/questions/121537/…, but that hasn't happened yet.
Jun
16
comment arcgis10: create perpendicular transects to stream at specified intervals
Related: gis.stackexchange.com/questions/25368/…
Jun
16
comment Perpendicular lines at start and end of line in ArcGIS Desktop?
GBG we generally discourage link-only answers. Inevitably they succumb to link-rot and then the "answer" doesn't apply any more. If you can, include something that will allow a future searcher to (re)build their own solution when the destination link has disappeared.
Jun
16
comment Perpendicular lines at start and end of line in ArcGIS Desktop?
Also see Perpendicular Transects ArcGIS 10 toolbox by Mateus Ferreira. It's also for creating perpendicular at regular intervals along the line instead of just at ends, but has an option for deriving the split distance from a field name. Perhaps if the Length field was used it would only do end points.
Jun
15
comment Getting a raster extent excluding nodata area
this is essentially the same question as gis.stackexchange.com/questions/45159/…. The embedded answer should be extracted and placed as an answer and fetch it's due up-votes. (tip: to speed up processing time and reduce redundant disk storage, use a "virtual raster table" (vrt) for intermediate steps).
Jun
15
comment Interactive “for each item in … do …” in QGIS?
I found a higher level doorway through the "iterate over layer" button, see other answer. There is room for another answer to show syntax for using embedded console processing.runalg() with getfeatures(layer) (or equivalent).
Jun
12
comment QGIS 2.6.0 Atlas Export to multiple output files fails; RESOLVED
dan please add your resolution as an answer (and also feel free to Accept it as correct). Following the Q&A pattern of the site makes it easier to understand the problem and solution. Thanks!
Jun
12
comment Get boundary of raster image as polygon in ArcGIS Desktop?
Hi Seamster02, welcome to GIS Stack Exchange :) As written this is not appreciably different from the accepted answer, gis.stackexchange.com/a/22016/108.
Jun
12
comment Get boundary of raster image as polygon in ArcGIS Desktop?
@Fezter, this comment was migrated from answer to Q, Since it's no longer in context it doesn't make much sense. It's served it's purpose and can be removed now. ;-)
Jun
12
comment Interactive “for each item in … do …” in QGIS?
how would this be fired? Say I'm in qgis and have loaded a polygon shapefile and selected some of them. How do I push them to the operation/script?
Jun
12
comment Interactive “for each item in … do …” in QGIS?
@MichaelMiles-Stimson yes exactly, 'for every feature in layer' or 'every feature in {selection}'
Jun
11
comment ArcObjects/Python: Add JPG to layout
"recasting" was probably a poor word choice Michael. I just meant "re-write for". This answer is so far one of the best examples I've seen of how one can step through and understand the ArcObjects documentation for someone coming from the python world. I think the process it describes deserves more exposure.
Jun
11
comment Is there a Raster Equivalent of the Split tool?
...and a toolbox ready python answer: gis.stackexchange.com/questions/37325/…
Jun
11
comment Is there a Raster Equivalent of the Split tool?
a python answer is here: gis.stackexchange.com/questions/37325/…
Jun
4
comment How to convert the geographical projection of an extremely large file (GDAL)
this might be 64bit vs 32bit. In any case I'm glad you found a solution and thanks for sharing it. If you haven't already I would verify the end product has the right pixel size and wasn't resampled too coarsely (e.g. rule out the possibility Qgis was faster because it took a shortcut).
Jun
3
comment How to convert the geographical projection of an extremely large file (GDAL)
Cut the image in 4 (or 8 or ...) and then warp each piece. Use nearest neighbor resampling so that values do not change (20 stays 20, never becomes 25). At the other end create a .vrt, virtual raster table, to mosaic the images seamlessly. ....actually now that I think about, first try creating a vrt for your existing images in the desired final projection.
Jun
2
comment What is the simplest method to add GPX files into Arcmap?
Thanks for sharing, but you're working too hard! KML can be ingested in one or two steps, see Posts containing 'import/export kml to arcgis desktop'