[GRASS-user] Read GRASS vector data from mapnik

Pietro peter.zamb at gmail.com
Tue Apr 16 03:04:50 PDT 2013


Hi all,

I'm trying to use mapnik to generate figures from a GRASS mapset
though OGR[0], but it seems that the GRASS format is not supported.
If I try:

{{{
#!python
import mapnik

schools = mapnik.Ogr(base='/data/gis/nc_basic_spm_grass7/PERMANENT/vector/schools',
                     file='head',
                     layer='1')
}}}

I got:

{{{
RuntimeError: OGR Plugin: connection failed:
/data/gis/nc_basic_spm_grass7/PERMANENT/vector/schools/head was not
found or is not a supported format
}}}

In theory OGR support the vector format of GRASS[1].
There is someone that use mapnik and GRASS that know how to solve it?

Best regrads.

Pietro

[0] https://github.com/mapnik/mapnik/wiki/OGR
[1] http://www.gdal.org/ogr/drv_grass.html


More information about the grass-user mailing list