[gdal-dev] GDALOpenShared and open options

2022-10-06 Thread Matt Perry
re open options could determine the pixel values; not sure if any other drivers beside TileDB share this characteristic. Thanks for your input, Matt Perry ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Hacking the new Landsat pixel_qa help...

2017-05-05 Thread Matt Perry
his? https://github.com/mapbox/rio-l8qa might be what you're looking for; provides a python API and CLI for extracting arrays out of the Landsat QA band, both the pre-Collection and collection format. It's at version 0.1 so caveat emptor but could be useful. Let me know how it works for you.

Re: [gdal-dev] IReadBlock fails on alpha band, GDAL 2

2016-04-30 Thread Matt Perry
Even, Thanks for the fix, the workaround and the detailed explanation. I knew there must be a reason for the strange threshold. >> hBand = GDALGetRasterBand( hDataset, 4 ); >> pafScanline = (int *) CPLMalloc(sizeof(int) * 734 * 734); >> GDALRasterIO( hBand, GF_Read, 0, 0, 1223, 1223,

[gdal-dev] IReadBlock fails on alpha band, GDAL 2

2016-04-29 Thread Matt Perry
rious why it there appears to be a buffer size threshold, why it only affects alpha bands and why only GDAL 2.x is affected. Before I dig in, does anyone have any theories about what's going on here? Thanks, Matt Perry ___ gdal-dev mailing list gdal-d

Re: [gdal-dev] GetFeatures 1-indexed for spatialite?

2015-02-23 Thread Matt Perry
On Mon, Feb 23, 2015 at 12:46 PM, Even Rouault wrote: > Le lundi 23 février 2015 19:40:42, Matt Perry a écrit : >> I'm running into some strange behavior with the Spatialite driver, >> accessing features through the ogr python bindings. >> >>

Re: [gdal-dev] divide a big shape file using ogr2ogr

2012-02-17 Thread Matt Perry
2012/2/17 ahmet temiz : > hello > > how can I divide a big shape file into 5 equal pieces using ogr2ogr ? > "equal" with regard to what? Number of features? Area of features? File size? Some attribute field? -- ·´¯`·.¸. , . .·´¯`·.. ><º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><º> "The best way to predic

Re: [gdal-dev] Re: Slope in gdaldem

2011-12-15 Thread Matt Perry
Stephen, It'd be great to see local hydrologic slope in gdaldem. I've seen a similar discrepancy between "field" slope and most GIS-derived slopes. The local max hydrologic slope seems to correspond much better to our perceived slope on the ground. The integrated slope used in most GIS, however,

Re: [gdal-dev] image operation over areas defined by a shapefile

2011-12-11 Thread Matt Perry
Hi Xiaodong, On Sun, Dec 11, 2011 at 2:22 PM, Xiaodong Zhang wrote: > I'm wondering if someone has done something like this and would like to > share the experience. Say, I have an image, e.g. NDVI, and a shapefile > define one or more areas (polygons) with the image. How to calculate the > stati