[gdal-dev] Stitching and geo coordinating drone images

2023-01-19 Thread Vaheed Ghaffari
Hello, I need some verification from the pros out there. I am trying to stitch together a set of images taken by the DJI drone camera (M300) and add geo coordination. Raw images are not geo coordinated, but I can access the photo information in XMP fields, including the coordinates of the image cen

Re: [gdal-dev] Any trick to run SELECT gdal_get_pixel_value for lots of points?

2023-01-19 Thread Even Rouault
Hi Jukka, Recursive Common Table Expressions (CTE) (cf "3.1. Recursive Query Examples" of https://www.sqlite.org/lang_with.html) can help if you want to sample along one or two axis Below an example for x in [1,3] and y in [1,4] $ ogr2ogr -of CSV /vsistdout/ :memory: -sql "WITH RECURSIVE lis

Re: [gdal-dev] Any trick to run SELECT gdal_get_pixel_value for lots of points?

2023-01-19 Thread Laurențiu Nicola via gdal-dev
Hi, I think I've mentioned it on the mailing list before, but https://www.orfeo-toolbox.org/CookBook/Applications/app_SampleExtraction.html has a pretty good (threaded) implementation of this. Of course, it's an extra piece of software to install. If you want to do it in pure SQL, you could al

[gdal-dev] Any trick to run SELECT gdal_get_pixel_value for lots of points?

2023-01-19 Thread Rahkonen Jukka
Hi, I tried the new SQL function "gdal_get_pixel_value" from this PR https://github.com/OSGeo/gdal/pull/6877. It is made to query a single point at a time but with some SQL I managed to query a few points with one ogrinfo command. I think that the query works even the ogrinfo -sql "SELECT gdal

Re: [gdal-dev] Motion: Approve RFC90: Direct access to compressed raster data

2023-01-19 Thread Even Rouault
Hi, I declare this motion passed with +1 from PSC members JukkaR, FrankW, SeanG, MateuzL and me. Even Le 16/01/2023 à 18:02, Even Rouault a écrit : Hi, Motion: Approve RFC90: Direct access to compressed raster data: https://github.com/OSGeo/gdal/pull/7020 Starting with my +1 Even -- ht

Re: [gdal-dev] Parsing s57 chart with GDAL.

2023-01-19 Thread Aryan Landi
Hi again, I also do that. Here is the full code snippet that does not work. #include "ogrsf_frmts.h" int main() { GDALAllRegister(); GDALDataset *poDS; poDS = (GDALDataset*) GDALOpenEx( "US5LA26M.000", GDAL_OF_VECTOR, NULL, NULL, NULL ); if( poDS == NULL ) { printf( "Open failed.\n" ); exit(

Re: [gdal-dev] Parsing s57 chart with GDAL.

2023-01-19 Thread Even Rouault
Aryan, You likely need to register the drivers with GDALAllRegister(): https://gdal.org/tutorials/vector_api_tut.html#reading-from-ogr Even Le 19/01/2023 à 13:23, Aryan Landi a écrit : Hi all, I am unable to use the GDAL/OGR S57 driver to parse s57 charts. According to the official tutoria

[gdal-dev] Parsing s57 chart with GDAL.

2023-01-19 Thread Aryan Landi
Hi all, I am unable to use the GDAL/OGR S57 driver to parse s57 charts. According to the official tutorial at https://gdal.org/tutorials/vector_api_tut.html