Skip to content
Prev 20088 / 29559 Next

a projection question

On Sat, 21 Dec 2013, Hodgess, Erin wrote:

            
Getting back to the real question, after a detour through checking the 
syntactic validity of strings submitted to PROJ.4, you may need to think 
of the semantic correctness of an apparently syntactically correct string. 
Even with CRS objects read from files on import (with for example readGDAL 
or readOGR), it happens that the metadata, including the projection are 
wrong or incomplete (they often miss the +datum= and +towgs84= tags). If 
the user enters a projection as a string directly, guidance may be needed 
to show how to check for semantic correctness.

A practical way to do this for vector objects is to define the projection 
given the user's best knowledge, spTransform() (perhaps a part) to 
"+proj=longlat +datum=WGS84", and export to KML with writeOGR. When the 
KML file is loaded into GE, one can see whether the projection string 
appears adequate, or whether more research (for example using 
http://www.asprs.org/Grids-Datums.html) is needed - maybe getting back to 
the data providers for authority if the discrepancy is large.

This is harder to do for grids, unless known ground control points are 
available, to be treated like vector data.

Hope this helps,

Roger
Please post plain text!