wavded / ogr2ogr

An ogr2ogr wrapper library
MIT License
214 stars 46 forks source link

Unexpected behavior with double quotes in PG connection string #94

Closed bertday closed 1 year ago

bertday commented 1 year ago

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:

PG:"dbname='db'"

And when I called ogr2ogr:

await ogr2ogr(path, {
  destination: `PG:"dbname='db'"`,
});

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!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.