I downloaded a world
Is there a way to configure In my understand, I should:
Will this make the By dependent objects I mean, for example, nodes that make up a a country boundary. The nodes won't have the attributes listed above, but they are still needed for the boundaries. How do I import these, but not the others? Am I taking the right course of action, or should I do it in a different way? The final goal is to create a database with minimum amount of data that I can query for simple geocoding by place name, and for rendering of administrative map with administrative boundaries only and no other map features. Does it make any sense? I'm not concerned about the time it will take to import, i.e. it makes no difference for me whether it will be 2 hours or 24 hours. The only concern is the final amount of data stored in the database, which I would like to reduce as much as possible. asked 02 Jul '17, 06:06 meglio |
You could consider using osmfilter and osmconvert to preprocess the .osm.pbf file even before it gets to osm2pgsql. answered 02 Jul '17, 22:03 Richard ♦ Thanks @Richard. Should I consider
(03 Jul '17, 10:54)
meglio
1
I would not advise using the --ignore-dependencies option because you will need nodes as they are of the only OSM object type which holds coordinates. Here is an example how to prefilter OSM data and even update the database with prefiltered data: https://wiki.openstreetmap.org/wiki/Openptmap/Installation#Fill_the_Database
(08 Jul '17, 20:36)
Marqqs
|
The second set of tables, the slim tables, contain more or less raw OSM objects, in the adequatly named Long story short, you can reduce the total database size significantly using the process you outline, but only if don't need incremental updates. answered 02 Jul '17, 09:26 Frederik Ramm ♦ @frederik-ramm "no dependencies on other objects exist" - this is a gotcha moment, many thanks! If I understand correctly, slim tables are populated first as a normalized version of the data file, then geometry tables are populated out of those. If I need to experiment with
(03 Jul '17, 08:21)
meglio
@frederik, may you please also clarify is my understanding is correct: whatever columns I specify in the
(03 Jul '17, 09:52)
meglio
|
Hi @meglio, did you find a way to accomplish this? I'm looking to import only a fraction of all the features too.
Unfortunately, no.
@meglio that's a bummer, was hoping that there's was some way to make the import leaner. :-(