-
Notifications
You must be signed in to change notification settings - Fork 20
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
support update mode #275
Comments
@SailorMax I want to make sure I understand what you're trying to accomplish. There are a few similar/overlapping concepts, I want to make sure we're talking about the same things. Append modeThe Multiple input files, single importImporting multiple PBF files as one data set is supported by osm2pgsql but not yet by the Docker image. I show an example of that functionality under the Multiple PBF Inputs section of this post. For an immediate workaround to this you should be able to use I have an idea in mind on how to make this work well in the Docker image. It won't be in place immediately, though I think it should be able to support:
Multiple input files at different timesThe exact commands you shared show running these files at seperate times. I'm not sure if that's a side effect of trying to make it work, or desired functionality. E.g. do you want to be able to import Region A on Monday then add Region B on Tuesday? If so,does osm2pgsql by itself allow this in |
I mean "Multiple input files at different times". Something like
=> Recreate all database is not good solution for me. Better give to script fresh pbf-file of any used or not used region and append all new osm_id records to exist database and remove deleted. Not sure about update polygons and it's data. |
@SailorMax I've been digging into this, there's definitely room for improvement! Here are my thoughts so far. First -- I had no idea I had misconceptions about how
|
@SailorMax This feature seems to be working as expected on the The |
Closing as completed, will be in 0.7.0 soon via #290 |
What version of PgOSM Flex are you using?
0.6.2
What did you do exactly?
> docker exec -it -e POSTGRES_HOST=127.0.0.1 -e POSTGRES_DB=postgres pgosm python3 docker/pgosm_flex.py --ram=8 --language=en --data-only --append --schema-name=osm --srid=4326 --skip-nested --skip-dump --input-file=argentina-latest.osm.pbf
> docker exec -it -e POSTGRES_HOST=127.0.0.1 -e POSTGRES_DB=postgres pgosm python3 docker/pgosm_flex.py --ram=8 --language=en --data-only --append --schema-name=osm --srid=4326 --skip-nested --skip-dump --input-file=bolivia-latest.osm.pbf
What did you expect to happen?
Database with data of both countries.
What did happen instead?
Database with only Argentina's data.
What did you do to try analyzing the problem?
Investigate results.
Looks like your append-mode required internet connection and additional tables in public-schema to update primary data.
Can you add update-mode, which just add new data (by osm_id?) from source files to already created db/schema/tables? (do not drop/modify database/schemas/tables)
thank you.
The text was updated successfully, but these errors were encountered: