370 reputation
213
bio website stanford.edu/~rpsharp
location Mountain View, CA
age 37
visits member for 3 years, 7 months
seen Oct 13 at 20:57

I used to teach computer science at a small liberal arts college. Currently software developer at an NGO.


Aug
23
comment is it possible to project a shapefile to a raster's custom projection with command line gdal/ogr?
Wonderful, that worked. Thank you.
Aug
22
comment is it possible to project a shapefile to a raster's custom projection with command line gdal/ogr?
@Hermann I added the dump from the gdalinfo. Can I use that directly in ogr2ogr?
Aug
22
comment is it possible to project a shapefile to a raster's custom projection with command line gdal/ogr?
Just edited the question. By unprojected I meant that the shapefile was in raw lat/lng coordinates. Is that how I should refer to it?
May
15
comment How to run sextante algorithms outside of qgis python console?
Hi Victor, is this still the case? I'm struggling with how to call Sextante in a standalone script (outside of QGIS) and finding all examples I google to not work. This was posted a year ago so I wonder if the architecture of sextante has changed?
Sep
25
comment Can I access a raster attribute table in QGIS?
@GiovanniManghi would you mind posting your comment as an answer so you can get the "rep"?
Sep
24
comment Can I access a raster attribute table in QGIS?
@R.K. The link points to a ticket to unimplemented feature request from a year ago. Do you think that would be helpful as a answer to this question? Happy to post if so.
Sep
13
comment Can I access a raster attribute table in QGIS?
Yes that's exactly what I'm looking for. Surprised to see the comment "this suggestion comes from Arc* users". I'm new to the gis world, but seems like attribute tables with rasters are a useful feature.
Aug
16
comment GDAL RasterizeLayer Doesn't Burn All Polygons to Raster
Can you provide a link to 'activity_3.shp' and 'AOI_Raster.tif'? I want to see if I can recreate on my end.
Mar
29
comment Can I create blended images with GDAL command line utilities?
FYI, the blend function turned out to be the most helpful for what I was trying to do.
Mar
27
comment Can I create blended images with GDAL command line utilities?
Yep, this is great! Thanks for the help.
Nov
19
comment GeoTIFFs made in GDAL don't have min/max range when loaded in Arc/QGIS
Thanks, this did the trick, and thanks for the context. By the way, I was able to nest the band reference without a temporary variable with no problems.
Nov
13
comment How to add different sized rasters in GDAL so the result is only in the intersected region
It makes perfect sense, thank you!
Aug
19
comment Want to use GDAL in Arc10 toolbox via subprocess call
Thanks for checking; I read that post as well. Unfortunately updating the os.environ['PATH'] before loading gdal didn't work either.
Aug
19
comment Want to use GDAL in Arc10 toolbox via subprocess call
Unfortunately sys.path is identical between the two calls except for an extra directory. If I manually remove that directory I still get the same error. Any other ideas?
Aug
18
comment How to provide transform information to openlayers on Image layer
Thanks, this is exactly the functionality I was needing.
Apr
11
comment How do I convert affine coordinates to lat/lng?
Thanks @whuber, great idea.
Apr
11
comment How do I convert affine coordinates to lat/lng?
Thanks iant, this put me on the right track.
Apr
11
comment How do I convert affine coordinates to lat/lng?
Maybe this is what I'm after. Is the "epsg:4326" a transform to global lat/lng? I think I see some classes where I can provide a projection, I was thinking "WGS:84", but I don't know the difference.
Apr
11
comment How do I convert affine coordinates to lat/lng?
I read the geotransform section of the link you provided, but I don't think this is what I'm after. Sorry if I am being obtuse, but doesn't this describe how to project x and y indices (0 to XSize or YSize) to projected coordinates? I'm curious how you translate projected coordinates into latitude and longitude. As a simple example, the geotransform defines the x/y origin of the upper left hand corner of the raster in projected coordinates (447466.693808, 4952570.40529). How would I turn those coordinates back into lat/lng (something like lat: 44,lng: -122).
Apr
11
comment How do I convert affine coordinates to lat/lng?
@Dan Thanks, so I know I can get the projection via a dataset.GetProjectionRef() and find out I'm using "UTM Zone 10", but then what? I'm googling around for methods like "unproject" but am coming up null.