Git Product home page Git Product logo

Comments (4)

apmon avatar apmon commented on May 25, 2024

Can you check if the most recent commit to osm2pgsql fixes this issue as well?

from osm2pgsql.

michael-hy avatar michael-hy commented on May 25, 2024

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.

apmon avatar apmon commented on May 25, 2024

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.

michael-hy avatar michael-hy commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.