[gdal-dev] gdal_calc not ignoring NoData values?

2017-06-12 Thread Spencer Gardner
I have two integer rasters, A and B, with the same dimensions and cell sizes. I want to compare each cell in A with each cell in B and keep the maximum value. In cases where both have nodata, I want the result to be nodata. In cases where one is nodata, I want the result to be the integer value of

[gdal-dev] Python Buffer Features

2010-03-01 Thread Spencer Gardner
? Is there any way to use different units? Thanks, Spencer Gardner University of Wisconsin-Madison Department of Urban and Regional Planning ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] SetSpatialFilter not working?

2010-03-04 Thread Spencer Gardner
is problem? The documentation says the SetSpatialFilter method "may be inaccurately implemented" - would this be a symptom of this problem? Is there another way of doing this type of analysis? Thanks for the help. Please excuse my lack of knowledge as I'm fairly new to this. S

Re: [gdal-dev] SetSpatialFilter not working?

2010-03-05 Thread Spencer Gardner
ottom) The documentation mentions that Layer.DeleteFeature() doesn't work for some drivers, but I don't see any error messages. Does the ESRI Shapefile driver not support deletion? If so, how does one remove features from a shapefile layer? Thanks, Spencer Gardner University of Wi

[gdal-dev] Layer.DeleteFeature problems

2010-03-06 Thread Spencer Gardner
'm missing something? I'm not sure where I've gone wrong. Any advice is appreciated: Thanks, Spencer Gardner # import modules import os, sys try: from osgeo import ogr except: import ogr startDir = os.getcwd() tempDir = '/tmp' # set the working directory os.ch

[gdal-dev] Geometry.Within error

2010-03-08 Thread Spencer Gardner
e meantime, I have received an update to OGR. Could this be a bug introduced by the update? Thanks for the help, Spencer Gardner relevant code: while nodesFeature: # buffer the nodes by .5 miles (2640 feet) nodesGeom = nodesFeature.GetGeometryRef() bufferGeom = n