Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Even Rouault
https://github.com/OSGeo/gdal/pull/6816 should make it much more obvious with an explicit fatal error when explicitly enabling a driver whose requirements are not met. Le 28/11/2022 à 17:47, Johannes Paul a écrit : Perfect ! Thank you very much. Johannes On Mon, 28 Nov 2022 at 16:16, Even Rou

Re: [gdal-dev] Motion: adopt RFC69 C/C++ Code Formatting

2022-11-28 Thread Kurt Schwehr
+1. Having the hooks makes this feasible. Thank you for pickup the work that I let fall on the floor so long ago! On Mon, Nov 28, 2022 at 9:46 AM Javier Jimenez Shaw wrote: > Yes, those are two different issues: attribution and "blame", that is > really bothering when you want to see the histor

Re: [gdal-dev] Motion: adopt RFC69 C/C++ Code Formatting

2022-11-28 Thread Javier Jimenez Shaw
Yes, those are two different issues: attribution and "blame", that is really bothering when you want to see the history. Your comment reminded me that other. (Sorry for the format, I'm having problems with my phone) On Mon, 28 Nov 2022, 18:35 Even Rouault, wrote: > > Le 28/11/2022 à 18:17, Javi

Re: [gdal-dev] Motion: adopt RFC69 C/C++ Code Formatting

2022-11-28 Thread Even Rouault
Le 28/11/2022 à 18:17, Javier Jimenez Shaw a écrit : Which version of clang-format are we using? 15.0.4 currently, pinned in the pre-commit configuration file. cf https://github.com/OSGeo/gdal/pull/6787#issuecomment-1327416250 . It is installed automatically when running pre-commit. Works fine

Re: [gdal-dev] Motion: adopt RFC69 C/C++ Code Formatting

2022-11-28 Thread Javier Jimenez Shaw
Which version of clang-format are we using? (I saw 3.8 somewhere n the code?) Older versions are not easy to get in modern operating systems. In Ubuntu 22.04 the default is clang-format-14. It is specially hard in MacOS, friends told me. About the blame problems, we can do this: https://akrabat.co

Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Johannes Paul
Perfect ! Thank you very much. Johannes On Mon, 28 Nov 2022 at 16:16, Even Rouault wrote: > Johannes, > > minimum or near-minimum builds are tricky because of inter-driver > dependencies. > > You also need to add -DOGR_ENABLE_DRIVER_PGDUMP=ON > > Cf > https://github.com/OSGeo/gdal/blob/b2c689436

Re: [gdal-dev] Motion: adopt RFC69 C/C++ Code Formatting

2022-11-28 Thread Even Rouault
Hi, +1 and I'm very much for the "Big reformat", otherwise as discussed with Alessandro, I'm afraid occasional contributors will mix substantial and formatting changes in the same commit. The Big reformat commit itself should be done with a dedicated github account, like we did with the "git

[gdal-dev] Proposal of a -json output for ogrinfo

2022-11-28 Thread Even Rouault
Hi, I've implemented a -json switch for ogrinfo Cf https://github.com/OSGeo/gdal/pull/6812 This should be useful to those using currently grep, sed, awk, and the like to extract metadata information on a OGR dataset. Even -- http://www.spatialys.com My software is free, but my time generall

Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Even Rouault
Johannes, minimum or near-minimum builds are tricky because of inter-driver dependencies. You also need to add -DOGR_ENABLE_DRIVER_PGDUMP=ON Cf https://github.com/OSGeo/gdal/blob/b2c689436208e72518f4cd60fb5e27d6d985a621/ogr/ogrsf_frmts/CMakeLists.txt#L87: {{{ ogr_dependent_driver(pg PostG

[gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Johannes Paul
Hello, i'm having trouble getting GDAL compiled on Centos 7 and 8 with OGR PostgreSQL driver. I used to compile GDAL using configure --with-pg=yes, which was working fine, however since v3.6.0 cmake shall be used, and I can't get OGR_PG driver enabled using the following cmake options: cmake3 .. -

[gdal-dev] Update mosiac tiles

2022-11-28 Thread Clive Swan
I need to merge/update existing raster mosaic tile directories, with new data. Is gdal_merge still the best gdal library to use?? -- Regards, Clive Swan -- ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/