Skip to Content

ajout et suppression d'éléments

# ajout de points
e = shapefile.Editor(shapefile="mespoints.shp")
e.point(0,0,10,2)
e.record("Appended","mespoints")
e.save('mespoints')
 
supression du premier objet d'un shapefile
e = shapefile.Editor(shapefile="meslignes")
e.delete(0)
e.save('meslignes')