I've setup a local OSM Website instance and ran an experiment with a group during few months and now I want to parse the data. The overall data is less than 10k points and I need to show them in a single image, in a Kernel density map for example. The Website only shows mapped data after a high zoom level, in which the whole area isn't covered. Is there a way to gather this data from my local OSM server? If I could export the data and convert to shp or another GIS-like file I could make that map with 3rd party GIS, but I don't know how to export all the data.

asked 22 Sep, 20:37

carlosguedes's gravatar image

carlosguedes
916916
accept rate: 0%


If you have a local instance of the OSM web site, then you can use the /map API call to download all of your data as an OSM xml file. This can then be imported into a PostGIS database with osm2pgsql, or directly loaded into QGIS, or converted to shape files with e.g. osmium or ogr2ogr.

If the area covered by your points is larger than 0.25 degrees squared you will have to adjust the max_request_area setting in your configuration. Likewise if you wanted to export more than 50,000 nods (adjust max_number_of_nodes).

permanent link

answered 22 Sep, 22:05

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
74.5k866721152
accept rate: 24%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×303
×129
×94
×29

question asked: 22 Sep, 20:37

question was seen: 149 times

last updated: 27 Sep, 18:32

powered by OSQA