Hot answers tagged

4 votes
Accepted

Integer field of CSV file always output as String when processed with ogr2ogr

Read documentation from here https://gdal.org/drivers/vector/csv.html#layer-creation-options STRING_QUOTING=[IF_NEEDED/IF_AMBIGUOUS/ALWAYS]: Defaults to IF_AMBIGUOUS. whether to double-quote strings. ...
user30184's user avatar
  • 63k
3 votes
Accepted

Writing Foreign Members to GeoJSON files using ogr2ogr

Will be available in GDAL 3.9 per https://github.com/OSGeo/gdal/pull/8830 ogr2ogr out.json in.whatever -lco "FOREIGN_MEMBERS_FEATURE={\"foreign-key\": \"foreign-value\"}"
Even Rouault's user avatar
3 votes

Integer field of CSV file always output as String when processed with ogr2ogr

Will be fixed in GDAL 3.8.2 per https://github.com/OSGeo/gdal/pull/8813
Even Rouault's user avatar
2 votes

Why doesn't ogr2ogr support the PostgreSQL schema search path?

If the change was due to that commit https://github.com/OSGeo/gdal/pull/2405 then obviously it did not break anything that is tested. The PostGIS Python tests are in https://github.com/OSGeo/gdal/blob/...
user30184's user avatar
  • 63k
2 votes

Integer field of CSV file always output as String when processed with ogr2ogr

Using a VRT file? https://gdal.org/drivers/vector/vrt.html there is an example on the CSV page: https://gdal.org/drivers/vector/csv.html#building-point-geometries I wrote a tutorial some years ago ...
Guts's user avatar
  • 612
1 vote

ogr2ogr skipping rows when converting from osm.pbf to gpkg

The way that you used as an example is this https://www.openstreetmap.org/way/404851503 It is a closed way that consists of 109 points. It acts in an "outer" role in a relation "Golden ...
user30184's user avatar
  • 63k

Only top scored, non community-wiki answers of a minimum length are eligible