[gdal-dev] Using simple ogr2ogr line commands from C# code or another language

2024-05-23 Thread Oscar Calderon via gdal-dev
Hello,
I'm trying to execute these commands from my C# code:

ogr2ogr file1.shp file2.shp

ogr2ogr -update -append filex.shp  filey.shp

ogr2ogr -f GPKG -skipfailures -dialect sqlite -nln xxx file_whatever.gpkg 
file_whatever.shp

ogr2ogr -sql "sql query" file1.gpkg file2.gpkg

Basically, I'm combining two shapefiles in one, converting the combined file to 
geo package (gpkg) and then executing some sql queries on this gpkg.

To accomplish this, I've been using Process and ProcessStartInfo (executing a 
command line from my code), but I want to use the API.
Could someone help me to find the proper documentation or explain how this is 
done?

Thank you
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] libgeotiff 1.7.2 is released

2024-05-23 Thread Even Rouault via gdal-dev

Hi,

Source packages can be found at:

https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.7.2.tar.gz
https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.7.2.zip

News is:

* GTIFGetDatumInfoEx(): handle dynamic datums
* CMake: adopt GNUInstallDirs
* CMake: export TIFF as a public dependency
* Add XTIFFClientOpenExt() with re-entrant error callbacks
* listgeo: add a -no_corners option to avoid printing corner
  coordinates which might be PROJ version sensitive (refs #81)
* Fix test failures with PROJ 9.1.1 and 9.3
* Remove trailing spaces from many files.
* Localize variables and add const when possible in a number of files
* geo_normalize.c: sprintf --> snprintf
* Add missing includes
* Fix -Werror=calloc-transposed-args with gcc 14
* FindPROJ.cmake: proj_experimental;h -> proj_experimental.h
* CMake: add a BUILD_SHARED_LIBS option, and make it default to ON
* autoconf/CMake: add generation of libgeotiff.pc
* Remove INSTALL and install-sh autoconf-generated files

Even

--
http://www.spatialys.com
My software is free, but my time generally not.

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev