On Wed, 2011-02-16 at 13:31 -0800, David Wiesen wrote:
> I am using version 1.7.2
> 
> 
> > gdal-config --version
> 1.7.2

I would question whether the gdal.input you are using with Mapnik is
really linked against this version of the gdal library since the error
message you are seeing can realistically only be generated by an older
version of code which does not have the "wkbMultiPolygon" string listed
in that table.

For reference the block of code in gdal-1.7.2 which matches against this
string table and reports the error message you gave is here:
http://trac.osgeo.org/gdal/browser/tags/1.7.2/gdal/ogr/ogrsf_frmts/vrt/ogrvrtlayer.cpp#L275

   Jon

> On Wed, Feb 16, 2011 at 1:29 PM, Jon Burgess <[email protected]>
> wrote:
>         On Wed, 2011-02-16 at 12:50 -0800, David Wiesen wrote:
>         > I am trying to use an Ogr data source to hook up MySQL as a
>         backend
>         > for mapnik.  However, I am running into early problems:
>         >
>         > >>> import mapnik >>> ds = mapnik.Ogr(file='plots.ovf',
>         layer='plots')
>         > ERROR 1: GeometryType wkbMultiPolygon not recognised.
>         Traceback (most
>         > recent call last):   File "<stdin>", line 1, in <module>
>         File
>         > "/usr/lib/pymodules/python2.6/mapnik/__init__.py", line 429,
>         in Ogr
>         >     return CreateDatasource(keywords) RuntimeError:
>         GeometryType
>         > wkbMultiPolygon not recognised. >>>
>         >
>         
>         
>         That error seems to be thrown from the gdal/ogr code, not
>         mapnik itself.
>         
>         By the look of things, there was a bug in the gdal code which
>         meant that
>         wkbMultiPolygon used the wrong name string. It looks like this
>         was fixed
>         in gdal-1.7.0+, what version are you using?
>         
>         http://trac.osgeo.org/gdal/changeset/17923
>         
>          Jon
>         
>         
> 
> 


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

Reply via email to