367 reputation
39
bio website peterstensmyr.com
location Sydney, Australia
age 33
visits member for 2 years, 10 months
seen Oct 21 at 2:44

I mostly code in Python. Do a lot of spatial analysis and other GIS work. Some Django and a tiny bit of JS front-end stuff. Have done a lot of number-crunching in Fortran. I work with hydrology and flood modelling.


May
21
comment Python to get ids from shp dont return all records
@user1573901: no problem! Please consider accepting the answer (click the tick mark under the down arrow) if it solved your problem.
Apr
17
comment Why do ECWs go missing when exporting MXD to PDF with ArcPy?
Thanks, I suspected it was a memory issue. This is good for explaining, but I still don't understand why it happens externally but not within ArcGIS.
Jan
30
comment How do I get the pixel value of a GDAL raster under an OGR point without NumPy?
This is amazing. Thanks!
Jan
18
comment how to overlay shapefile and raster?
I went with this approach, though the function name is actually "Grid Statistics for Polygons".
Jul
25
comment How to perform a table look-up using Python in ArcGIS 10.0?
I would guess you have work restrictions preventing you from upgrading to 10.1? If not, just do the upgrade, it's free and surprisingly painless.
Jul
25
comment List Elements or Datasets of a given Layer
MakeFeatureLayer_management imports shapefiles to layers. If you already have a layer file, use arcpy.mapping.Layer("path_to_layer_file") to create the layer object.
Jul
25
comment Can you create labels based on an attribute field in a shapefile with Arcpy?
this needs layer.showLabels = True before the mxd.save().
Feb
26
comment Selecting points not snapped
A problem came up today and this technique was the perfect way to go through and fix it. So big thanks!
Jan
12
comment Selecting points not snapped
this is quite cool. thanks for the tip, very useful!
Jan
10
comment Selecting points not snapped
Exactly the answer that I wanted. Thanks!