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)?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top