Re: [gdal-dev] PROJ Data

2023-02-08 Thread Paul Harwood
If you don't have access to the PROJ data then there are Spatial References(CRS) and Spatial Transformations that it will not know about. However - you can set GDAL up to use the PROJ CDN - so that it pulls down just the data it needs when it needs it. On Wed, 8 Feb 2023 at 21:44, Scott Arnold w

Re: [gdal-dev] PROJ Data

2023-02-08 Thread Alan Snow
Here is a helpful reference: https://proj.org/resource_files.html#transformation-grids On Wed, Feb 8, 2023, 3:43 PM Scott Arnold wrote: > Greetings GDAL Community, > > I've been working with GDAL lately, and I have a question for more > experienced GDAL users or developers. GDAL has a dependen

[gdal-dev] PROJ Data

2023-02-08 Thread Scott Arnold
Greetings GDAL Community, I've been working with GDAL lately, and I have a question for more experienced GDAL users or developers. GDAL has a dependency on PROJ. I know some GDAL functions, for example, will respond with an error message if the proj.db cannot be found, and there is a dependency

Re: [gdal-dev] why padfExtent/s in gdal_alg.h ?

2023-02-08 Thread Michael Sumner
Thank you, gosh that does help explain a lot. Cheers, Mike On Wed, 8 Feb 2023, 21:42 Thomas Knudsen, wrote: > > Ah ok, mostly I was just confused why it's not an error for the compiler > > The compiler only needs to know the type of the argument - in a header > file, the identifier name follow

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Ari Jolma
Could not let this go without a last try. I finally managed to create a working lambda layer using the Dockerfile from https://github.com/developmentseed/geolambda as a starting point and with a more than a few hacks got GDAL to compile within the docker and then compile the swig bindings and

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Ari Jolma
On that page there are a number of arns for lambda layers, but when I try to get the http location of those I get from aws lambda get-layer-version-by-arn --arn arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3 --query Content.Location --output text An error occurred (AccessDeni

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Vincent Sarago
Sharing what I sent to Ari directly (forgot to anser to all) Hi Ari, You can have a look at https://github.com/lambgeo/docker-lambda It doesn’t provide any python bindings but if you follow https://github.com/lambgeo/docker-lambda#2-advanced-need-other-dependencies you can create a lambda pac

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Joe Lee
This worked quite well in 2019 with a few hacks: https://github.com/developmentseed/geolambda From: gdal-dev on behalf of Ari Jolma Date: Wednesday, February 8, 2023 at 1:42 AM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] AWS Lambda layer with GDAL python bindings Hi, I need an AWS Lamb

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Ari Jolma
I'm giving up for now and will move the task into an EC2, where it is really easy to set up the required python environment. Ari Howard Butler kirjoitti 8.2.2023 klo 16.27: On Feb 8, 2023, at 1:42 AM, Ari Jolma wrote: Hi, I need an AWS Lambda layer with GDAL python bindings, for "from osg

Re: [gdal-dev] AWS Lambda layer with GDAL python bindings

2023-02-08 Thread Howard Butler
> On Feb 8, 2023, at 1:42 AM, Ari Jolma wrote: > > Hi, > > I need an AWS Lambda layer with GDAL python bindings, for "from osgeo import > gdal", but it seems difficult to make such a layer. > > In fact all I need is gdal.Open and gdal.BuildVRT - I have not dug deeper > into rasterio, can i

Re: [gdal-dev] Pixel shift

2023-02-08 Thread Rahkonen Jukka
Hi, I apologize but I must ask you more details. If I happen to have a really big tiff image, what exactly should I do for re-producing the shift that you experience? Write all the commands that you have used so that others can re-use them by simple copy-paste-adjust method. Also small image th

[gdal-dev] Pixel shift

2023-02-08 Thread Clive Swan
Greetings We use gdal_warp to create pyramids and tile really big Tif files (satellite imagery). The Pyramids are created and tiled Zoom 1 to 15 We noticed a pixel shift in the tile imagery?? You can move an image X,Y, but you cannot shit folders of tiled imagery. Any suggestions how to prevent

Re: [gdal-dev] Set axis order with ogr2ogr

2023-02-08 Thread Elena Ruiz
Ok, it works thank you very much Elena Ruiz [https://www.aplitop.com/descargas/logo.png] Sofware Development & Technical Support Tel.: +34 952 43 97 71 er...@aplitop.com www.aplitop.com

Re: [gdal-dev] Set axis order with ogr2ogr

2023-02-08 Thread Even Rouault
Set PROJ_LIB as an environment variable (with set PROJ_LIB="D:\MDT\V9\bin\gdal\gdal_latest\share") rather than with --config, as --config is only for GDAL configuration options, and PROJ_LIB is only read by PROJ which reads environment variable. And don't set OGR_CT_FORCE_TRADITIONAL_GIS_ORDER

Re: [gdal-dev] Set axis order with ogr2ogr

2023-02-08 Thread Elena Ruiz
Hello, actually we use several versions of gdal and among them I have also tried it with the latest one, 3.6.2 in x64, but it gives me these errors: ogr2ogr -f "ESRI Shapefile" "C:\Users\elena\Downloads\Recinto.shp" "C:\Users\elena\Downloads\Recinto.gml" --config OGR_CT_FORCE_TRADITIONAL_GIS_O

Re: [gdal-dev] why padfExtent/s in gdal_alg.h ?

2023-02-08 Thread Thomas Knudsen
> Ah ok, mostly I was just confused why it's not an error for the compiler The compiler only needs to know the type of the argument - in a header file, the identifier name following the type is for human information only Den ons. 8. feb. 2023 kl. 00.49 skrev Michael Sumner : > > > On Wed, Feb 8

Re: [gdal-dev] Set axis order with ogr2ogr

2023-02-08 Thread Even Rouault
Elena, I almost choked when reading "I'm using GDAL 1.1.1". Do you realize this version was released 16 years ago ? Even GDAL 2.4.4 is antiquated. Nobody longer support those versions. Please upgrade to a recent (< 2 years) version first. I've just verified that ogr2ogr works just fine on our

[gdal-dev] Set axis order with ogr2ogr

2023-02-08 Thread Elena Ruiz
Hello, I need to do a conversion between GML to SHP vector files with the app ogr2ogr.exe, and be able to set the order of the axes TRADITIONAL_GIS_ORDER / AUTHORITY_COMPLIANT, in the OGR API documentation (ogr_srs_api.h), I found the following: "This will honor the axis order advertised by the