13,103 reputation
1372159
bio website maphew.com
location Yukon Territory, Canada
age
visits member for 4 years, 11 months
seen Jun 30 at 22:17

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


Sep
1
comment How to generalize coastlines?
If you just want to do a passable job and move on, @R Thiede's answer is probably the best place to start. If you want to work on the real challenge, simplifying linework without losing the meaning of the shapes, see the related questions gis.stackexchange.com/questions/38/… and gis.stackexchange.com/questions/440/….
Aug
31
comment How do I use sys.exit(0) in an arcpy script to exit early without having an error message show up?
thank you for posting concise code example which clearly illustrates the logic and leaves out the extras. +1
Aug
30
comment Identifying Coordinate System of Shapefile when Unknown?
Thanks for the tip Melita. The code is there (*.frm). The license is public domain. PrjFinder is a companion to the book "Working with Projections and Datum Transformations in ArcGIS" (2006).
Aug
30
comment How to reproject spatial data using free libraries?
at bit late now as the CW horse is out the gate already, but if answerers paid more attention to the "how do I do that?" part of the Q it wouldn't be just a "list of X".
Aug
30
comment Using ArcGIS 10 ModelBuilder to perform In-line variable substitution for input data path?
As far as I know, you can't do this in Model builder, though it sure would be useful. See gis.stackexchange.com/questions/480/…. It was written when I was using arcgis 9.3, maybe v10 is different. You can do this in python though.
Aug
30
comment Best practices for organization and tidiness - How do you deal with multiple copies of layers?
A good question. Actually it's not a qestion, it's a quest. A question leads to a single or narrow-ish set of answers, and once settled, it's over. A quest is an ongoing thing, an adventure that may never have a definitive end, and that's what you have here. Resign yourself to the truth that no matter what convention you settle on, it will not work completely or thouroughly. That said, there are conventions you can use to make the path smoother and easier travelled. Kevin's answer, and the follow on comments, are a very good start in this regard.
Aug
29
comment Scale in printed map (mxd) is different in code to manual printing
thanks for coming but with the NIM#. These are the kinds of things I like to keep track of.
Aug
5
comment How to copy attributes from one polygon layer to another?
...and to make up for the hit, a GREAT QUESTION would be to ask why using Excel to process data can lead to very serious problems. And how to use it safely.
Aug
5
comment How to copy attributes from one polygon layer to another?
this answer and resultant commentary is a wonderful illustration of how a "bad" answer can invoke good results, revealing info that might not otherwise come to light. Please don't feel like you should delete it to avoid "taking a hit".
Aug
5
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
@Hairy, no harm no foul. It's hard to read tone in plain text. ;-) I would change it if I understood what you thought was wrong with it, other than something to do with the cursor. You have "4 - update cursor", but no "0 - create cursor" step. My suggestion was (meant to say) that perhaps moving the position of the cursor from outside to inside the loop, or vice versa, would solve the leak (or maybe not even use a cursor)..
Aug
5
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
Arcgis 10 sp1, win7 pro x64. If AggPoints has stopped working I'd file a bug! I let the test script run 250+ iterations before calling it quits; there was never more than a 1sec variation in processing time.
Aug
3
comment Setting parameters in Script Tool using Python?
I fixed the code formatting in your Q. Part of the error message was being eaten by the angle brackets. FYI, slap [ctrl]-[K] when in editing mode to automatically apply code formatting to selected text. A block is indented four spaces, and inline code with back ticks: ` ` (ref)
Aug
3
comment Setting parameters in Script Tool using Python?
Hi Sam, welcome to GIS.se :) See if putting everthing from rows = to irows inclusive in a try...except block gives a more revealing error message. It would also help if you can put a sample of the data and full script somewhere (minus.com is one place for easy public sharing).
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
I recommend changing the title of this to something like "memory leak in ArcGIS aggregate points/buffer/cursor?", and put "Open source alternative to ArcGIS aggregate points & buffer?" in a separate question.
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
here's the test script: pastebin.com/5tzappDn
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
in line with the previous idea, I'm feeding a point fc of ~3900 records though createGeom repeatedly. (for i in range(1,700); createGeom(geom,scratchDB)) In the 100 iterations so far, each one takes 18-19secs. So it looks like, on my machine anyway, the leak is not in the call to arcpy.AggregatePoints.
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
@Hairy apologies for lack of usefulness. It appears there's enough of that to flow in both directions, as what was described as a clear workflow for you was anything but for me. ;-) In any case, on with the troubleshooting! (in additional comments)
Aug
3
comment ArcMap running scripts slower if you import Arcpy
thanks for this!
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
Let me see if I have this straight now: you have a python script processing a list of 700 point feature classes, sending each one through createGeom, and that for the first few fc's it takes seconds to process each one, but get's progressively slower?
Aug
3
comment Memory leak in ArcGIS aggregate points/buffer/Addfield/cursor
downvote rescinded, with the new edit it's much easier to see what is being attempted. +1 for that.