-
Notifications
You must be signed in to change notification settings - Fork 16
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
no official equivalent of --id available when using ogr2osm as a library #23
Comments
Thanks for your report. I've overlooked the combination of setting an id and the use of ogr2osm as a library, but that's of course a legit use. What you did is the only way for now but I agree it doesn't feel as the most elegant solution. I think it would be more appropriate to set the start id in the instance of the |
The OsmData constructor has two new optional parameters now: start_id and is_positive. Only start_id is documented, is_positive is the equivalent of the equally undocumented --positive-id parameter. |
Looks good to me |
I added two more functions |
When switching from cli to library usage, I noticed there's no equivalent of the --id option mentioned in the example code. I managed to get the same behavior using
before defining the data source. You may want to add this or a cleaner version to the example
The text was updated successfully, but these errors were encountered: