Re: [gdal-dev] [PROJ] Migrating to PROJ-9

2023-05-30 Thread Even Rouault
Le 30/05/2023 à 20:01, Nicolas Bellaiche a écrit : > > > That's why I get: > >  echo 3356123.5400 1303218.3090 5247430.6050 | PROJ_DEBUG=3 ./bin/cs2cs IGNF:RGR92 +to IGNF:REUN47 > > pj_open_lib(proj.ini): call fopen(/Users/nbellaiche/dev/sd-externs/macosx-clang/proj-9.1.1/nad/proj.ini) - succ

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

2023-05-30 Thread Ahmet Temiz
Thank you.. I solved the problem. Cutting polygon has to be converted to pixel coordinates. I have missed that point. now it works well .. Regards 30 May 2023 Sal 16:20 tarihinde Rahkonen Jukka < jukka.rahko...@maanmittauslaitos.fi> şunu yazdı: > Hi, > > > > I can’t really read the code, but b

Re: [gdal-dev] Improving details of the project build system and/or documentation

2023-05-30 Thread Andrew C Aitchison
On Tue, 30 May 2023, Howard Butler wrote: I totally agree that we would need to do some kind of cost/benefit to see if the complexity is worth the trouble. Our experience with PDAL is that drivers with hairy external dependencies that are either closed source or not conveniently distributed are

Re: [gdal-dev] Improving details of the project build system and/or documentation

2023-05-30 Thread Even Rouault
PDAL had this penalty and then we did some profiling and saw that most of the cost was the dlopen, not the finding of the plugin via the filesystem. PDAL doesn't have a GDALOpen-like single entry method where drivers are all expected to be loaded and "tried" sequentially, however. We have a m

Re: [gdal-dev] Improving details of the project build system and/or documentation

2023-05-30 Thread Howard Butler
> On May 29, 2023, at 5:16 PM, Even Rouault wrote: > 300 ms to load the 127 plugins on my system, ie each GDAL command line > invokation will at least take 300 ms, which might be a significant penalty in > some workflows) PDAL had this penalty and then we did some profiling and saw that mos

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

2023-05-30 Thread Rahkonen Jukka
Hi, I can’t really read the code, but based on what happens, maybe your cutline is outside the image. So you * create an output band * fill it with zeroes * and then you write pixels within the cutline into the output Because the output stays all zeroes, and there are no errors, then

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

2023-05-30 Thread Ahmet Temiz
Thank you , I already worked on that code. But clipping was not succesful. output.tif is blank on qgis. On Tue, May 30, 2023 at 3:24 PM Norman Vine wrote: > perhaps this will help > > https://stackoverflow.com/questions/70664043/clip-raster-with-polygon-with-gdal-c > > > On May 30, 2023, at 8:1

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 ? > > "

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

2023-05-30 Thread Ahmet Temiz
Hi, I am trying to clip a tif file with a polygon. But resulting output.tif file shows nothing. Where am I doing wrong ? " #include #include #include #include #include #include // for string class using namespace std; int main() { const char *inputPath = "input.tif"; const char *outpu