Christian Jauvin wrote:
if succ == MS_SUCCESS:
    n_res = layer.getNumResults()
    for j in range(n_res):
        res = layer.getResult(j)
        shp = layer.getFeature(res.shapeindex)
        features.append(shp)


Note that starting with MapServer 5.6, when reading shapes out of a resultset, you should use the new layer.resultsGetShape() method instead of layer.getShape() or layer.getFeature().

Your script creates and queries inline features, and in this case the old method still works, but for PostGIS, Oracle and SDE data sources that is an important change to make.

More info in the 5.6 migration guide (draft) at
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT

Daniel
--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to