Re: [gdal-dev] Assigning SpatialReference to OGRLayer

2010-08-23 Thread Even Rouault
You cannot do that. The layer can set the spatial reference when building its definition, but the user cannot change that. You could achieve this by wrapping your layer into a OGR VRT though. See http://gdal.org/ogr/drv_vrt.html But for shapefiles, the easier will be to write a .prj file. You c

[gdal-dev] Assigning SpatialReference to OGRLayer

2010-08-23 Thread Anders Moe
Hi everyone I was wondering how I should assign a spatial reference to my OGRLayer. virtual OGRSpatialReference * OGRLayer::GetSpatialRef () There seems to be