Re: [gdal-dev] gdal 3.11 vector pipeline with postgres problems

2025-04-26 Thread Daniel Baston via gdal-dev
Hi Rich, This is a bug -- the "read" step does not exclusively pass GDAL_OF_VECTOR to GDALOpen, so it attempts to read raster layers from the input. I've made one possible fix at https://github.com/OSGeo/gdal/pull/12203. Dan On Sat, Apr 26, 2025 at 2:14 PM Richard Greenwood via gdal-dev < gdal-d

[gdal-dev] gdal 3.11 vector pipeline with postgres problems

2025-04-26 Thread Richard Greenwood via gdal-dev
Below works: *$ gdal vector info PG:"$PGCONN" -l "roads"* And this works: *$ gdal vector convert PG:"$PGCONN" -l "roads" junk* But below fails (I'm using pipeline because I need an intermediate step once I get this to work). I do not have the postgis_raster extension in this database. *$ gdal

Re: [gdal-dev] GDAL 3.11 vector utility

2025-04-26 Thread Daniel Baston via gdal-dev
Hi Rich, Thanks for testing this. I think a pipeline works well here: gdal vector pipeline read tl_2024_us_state.shp ! select "STUSPS,NAME,_ogr_geometry_" ! geom set-type --multi ! write "PG:$PGCONN" --lco GEOMETRY_NAME=geom Dan On Fri, Apr 25, 2025 at 7:35 PM Richard Greenwood via gdal-dev <