Re: [gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Ah, awesome - thanks as ever for such great detail. I've been trying with PYTHONPATH and sys.path, and I think I was doing it wrong ... but the simplicity of the /usr prefix had not occurred to me, I'll be doing that. If I come back around with further insights I'll share them, but this is work

Re: [gdal-dev] question about python installation

2023-03-07 Thread Even Rouault
Michael, My experience is that understanding how and where to install Python stuff is utterly difficult. And this is even more complicated on Debian/Ubuntu that have many patches regarding sys.path and distutils, plus the fact that distutils is deprecated and going to be removed in Python 3.1

[gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Hello, apologies as this is not so much a GDAL but a python question, but I'm interested in what others do, hopefully I'm missing a key step that's not hacky :) I made a gist to record the details: https://gist.github.com/mdsumner/526af876cfddaa5ff245ab376b3cec84 The crux is, GDAL has placed th

Re: [gdal-dev] Can Geotiff file contain multiply Ortofotos

2023-03-07 Thread Brad Hards
On Wednesday, 8 March 2023 6:53:17 AM AEDT Raivo Rebane wrote: > I studied and asked from https://chat.openai.com/chat how to read > multiband raster image, but I did'nt find anywhere how to rread from > tiff file next frame or ortofo bands > > Please ask me if it's possible It is possible. See h

Re: [gdal-dev] getting SRS units from GetAttrValue("UNIT", 0)?

2023-03-07 Thread Edzer Pebesma
On 07/03/2023 17:11, Even Rouault wrote: Le 07/03/2023 à 17:08, Edzer Pebesma a écrit : Thanks, Even! I was after the units of the horizontal coordinates; GetLinearUnits() returns "unknown" for EPSG:4326 and, according to the docs returns the units of the vertical coordinate in 3D CRS (did

[gdal-dev] Can Geotiff file contain multiply Ortofotos

2023-03-07 Thread Raivo Rebane
Hi I am novice in using of GDAL. I studied and asked from https://chat.openai.com/chat how to read multiband raster image, but I did'nt find anywhere how to rread from tiff file next frame or ortofo bands Please ask me if it's possible Regards Raivo ___

[gdal-dev] GDAL 3.6.3 RC1 available

2023-03-07 Thread Even Rouault
Hi, I have prepared a GDAL/OGR 3.6.3 release candidate. Pick up an archive among the following ones (by ascending size):   https://download.osgeo.org/gdal/3.6.3/gdal-3.6.3rc1.tar.xz   https://download.osgeo.org/gdal/3.6.3/gdal-3.6.3rc1.tar.gz   https://download.osgeo.org/gdal/3.6.3/gdal363rc1.z

Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Raivo Rebane
Hi There was problem in libraries. VIsual Studio seeks firstly PostGIS libraries what is older ones Now I set Firstly seek from separately installed GDAL libraries. But conflict in twice installed PROJ packages exist. So, I cant use PROJ package functions. Can anybody helps me ? Regards Ra

Re: [gdal-dev] getting SRS units from GetAttrValue("UNIT", 0)?

2023-03-07 Thread Even Rouault
Le 07/03/2023 à 17:08, Edzer Pebesma a écrit : Thanks, Even! I was after the units of the horizontal coordinates; GetLinearUnits() returns "unknown" for EPSG:4326 and, according to the docs returns the units of the vertical coordinate in 3D CRS (didn't check). So what I now use is GetAttrVal

Re: [gdal-dev] getting SRS units from GetAttrValue("UNIT", 0)?

2023-03-07 Thread Edzer Pebesma
Thanks, Even! I was after the units of the horizontal coordinates; GetLinearUnits() returns "unknown" for EPSG:4326 and, according to the docs returns the units of the vertical coordinate in 3D CRS (didn't check). So what I now use is GetAttrValue("UNIT", 0) (which returns "degree" for EPSG:43

Re: [gdal-dev] getting SRS units from GetAttrValue("UNIT", 0)?

2023-03-07 Thread Even Rouault
Edzer, if you change your code to use GetLinearUnits() it will work: #include #include #include int main() {     OGRSpatialReference *srs = new OGRSpatialReference;     int epsg = 3031;     srs->importFromEPSG(epsg);     const char* unit = "";     srs->GetLinearUnits(&unit);     std::cout <<

[gdal-dev] getting SRS units from GetAttrValue("UNIT", 0)?

2023-03-07 Thread Edzer Pebesma
I switched getting coordinate units from the expanded proj4string representation to GetAttrValue("UNIT", 0), but failed; try #include #include #include int main() { OGRSpatialReference *srs = new OGRSpatialReference; int epsg = 3031; srs->importFromEPSG(epsg);

Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Mateusz Loskot
On Tue, 7 Mar 2023 at 09:32, Raivo Rebane wrote: > > I minimized the program : > > #include > #include > #include > #include > > int main() > { > GDALAllRegister(); > GDALDataset* dataset = > static_cast(GDALOpen("634632_2012_tava.tiff", GA_ReadOnly)); > GDALClose(dataset); > >

Re: [gdal-dev] Using GDAL with opencv in C++ there is errors under windows

2023-03-07 Thread Raivo Rebane
Hi again I minimized the program : #include #include #include #include int main() {     GDALAllRegister();     GDALDataset* dataset = static_cast(GDALOpen("634632_2012_tava.tiff", GA_ReadOnly));     GDALClose(dataset);     return 0; } but it gives the same errors ? If I remove #includ