Comments (4)
Can you check if the most recent commit to osm2pgsql fixes this issue as well?
from osm2pgsql.
Sorry to tell that it still does not work. I tried with --hstore and without. "Stadtbezirk 04 Schwabing-West" is still not in the database. I uploaded the filtered osm data file oberbayern-adminbounds.xml.bz2 since it is just 4.3MB in size:
http://s000.tinyupload.com/index.php?file_id=35203647303519468070
Perhaps you would like to try for yourself. Now you don't need to go through the osmosis stuff anymore.
PS: here are the commandline i used
./osm2pgsql/osm2pgsql --cache 6000 --number-processes 7 -S ./default.style --latlong -H localhost -U michael -P 9201 -d osm --hstore oberbayern-adminbounds.xml.bz2
./osm2pgsql/osm2pgsql --cache 6000 --number-processes 7 -S ./default.style --latlong -H localhost -U michael -P 9201 -d osm oberbayern-adminbounds.xml.bz2
from osm2pgsql.
In the example you have given, the way "28823678" does not seem to be in the file. Therefore the relation can't form a complete polygon and is put into the planet_osm_line table instead of planet_osm_polygon.
from osm2pgsql.
Ok, now in understood the problem. Sorry to have wasted your time. My osmosis call was flawed. Now everything worked fine. Here is the (hopefully) correct osmosis call that worked:
bzcat oberbayern-latest.osm.bz2 | ./osmosis/bin/osmosis --read-xml enableDateParsing=no file=- --tf accept-relations boundary=administrative --used-node --used-way --write-xml file=- | bzip2 > oberbayern-adminbounds.osm.bz2
Thanks for all your support
from osm2pgsql.
Related Issues (20)
- Problem with query to get changed parent objects HOT 7
- 1.9.2 failed to build on several architectures (error: static assertion failed) HOT 2
- Segmentation fault (core dumped) HOT 2
- Allow more than 32 generalization jobs HOT 2
- Chunky rivers when generalizing water areas HOT 2
- Question: could not extend file "base/361191441/368615606.137": No space left on device
- osm2pgsql should not perform analyze by itself HOT 15
- `object:as_multipolygon()` does not take `object.members` into account. HOT 2
- Some research on middle performance HOT 4
- highway=rest_area treatet as line HOT 2
- free(): invalid size Aborted Core dumped HOT 4
- North America import fails HOT 1
- nlohmann-json is missing from the Alpine build dependencies command
- Error in reprocessing of ways in relation, if osmc_symbols-tag of the relation contains the word 'backslash' HOT 6
- Deprecating -i,--tablespace-index? HOT 5
- Out of bounds tile coordinates produced HOT 3
- as_linestring() and likely other geometry transform functions can only be called from the process_way() function, not custom functions. HOT 5
- When Planet osm data import, way showing 0 and not started HOT 6
- osm2pgsql using too much memory for expire lists HOT 14
- Windows CI broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2pgsql.