-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown option name '-spat' #95
Comments
Problem solved; I needed to pass the I'm sure this is just a |
Glad you figured it out. I don't think we want to assume arguments should be split up by space. We just pass them to the raw ogr2ogr command. Given the breathe of commands you can run with ogr2ogr, this library doesn't try to make many assumptions as to how it will be used. |
Hello!
I'm trying to load in a GeoJSON file into a Postgres database, filtering by a bounding box with
-spat
(docs).Here is a minimal example:
That throws an error:
If I take the
cmd
fromogr2ogr
and run it by hand in the shell, it runs fine.Interestingly, in more complex examples I can sometimes get
-spat
to work depending on where it is in myoptions
array. It seems to work if it comes before-nlt
, but not after. I've tried quoting it and that didn't help.The text was updated successfully, but these errors were encountered: