12,634 reputation
1168157
bio website maphew.com
location Yukon Territory, Canada
age
visits member for 4 years, 9 months
seen 11 hours ago

hewer of maps, old time techie, newbie developer

woohoo, http://gis.stackexchange.com/ now open to the public!

personal - www.maphew.com
in-between - yukongis.ca
work - www.environmentyukon.ca

profile for matt wilkie on Stack Exchange, a network of free, community-driven Q&A sites


Mar
9
comment SQL-query in arcpy - SELECT WHERE feature between two values
perhaps failing because the numbers are being compared as strings instead when BETWEEN used, while < forces numeric(?)
Mar
2
comment How to copy attributes from one polygon layer to another?
for people wondering what happened to the "Celenius" mentioned various places in this thread: now know as @djq, and his/her answer is here. Kudos to wayback machine: web.archive.org/web/20120127210858/http://gis.stackexchange.com/…
Mar
2
comment Raster diff: how to check if images have identical values?
@Aaron, I got pulled off the project to do other things. Part of that was because the development time kept growing: too many edge cases to handle automatically, so the decision was made to throw the problem back at the people generating the images rather than fix them. (e.g. "Your disk quota is X. You learn how to work inside it.") However gdalcompare.py showed great promise (see answer)
Feb
26
comment Clipping faster (i.e. in bulk/batch) in ArcGIS for Desktop?
Thank you Alex, this was the essential kickstart I needed for ArcGIS desktop map package, with clipping.
Feb
26
comment Set arcpy command line parameter same as Tool parameter
and here's the script that started it all: github.com/maphew/arcplus/blob/master/ArcToolbox/Scripts/…
Feb
26
comment Set arcpy command line parameter same as Tool parameter
Aside: I cautiously added some debugging info to upstream C:\ArcGIS\Desktop10.3\arcpy\arcpy\analysis.py, and discovered the 1st and 3rd arguments are Unicode encoded while the 2nd is not. It looks like this is an omission and a bug waiting to manifest, but doesn't appear to have any bearing on what I encountered here. The addition: print '\nDEBUG: ',(in_features, clip_features, out_feature_class), '\n' at line 53, between try: and retval = .... Result: _"DEBUG: (<map layer u'Clip_Poly'>, 'current_aoi.gdb\\Clip_Poly', u'scratch\\clipped\\clipped.gdb\\Clip_Poly')"
Feb
25
comment Set arcpy command line parameter same as Tool parameter
@KHibma: if lyr.isFeatureLayer: arcpy.Clip_analysis(lyr,clip_layer,out_layer), whole script coming shortly.
Feb
25
comment Set arcpy command line parameter same as Tool parameter
Using sys.argv doesn't change things. There's something different about what is passed to the script when it run from a toolbox than from command. I'll add some more details and put everything online somewhere.
Feb
25
comment AttributeError with unicode object with data frame in python script
to refine @JasonScheirer's comment the file filter syntax is mxd; mxt (semicolon delimiter, no dots)
Feb
19
comment I want to conect a slider with different columns of data in CartoDB
Welcome to GIS Stack Exchange :) I think the code formatting is messed up. When in edit mode select the code text and use Ctrl-K to indent (and keep an eye on preview to see if results are correct).
Feb
19
comment Is the column order returned by arcpy.ListFields() always the same?
That's all in one session. I wouldn't count on it being the same across sessions (but wouldn't be surprised if it was). Longer term, I'm always hesitant to rely on any index or retrieval system which uses position number instead of name or ID.
Feb
16
comment Converting Shapefiles to Text (ASCII) files?
I fixed a couple of bugs and updated the 9.x developer sample of WriteFeaturesFromTextFile for 10.x, grab it from github.com/maphew/arcplus/blob/master/ArcToolbox/Scripts/…
Feb
16
comment Ungenerate command in ArcGIS for Desktop?
Guess I've been outvoted. ;-) Here's the short form of my answer: I fixed a couple of bugs and updated the 9.x developer sample of WriteFeaturesFromTextFile for 10.x, grab it from github.com/maphew/arcplus/blob/master/ArcToolbox/Scripts/…
Feb
13
comment Ungenerate command in ArcGIS for Desktop?
Converting to ascii is closely akin to ungenerate, but not a duplicate. Ascii is general, many/any text format can fit, while ungenerate is specific. Please reopen (I have a direct answer ;-)
Feb
11
comment Resurrect contents of the ArcGIS 9.x “samples” toolbox on 10.x
@MichaelMiles-Stimson, doesn't work here. I can see the toolbox in catalog, but the contents remain blank. Also tried "r-click > Save as > v9x Toolbox" but that didn't nothing (no file created, no error message. Didn't work on any other system tbx either though.)
Feb
10
comment Resurrect contents of the ArcGIS 9.x “samples” toolbox on 10.x
I managed to id the WriteFeatures... script by crafting a broken python script. The error message revealed the source, Traceback (most recent call last): File "c:\arcgis\desktop10.3\ArcToolbox\Scripts\WriteFeaturesToTextFile.py", line 90, in <module>. Presumably this recipe can be used to divine the rest. I'm still curious about the hidden contents of the toolbox though.
Feb
10
comment How to change feature class and field aliases in bulk?
So obvious now that I think about it! The same approach should be possible using a Personal GDB (Access .mdb) or any of the RDBMS storage options as well.
Feb
10
comment Keeping dev scripts in sync with projects
oh, externals is new to me, thanks. The git corollary seems to be submodules, with some notable differences, while mercurial has subrepository though it's tagged a "feature of last resort".
Feb
9
comment Keeping dev scripts in sync with projects
Yes this seems like a pure programming Q and off topic for GIS SE. I don't think so though. Software development practices are increasingly front and central for GIS Professionals and how this is solved for us, but more importantly how best practices are documented, will be subtly but usefully different. With that in mind, please answer with educating GIS users as your target.
Jan
30
comment ArcGIS desktop map package, with clipping
Not for me. I get an intersect selection, not clip; screenshots of my before and after (with v10.3).