[Spanish] Unir shapefiles
Iván Sánchez Ortega
ivan at sanchezortega.es
Fri Jun 4 04:43:30 EDT 2010
El 04/06/2010 10:04, Iván Sánchez Ortega escribió:
> #!/usr/bin/python
> from osgeo import ogr
> import glob
> driver = ogr.GetDriverByName('ESRI Shapefile')
> writer = driver.Open('destino.shp',1)
> writerlayer=writer.GetLayer(0)
Y aquí es donde también abría que inicializar la definición de la capa,
copiándola de algún shp ya existente, a golpe de
writer.CreayeLayer(readerlayer) o algo así.
(Es lo que tiene escribir las cosas primero y pensarlas después)
:-)
--
Iván Sánchez Ortega <ivan en sanchezortega.es>
More information about the Spanish
mailing list