Announcement

Collapse
No announcement yet.

Import OSM or PBF file into NWW

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Import OSM or PBF file into NWW

    Dear all,

    I would need to import OpenStreetMap files (*.osm, *.pbf) into my NWW application. I haven't found any OSMReader in NWW (as there is a GeotiffReader or GDALDataRasterReader that can produce a NWW tiled cache from jp2, gtiff,... files ).

    Has someone already tried this before ?

  • #2
    I have not tried any kind of reader within WorldWind for the OSM files themselves, but if it is helpful to you, a solution for me was to download the planet file from the OSM site (.osm.bz2), ingest the planet file into a PostgreSQL/PostGIS database using the osm2pgsql command, and then using GeoServer to host the files from the database. So, creating my own local map server. If you do not require the entire planet, this process also worked with the sections of the planet from the Geofabrik site (http://download.geofabrik.de/), I used the logic WW used with their layer XML files in the config.Earth directory to load the layer into WW.
    OSM Planet: https://planet.openstreetmap.org/
    GeoSever: http://geoserver.org/
    osm2pgsql: https://github.com/openstreetmap/osm2pgsql
    PostGIS: https://postgis.net/install/
    PostgreSQL: https://www.postgresql.org/
    All provided sites contain tutorials which will walk you through the setup process.
    Hope this is helpful to you, as it also took me a while to find a solution for this that met my requirements.

    Comment

    Working...
    X