Hey Dane, I actually decided to move over to Postgres to store my geospatial data, and that seems to be working fine. If I have time I will post a trac ticket with the mysql details in case it is helpful for people in the future.
David On Fri, Feb 18, 2011 at 4:40 PM, Dane Springmeyer <[email protected]> wrote: > Hmm, David, glad you made progress. Sorry pulling directly from mysql is > still not working. > > Can you post a trac ticket with a bit of sample data and your vrt/XML file? > > Dane > > On Feb 16, 2011, at 2:38 PM, David Wiesen wrote: > > You are correct. mapnik was pointing to gdal 1.6.0 instead of gdal 1.7.2 > fixing that link causes this error to stop. > > However, I am still unable to process the ogr input in mapnik: > > > ogr2ogr -f "ESRI Shapefile" plots.shp plots.ovf > > >>> import mapnik > >>> ds_ogr = mapnik.Ogr(file='plots.ovf', layer='plots') > >>> ds_shp = mapnik.Ogr(file='plots.shp', layer='plots') > >>> len(ds_ogr.all_features()) > 0 > >>> len(ds_shp.all_features()) > 5319 > > Thanks for the responsiveness and the help, guys. I appreciate it. > > David > > > On Wed, Feb 16, 2011 at 1:45 PM, Jon Burgess <[email protected]>wrote: > >> 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

