Skip to content
Prev 2898 / 29559 Next

spTransform: datum syntax?

On Fri, 7 Dec 2007, Agustin Lobo wrote:

            
Well, that is why I suggested looking at the excellent Grids & Datums 
columns. Their author is a highly experienced cartographer and surveyor, 
and each column (monthly for many years) demonstrates that the only common 
factor in coordinate reference systems is surprise.

Briefly, your original states that the datum is ED50. However, ED50 only 
is a framework that differs not only from country to country, but often 
also within countries. It is only from WGS84 that surveyors have had 
access to a satellite measurement based "global standard" to link the 
"local standards" to.

Consequently EPSG and PROJ.4 do not "assume" a single ED50, which may be 
correct in some places but not in others - the datums used are those that 
are "know" to be invariant.
PROJCS["ED_1950_UTM_Zone_31N",GEOGCS["GCS_European_1950",
DATUM["D_European_1950",SPHEROID["International_1924",6378388.0,297.0]],
PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",3.0],
PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Meter",1.0]]

If you can identify the EPSG code number for your specific zone 31 
setting, you can get maybe to the +towgs84= argument. Since the datum is 
not known precisely, you have to provide a conversion to WGS84, with 
either a table look-up (North America NAD27->NAD83), or three or seven 
parameter sets defining the datum shift.

The July 2000 G&D is for the Kingdom of Spain, and its last paragraph 
gives an approximate three parameter conversion from ED50 to WGS84. If you 
are willing to get into fiction, "La carta esf?rica" ("The Nautical Chart" 
I believe) by Arturo P?rez-Reverte or translations may amuse.

The string you need to convert to may be:

CRS("+proj=utm +zone=31 +ellps=intl +towgs84=-84,-107,-120,0,0,0,0")

or with your data source:
CRS("+proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0")

but I'd likely trust G&D here unless ground truth (a known point in both 
reference systems) said otherwise. If my signs or values are wrong, 
someone else will get to the treasure first.

Roger
PS: these are exactly equivalent, utm is a tmerc with specified central 
longitude.