When I ran my code it ended up writing GeoJSON to a file in the current directory, rather than writing to the DB. When I removed the double quotes it worked as expected.
Just wanted to document this since the ogr2ogr docs sometimes use connection strings with double quotes.
Hello again @wavded!
Non-urgent issue I wanted to note here: I'm writing some data to a Postgres DB and was using a connection string like:
And when I called
ogr2ogr
:When I ran my code it ended up writing GeoJSON to a file in the current directory, rather than writing to the DB. When I removed the double quotes it worked as expected.
Just wanted to document this since the ogr2ogr docs sometimes use connection strings with double quotes.
Thank you and hope this might help others!