<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm trying to import a layer from a filegeodatabase into postgis and clip it to a separate postgis layer. Is that possible? I can successfully clip using the clipsrc argument with a bounding box I've read that it will also work for a shapefile, but I'd prefer to use a postgis layer as the clipsrc datasource.<br></div><div><br></div><div><br></div><div>   <span style="font-family:monospace">ogr2ogr \<br> -f "PostgreSQL" \<br>   PG:$(DATABASE_URL_OGR) \<br>      data/data.gdb \<br>       -nln data.flows \<br>     Flows \<br>       -lco GEOMETRY_NAME=geom \<br>     -nlt MULTILINESTRING \<br>        -t_srs EPSG:4326 \<br>    -clipsrc datasource \<br> -clipsrclayer 'select geom4326 from data.boundary' PG:$(DATABASE_URL_OGR)</span><br><br></div><div>This is my latest attempt but the error is:</div><div>ERROR 5: cannot load source clip geometry</div><div><br></div><div>Thanks!<br></div><div><br></div><div></div></div>