Hi folks,

I’m trying to use the Mapnik ogr datasource, by passing a string of data to
it.

The documentation I found says:



string: optional (replaces *file* parameter) string of literal
OGR-datasource data, like GeoJSON



But if I use the line:

mapnik.Ogr(string='{"type":"Point","coordinates":[3130729.488686,10091615.590192]}')



…then it returns “missing <file> parameter”.



So, can anyone help me with the syntax to pass a GeoJSON string instead of a
file name?



Thanks



Mark Ireland
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to