[Mapserver-users] Creating dynamic shapefiles with Python Mapscript
Michael Schulz
mschulz@webgis.de
Tue, 18 Nov 2003 17:11:14 +0100
Hi Bjoern,
> Or is there a way to add the shapefileObject to
>the layer? (myLayer.data = myShapefileName didn't work).
>
Well, actually that should work, but not with the shapefileobj, the
filename of you newly created shapefile is enough (you probably have to
"close" the new shapefile with shapefileObj=None before). Otherwise if
you only want to add some features to the layerobj, you can use
layerobj.addFeature, that only takes a shapeobj, so you don't need a
shapefileobj.
Cheers, Michael
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users