ccc-map/README.markdown

2.8 KiB
Raw Permalink Blame History

ccc maps

the svg map used on ccc de is at least potentially outdated and thus in future should be updated automatically

my target process

  • fetch addressed of a convenient source
  • resolve geo coordinates for addresses, e.g. geopy
  • visualize on a map, e. g. via leafletjs or QGIS
  • calculate coordinates to place POI on a SVG with a known projection
  • manipulate SVG so that the POI are shown accordingly even without any application
  • change view port of SVG so it frames the POIs properly
  • create PNG from the SVG and deploy
  • document for others to use

data

POI

the address data source is the semantic documentation wiki, queried with result format

To create GeoJSON from recent address data:

  1. prepare.sh pulls CSV from the Wiki
  2. create-geojson.sh calls lookup.py for each CSV set
  3. The resulting data in GeoJSON format can be used with e.g. leafletjs or QGIS

Map

The old svg map was nice for Germany only. Over time more European spaces joined and the map could not display all of them.

Another point is that the projection parameters of the SVG are not known. New material can be produced choosing the projection. One recommended program to do this is QGIS. Freely useable data is available on e.g. Natural Earth.

To create a new SVG Map:

  1. Start QGIS, KBS setting recommendation: EPSG:3857 / Pseudo Mercator
  2. Drop a Shape-File, e.g. sqlite format (and optionally a GeoJSON-File)
  3. Adjust colors in the layers styles
  4. Print as SVG (Label for POI data is lost in version 2.18)