Re: [gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Sean Gillies
Hi, Rasterio is different, though. It spreads Python very thickly on top of GDAL. The state of the art for very thin Python bindings for a C++ project seems to be pybind11. It's used for numpy's FFT module, based on pocketfft. If some of you are surprised to see me post again on this thread,

Re: [gdal-dev] Problem with gdal. Warp 6257

2020-12-08 Thread Even Rouault
On mardi 8 décembre 2020 23:03:54 CET Yrneh Ulloa-Torrealba wrote: > Dear GDAL community, > > I had a problem using gdal.Warp for a raster from EPSG 6257 to 6686. Does > someone know why this happened? > > More information on: >

[gdal-dev] Problem with gdal. Warp 6257

2020-12-08 Thread Yrneh Ulloa-Torrealba
Dear GDAL community, I had a problem using gdal.Warp for a raster from EPSG 6257 to 6686. Does someone know why this happened? More information on: https://gis.stackexchange.com/questions/380877/reprojection-with-gdal-warp-doesnt-work Thank you very much for any advice! Best, Yrneh

Re: [gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Sean Gillies
Hi Alex, I observe more people using pybind11 these days. https://github.com/pybind/pybind11. Yours, On Tue, Dec 8, 2020 at 5:37 AM Alex HighViz wrote: > Hello, > > Could somebody please put me on the right track with the following > problem? > > I have a C++ library that makes use of GDAL

Re: [gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Brendan Ward
Alex, see rasterio: https://github.com/mapbox/rasterio It uses Cython (https://cython.readthedocs.io/en/latest/index.html) to wrap GDAL rasters and related functions for use in Python. You can use Cython to wrap C / C++ libraries for use in Python; how much you wrap depends on the interface you

Re: [gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Alex HighViz
Hi Paul, Yes there is a generic, "how do I expose a C++ library to Python users" question. But there is a GDAL specific issue that the main inputs and outputs in my library are raster layers, and I am not sure how to pass those. Especially if my library is using GDAL and the user is using

Re: [gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Paul Harwood
I may have misunderstood but I think you are asking the wrong community. You can take your own C++ library and make it available to a Python library - see https://docs.python.org/3/extending/extending.html etc - but this is not the community to ask for advice about that. You can, of course,

[gdal-dev] How to wrap a C++ library using GDAL in a Python library?

2020-12-08 Thread Alex HighViz
Hello, Could somebody please put me on the right track with the following problem? I have a C++ library that makes use of GDAL for processing raster maps and I would like to wrap some of its features into a Python library to make it accessible to a wider community. I would like my library to

[gdal-dev] QUAPOS and other geometry fields (C#)

2020-12-08 Thread Tom Lewis
Hi, I am trying to get the geometry fields through the GDAL.OGR c# wrapper. I need to loop through and print every field (with name) on every geometry in a feature. I am looking for the QUAPOS field in the geometry (if applicable) but am unsure which combination of definitions and functions to