Hi guys, I have two shapefile with same features but one miss the extent and the projection. What I want to do is copy the extent and the projection from the first and set to the second. I did something similar with two images using these step:
inputimg = gdal.Open(str(fileName), GA_ReadOnly) gdalformat= inputimg.GetDriver().ShortName geoinput = inputimg.GetGeoTransform() projinput= inputimg.GetProjection() .. outimg = gdal.Open(str(result), GA_Update) outimg.SetProjection(projinput) outimg.SetGeoTransform(geoinput) Do you know if there is something similar to this but for shapefile? Do you have any suggests? thx -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Change-the-spatial-reference-of-a-shapeile-tp6561998p6561998.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev