From 527dc18a81bd26f20483aea8f95aa00fb40836ec Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 30 Mar 2007 23:00:42 +0000 Subject: Added note on virtual earth, and null shifts to WGS84. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1395 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- html/faq.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 7 deletions(-) (limited to 'html') diff --git a/html/faq.html b/html/faq.html index 19d64601..38f6fa3d 100644 --- a/html/faq.html +++ b/html/faq.html @@ -7,7 +7,7 @@ -

Where can I find the list of projections and their arguments?

+

Where can I find the list of projections and their arguments?

There is no simple single location to find all the required information. The PostScript/PDF documents listed on the main PROJ.4 @@ -27,7 +27,7 @@ a definition of the projection specific options for each.

-

How do I do datum shifts between NAD27 and NAD83?

+

How do I do datum shifts between NAD27 and NAD83?

While the nad2nad program can be used in some cases, the cs2cs is now the preferred mechanism. The following example demonstrates using @@ -52,7 +52,7 @@ must be available. See below. More details are available in the -

How do I build/configure PROJ.4 to support datum shifting.

+

How do I build/configure PROJ.4 to support datum shifting.

After downloading and unpacking the PROJ.4 source, also download and unpack the set of datum shift files. This would be a file like @@ -76,7 +76,7 @@ environment can be defined with the correct directory.

-

How do I debug problems with NAD27/NAD83 datum shifting?

+

How do I debug problems with NAD27/NAD83 datum shifting?

  1. Verify that you have the binary files (eg. /usr/local/share/proj/conus) @@ -113,7 +113,7 @@ include expanding the definition of +datum clause.

    -

    How do I use EPSG coordinate system codes with PROJ.4?

    +

    How do I use EPSG coordinate system codes with PROJ.4?

    There is somewhat imperfect translation between 2d geographic and projected coordinate system codes and PROJ.4 descriptions of the @@ -144,7 +144,7 @@ meridian or other quirkyness are unlikely to work properly. Caveat Emptor!

    -

    How do I use 3 parameter and 7 parameter datum shifting

    +

    How do I use 3 parameter and 7 parameter datum shifting

    Datum shifts can be approximated with 3 and 7 parameter transformations. Their use is more fully described in the @@ -153,7 +153,7 @@ Their use is more fully described in the -

    Does PROJ.4 work in different international numeric locales?

    +

    Does PROJ.4 work in different international numeric locales?

    No. PROJ.4 makes extensive use of sprintf() and atof() internally to translate numeric values. If a locale is in effect that modifies formatting of @@ -172,6 +172,52 @@ $ proj ... +

    Changing Ellipsoid / Why can't I convert from WGS84 to Virtual Earth Mercator?

    + +The coordinate system definition for Virtual Earth Mercator is as follows, +which uses a sphere as the earth model for the mercator projection. + +
    ++proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
    +     +x_0=0.0 +y_0=0 +k=1.0 +units=m +no_defs
    +
    + +But, if you do something like: + +
    +cs2cs +proj=latlong +datum=WGS84 
    +    +to +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
    +                   +x_0=0.0 +y_0=0 +k=1.0 +units=m +no_defs
    +
    + +to convert between WGS84 and mercator on the sphere there will be substantial +shifts in the Y mercator coordinates. This is because internally cs2cs is +having to adjust the lat/long coordinates from being on the sphere to being +on the WGS84 datum which has a quite differently shaped ellipsoid.

    + +In this case, and many other cases using spherical projections, the desired +approach is to actually treat the lat/long locations on the sphere as if +they were on WGS84 without any adjustments when using them for converting +to other coordinate systems. The solution is to "trick" PROJ.4 into applying +no change to the lat/long values when going to (and through) WGS84. This +can be accomplished by asking PROJ to use a null grid shift file +for switching from your spherical lat/long coordinates to WGS84.

    + +

    +cs2cs +proj=latlong +datum=WGS84 
    +    +to +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
    +                   +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
    +
    + +Note the strategic addition of +nadgrids=@null to the spherical +projection definition.

    + +Similar issues apply with many other datasets distributed with projections +based on a spherical earth model - such as many NASA datasets, and also +(I think) the Google Maps mercator projection.

    + + +


    Requests to add items to the frequently asked questions list -- cgit v1.2.3