Re: [gdal-dev] advice on python style - get file/dataset as bytes

2024-04-16 Thread Norman Vine via gdal-dev
If using Numpy ReadAsArray maybe your friendOn Apr 14, 2024, at 7:48 PM, Michael Sumner via gdal-dev wrote:Hi, I'm getting some pushback on my code style. I just want the raw bytes in-memory of a file in Python, for a manageable tiny dataset. Is there anything especially wrong with the following?

Re: [gdal-dev] advice on python style - get file/dataset as bytes

2024-04-15 Thread Norman Vine via gdal-dev
If you are using numpy ReadAsArray maybe your friend > On Apr 14, 2024, at 7:48 PM, Michael Sumner via gdal-dev > wrote: > > Hi, I'm getting some pushback on my code style. I just want the raw bytes > in-memory of a file in Python, for a manageable tiny dataset. > > Is there anything especi

Re: [gdal-dev] A question of eficiency

2023-07-07 Thread Norman Vine via gdal-dev
With some formats sizeof, fseek and ftell can be most useful > On Jul 7, 2023, at 5:33 AM, Abel Pau wrote: > > Hi, > I would like to know if when we use the code of GDAL to program a driver (or > whatever) in vectors (so, ogr) we can assume that we can know the number of > elements we are go

Re: [gdal-dev] wrong with clipping a tif file with a polygon

2023-05-30 Thread Norman Vine via gdal-dev
perhaps this will help https://stackoverflow.com/questions/70664043/clip-raster-with-polygon-with-gdal-c > On May 30, 2023, at 8:12 AM, Ahmet Temiz wrote: > > Hi, > I am trying to clip a tif file with a polygon. But resulting output.tif file > shows nothing. > > Where am I doing wrong ? > > "

Re: [gdal-dev] Fwd: GDAL NumFOCUS Application

2021-05-10 Thread Norman Vine via gdal-dev
> On May 10, 2021, at 6:17 PM, Even Rouault wrote: > > All, > > some good news below ! Awesome news !!! > > Message transféré > > Hi Howard and GDAL team, > > I'm excited to share the news that GDAL has been approved as a NumFOCUS > sponsored project! It's fantastic to

Re: [gdal-dev] promote_to_multi and python API

2020-12-10 Thread Norman Vine via gdal-dev
I usually peruse the ogr2ogr.py source for hints maybe this helps https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/samples/ogr2ogr.py#L1512 > On Dec 10, 2020, at 3:39 AM, Martin Landa wrote: > > Hi, > > is there a way to apply PROMOTE_TO_MULTI in Python API? I am trying to > write a s