<br><div id="ymail_android_signature"><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">Hi all!</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">Maybe i am not using this tool properly. I am want to read the contents of a WFS service into an in memory sqlite database. Then i want to add a second table to it name it filter from a geojson, do an SQL query on the two tables, and write the result into a Postgresql database, this only using command line tools.</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">I ran this first, and no error<br style="overflow-wrap: break-word;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">ogr2ogr -f "SQLite" /vsimem/temp.sqlite WFS:<a rel="nofollow noopener noreferrer" target="_blank" href="http://localhost:8080/geoserver/wfs" class="yiv3664104468moz-txt-link-rfc2396E" style="overflow-wrap: break-word; word-break: break-word; color: rgb(0, 0, 128);">"http://localhost:8080/geoserver/wfs"</a> ne:buildings -nln buildings -dsco SPATIALITE=YES -lco SPATIAL_INDEX=YES -nlt POLYGON</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">i ran this secondly and no error.<br style="overflow-wrap: break-word;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">ogr2ogr -f "SQLite" -update -append /vsimem/temp.sqlite area_json.json -nln filter -dsco SPATIALITE=YES -lco SPATIAL_INDEX=YES</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">But then i tried: ogrinfo /vsimem/temp.sqlite i get ogrinfo failed - unable to open '/vsimem/temp.sqlite'.</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">And this was what i tried to do further on, but not working due to the reason above.<br style="overflow-wrap: break-word;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;"></p><pre class="yiv3664104468western" style="overflow-wrap: break-word; background: transparent; font-family: "Liberation Mono", monospace; font-size: 10pt;"><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">ogr2ogr PG:"dbname='</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">postgres</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">' host='172.17.0.</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">2</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">' port='5432' user='working_user' password='working_password'" -</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">lco GEOMETRY_NAME=geom</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;"> 
-</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;">lco GEOM_TYPE=geometry</font></font></code><code class="yiv3664104468western" style="overflow-wrap: break-word; font-family: "Liberation Mono", monospace;"><font face="Liberation Serif, serif" style="overflow-wrap: break-word;"><font style="overflow-wrap: break-word; font-size: 12pt;"> -lco SCHEMA=geospatial /vsimem/temp.sqlite  -sql "Select * from buildings join filter on st_intersects(buildings.geom,filter.geom)" -nln buildings_result -nlt polygon</font></font></code></pre><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">Any ideas what i am using wrong, or how could i do this properly?</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;"><br style="overflow-wrap: break-word;"></p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">Kind regards,</p><p style="overflow-wrap: break-word; line-height: 16.1px; margin-bottom: 0.1in; background: transparent;">Robert N</p></div>