<div dir="ltr"><div>Hi Rich,</div><div><br></div><div>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 <a href="https://github.com/OSGeo/gdal/pull/12203">https://github.com/OSGeo/gdal/pull/12203</a>.</div><div><br></div><div>Dan</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Apr 26, 2025 at 2:14 PM Richard Greenwood via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Below works:</div><div><font face="monospace"><b>$ gdal vector info PG:"$PGCONN" -l "roads"</b></font></div><div><br></div><div>And this works:</div><div><b><font face="monospace">$ gdal vector convert PG:"$PGCONN" -l "roads" junk</font></b></div><div><br></div><div>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.</div><div><font face="monospace"><b>$ gdal vector pipeline read PG:"$PGCONN" -l "roads" ! write junk<br>ERROR 1: Error browsing database for PostGIS Raster tables: <br>ERROR 1: Error browsing database for PostGIS Raster tables: <br>Usage: gdal vector pipeline [OPTIONS] <PIPELINE><br>Try 'gdal vector pipeline --help' for help.</b></font><br></div><div><br></div><div>I created the postgis_raster extension and ran the same pipeline:</div><div><font face="monospace"><b>$ gdal vector pipeline read PG:"$PGCONN" -l "roads" ! write junk<br>ERROR 1: read: Cannot find source layer 'roads'</b></font></div><div><br></div><div>It seems like requiring the postgis_raster extension is a bug. </div><div>What about the <b style="font-family:monospace">Cannot find source layer</b>? I fiddled with specifying the schema, different quoting, etc.</div><div><br></div><div>Thanks</div><div>--</div><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><br></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>