Hy everybody,<br>I work with python mapscript and i want to create a Line shape.<br>I do this :<br> test = mapscript.shapefileObj('test',mapscript.MS_SHAPEFILE_ARC)<br> for i in range(len(x))<br> test.addPoint(mapscript.pointObj(x[i],y[i],0,0))<br>
<br>When i execute the script, there is two new file in the script directory (test.shp and test.shx).<br>But when i do an ogrinfo, there's no data stored in the file :<br> $ogrinfo -al test.shp<br> INFO: Open of `test.shp'<br>
using driver `ESRI Shapefile' successful.<br> <br> Layer name: test<br> Geometry: Line String<br> Feature Count: 0<br> Extent: (0.000000, 0.000000) - (0.000000, 0.000000)<br> Layer SRS WKT:<br> (unknown)<br>
<br>can you help me please?<br>