Re: [gdal-dev] Change the spatial reference of a shapeile

2011-07-08 Thread Chaitanya kumar CH
Solimyr, For shapefiles just copying and renaming the .prj file might be enough. Extents can be computed and stored using the ogr2ogr utility. If copying the .prj file didn't work, you can use the -s_srs option in the ogr2ogr utility. You can get the SRS WKT from the ogrinfo output. Of course, y

[gdal-dev] Change the spatial reference of a shapeile

2011-07-08 Thread Solimyr
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) gd