[ddj] Visualizing data on a map of Germany (county-level)

Randy Wright rw26 at lrw.net
Thu Jun 4 14:42:51 UTC 2015

I do this kid of work with leaflet by converting the shapefile to 
geojson. When the geojson is loaded,
you get to set the fill color of each polygon and the properties are 
exposed so you can can select a color based on a property in the geojson 
file. The conversion of shapefile to geojson can be done with a ogr2ogr 
in the gdal package (http://gdal.org). You can probably also do that 
with qgis. (http://www.qgis.org/en/site/). I usually use custom node.js 
scripts to put together geojson with related csv data.

Here are a couple of links:
(bottom of page)

These maps are both taken from government supplied shapefiles.


On 06/04/2015 07:40 AM, Bastian Benrath wrote:
> Dear list,
> I’m currently working on visualizing data on a map of Germany and am 
> looking for some advice.
> My aim is to build something like this: 
> http://live0.zeit.de/infografik/keimkarten/index.html. I got my data 
> as CSV and also the boundaries of the counties („Landkreise“ in 
> German) as shapefiles. I’m trying to bring the two together using 
> Mapbox studio, however I’m not finding the option to color the 
> polygons differently, based on the data. Can anybody help me with 
> this? Or recommend another tool with which it is easier to visualize 
> the data?
> Thanks a lot in advance!
> Bastian
> (Munich, Germany)
> _______________________________________________
> data-driven-journalism mailing list
> data-driven-journalism at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/data-driven-journalism
> Unsubscribe: https://lists.okfn.org/mailman/options/data-driven-journalism

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/data-driven-journalism/attachments/20150604/e68851aa/attachment-0003.html>

More information about the data-driven-journalism mailing list