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