[gdal-dev] problem assigning EPSG:27700
Even Rouault
even.rouault at spatialys.com
Wed Aug 5 06:04:12 PDT 2015
On Wednesday 05 August 2015 12:24:06 Darrel Maddy wrote:
> Apologies if this is not the right place to ask this.
>
> I use gdal to read and write datafiles for my landscape evolution model. I
> have been trying to get the output rasters to include the appropriate
> spatial referencing, in this case the OS National Grid (EPSG 27700). I
> used the guidance in the raster api tutorial and my code has the following
> line:
>
> OSRSetWellKnownGeogCS( hSRS, "EPSG:27700" );
Darrel,
use OSRImportFromEPSG(hSRS, 27700) instead
Even
>
> Alas this is clearly not recognised as nothing is written in the header i.e.
> using gdalinfo I just get Coordinate System is ' ' . If I substitute
> EPSG:4227 then the information appears - but is, of course in the wrong
> place!
>
> If I use gdalsrsinfo EPSG:27700 I get the correct information.
>
> I am clearly doing something wrong and would appreciate any suggestion.
>
> Many thanks
>
> Darrel
>
> Prof Darrel Maddy
> Chair of Quaternary Science
> Newcastle University
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list