PV Viability Map Requirements
- Display map in web page.
- Search an address and display the building there.
- Standard map mouse navigation (drag to pan, mouse wheel to zoom, etc.)
- Click on building to identify.
Process Overview
Before diving into looking for a solution, a pause to consider the process is in order. From the Wikipedia page for OpenStreetMap we learn:- The main copy of the OSM data is stored in OSM's main database. The main database is a PostgreSQL database, which has one table for each data primitive, with individual objects stored as rows. All edits happen in this database, and all other formats are created from it.
- For data transfer, several database dumps are created, which are available for download. The complete dump is called planet.osm. These dumps exist in two formats, one using XML and one using the Protocol Buffer Binary Format (PBF).
I was able to install both of those with:
$ sudo aptitude install osmosis imposmI'm not clear when one would use imposm and when one would use osm2psql, which seems to be for the same purpose. I installed the latter as well with:
$ sudo aptitude install osm2psqlTo be honest, I find the OSM wiki documentation to be very challenging to read. It appears thorough and is well written, but it assumes a wealth of background I lack. Hopefully with time I'll be able to make better use of it. For now I'll wait for our meet up this evening to see if David can help me figure out how to use osmosis to get data for Arlington County.
No comments:
Post a Comment