[gdal-dev] Adding Datums to GDAL
Frank Warmerdam
warmerdam at pobox.com
Fri Jan 18 14:55:25 EST 2008
Pascoe, S (Stephen) wrote:
> OK I was showing my naivety with thinking GDAL didn't have EPSG:27700
> pre-configured. Please ignore the the first half of my query. However,
> having reinstalled Proj4 (4.6.0) and gdal-1.5.0, I still have the same
> problem:
>
> $ gdalwarp -t_srs EPSG:27700 -te -100000 -100000 600000 600000 -ts 400
> 400 map.tif trans.tif
> ERROR 6: Failed to initialize PROJ.4 with `+proj=tmerc +lat_0=49
> +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy
> +datum=OSB36 +units=m +no_defs '.
Stephen,
I see the OGRSpatialReference:exportToProj4() method has a bug and is
translating this as datum=OSB36 instead of datum=OSGB36 as it ought. I
have filed a bug and will fix it shortly in trunk and 1.5 branches.
http://trac.osgeo.org/gdal/ticket/2160
Briefly though, just edit gdal/ogr/ogr_srs_proj4.cpp and change OSB36
to OSGB36 to fix the problem.
Thanks for bringing this to my attention.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the gdal-dev
mailing list