0

In one of my simulations I need to export following data:

  1. OpenStreetMap of a certain region (OpenStreetMap centered at a particular point and with a particular zoom level)
  2. Lines, representing the administrative boundary of that region
  3. Points
  4. Lines between points

I need to save these data such that thereafter the user can take them and

  1. look at the map with different zoom levels (he or she should see both the OpenStreetMap and the items I drew on top of it) and
  2. export it to PNG.

What existing (preferably open-source) options are there, apart from the one described below?

Note that I don't care whether these data are saved as file (which the user then opens in some program) or as a URL (which contains all points and lines and if the user opens it, these points and lines are displayed above the OpenStreetMap) or something else.

Known way to accomplish the task

I could save data above into an XML file, then write a Java program based on the MapPanel component, which will display the map and all elements.

If there is already a program, which does that then I'd like to re-use it.

  • 1
    Is this online? Do you have connectivity to an OSM server? Do you have connectivity to some web site? To a database? – BradHards Mar 16 '15 at 10:15
  • 2
    I'd just simply use openlayers.org – ymirsson Mar 16 '15 at 10:36
  • @BradHards The user, who will view this data will have an internet connection (he or she will have a connection to OSM server). But I don't want the user to install any database on the machine. He or she should be able to view those data with as little effort as possible. – Dmitrii Pisarenko Mar 16 '15 at 11:44
  • 1
    How about QGIS and a vector layer (spatialite, shapefile, whatever)? – BradHards Mar 16 '15 at 20:17
  • 1
    QGIS supports many file types, which is why I suggested a couple of standard vector formats. Can you create a shapefile in Java (yes: GeoTools) or a spatialite file in Java (yes: via sqlite, see gaia-gis.it/gaia-sins/spatialite-cookbook/html/java.html). – BradHards Mar 16 '15 at 20:32
0

Overpass-turbo.eu can be used to query OSM database.

GeoJson.io can be used to draw points and lines.

Both can be used to share maps online.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.