Re: [gdal-dev] Setting the spatial reference of an existing shapefile with OGR

2009-11-12 Thread Frank Warmerdam
Jason Roberts wrote: Yes. Or... you could cheat a bit. In the case of a shapefile, the spatial reference is written in a .prj file. So technically you can create a fake empty shapefile with the right spatial reference, close it, rename the .prj to have the same basename as your shapefile of i

RE: [gdal-dev] Setting the spatial reference of an existing shapefile with OGR

2009-11-12 Thread Jason Roberts
27; Subject: Re: [gdal-dev] Setting the spatial reference of an existing shapefile with OGR Selon Jason Roberts : > Greetings OGR experts, > > > > I have a shapefile for which no spatial reference was defined when the > shapefile was created, but I know the spatial reference and

Re: [gdal-dev] Setting the spatial reference of an existing shapefile with OGR

2009-11-12 Thread Even Rouault
Selon Jason Roberts : > Greetings OGR experts, > > > > I have a shapefile for which no spatial reference was defined when the > shapefile was created, but I know the spatial reference and would like to > set it on this existing shapefile. Is this possible with the OGR Python API? > You're correct