Question

How can I use csv-files in mapnik?

I found a csv-module for Mapnik but without good docs.

I want to include csv-file with titles of countries and their population in years into Mapnik and render map with different colours using shapefile.

How can I do it?

And offtopic question: if I open shapefile in xml, how can I get some data in code (some parameters - print titles of countries in console, for example)?

Était-ce utile?

La solution

Documentation for CSV plugin. It won't get any better. If you used other plugins, you'll understand this one.

Now, other parts of your question do not make any sense. I recommend installing TileMill and following its documentation, adding shape and csv layers from there and styling as you like. There are some examples for colouring countries.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top