add note about expected test failure with gdal older than 1.9

This commit is contained in:
Dane Springmeyer 2012-08-21 11:47:15 -07:00
parent a75014c056
commit ac313cf907

View file

@ -28,6 +28,7 @@ if 'ogr' in mapnik.DatasourceCache.instance().plugin_names():
def test_shapefile_properties():
# NOTE: encoding is latin1 but gdal >= 1.9 should now expose utf8 encoded features
# See SHAPE_ENCODING for overriding: http://gdal.org/ogr/drv_shapefile.html
# So: failure for the NOM_FR field is expected for older gdal
ds = mapnik.Ogr(file='../../demo/data/boundaries.shp',layer_by_index=0)
f = ds.features_at_point(ds.envelope().center()).features[0]
eq_(ds.geometry_type(),mapnik.DataGeometryType.Polygon)