diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2007-11-30 20:02:31 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2007-11-30 20:02:31 +0000 |
| commit | 1107f182125bd54ae1947a086c57db992fc47738 (patch) | |
| tree | 7277a1c436d8ebba4c3c05619c5f13a1e6c12474 /src | |
| parent | c9299ffb94e1ffcc9006e169f73fd17b4739940b (diff) | |
| download | PROJ-1107f182125bd54ae1947a086c57db992fc47738.tar.gz PROJ-1107f182125bd54ae1947a086c57db992fc47738.zip | |
add latlon and lonlat aliases
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1412 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_latlong.c | 23 | ||||
| -rw-r--r-- | src/pj_list.h | 6 |
2 files changed, 25 insertions, 4 deletions
diff --git a/src/pj_latlong.c b/src/pj_latlong.c index 065412f3..3717b2b5 100644 --- a/src/pj_latlong.c +++ b/src/pj_latlong.c @@ -30,6 +30,9 @@ ****************************************************************************** * * $Log$ + * Revision 1.3 2007/11/30 20:02:31 fwarmerdam + * add latlon and lonlat aliases + * * Revision 1.2 2000/07/07 06:04:23 warmerda * added longlat alias * @@ -41,8 +44,10 @@ /* very loosely based upon DMA code by Bradford W. Drew */ #define PJ_LIB__ #include <projects.h> -PROJ_HEAD(latlong, "Lat/long (Geodetic)") "\n\t"; -PROJ_HEAD(longlat, "Lat/long (Geodetic)") "\n\t"; +PROJ_HEAD(lonlat, "Lat/long (Geodetic)") "\n\t"; +PROJ_HEAD(latlon, "Lat/long (Geodetic alias)") "\n\t"; +PROJ_HEAD(latlong, "Lat/long (Geodetic alias)") "\n\t"; +PROJ_HEAD(longlat, "Lat/long (Geodetic alias)") "\n\t"; FORWARD(forward); @@ -71,3 +76,17 @@ ENTRY0(longlat) P->y0 = 0.0; P->inv = inverse; P->fwd = forward; ENDENTRY(P) + +ENTRY0(latlon) + P->is_latlong = 1; + P->x0 = 0.0; + P->y0 = 0.0; + P->inv = inverse; P->fwd = forward; +ENDENTRY(P) + +ENTRY0(lonlat) + P->is_latlong = 1; + P->x0 = 0.0; + P->y0 = 0.0; + P->inv = inverse; P->fwd = forward; +ENDENTRY(P) diff --git a/src/pj_list.h b/src/pj_list.h index 818df6b6..7d0b7c0c 100644 --- a/src/pj_list.h +++ b/src/pj_list.h @@ -55,8 +55,10 @@ PROJ_HEAD(laea, "Lambert Azimuthal Equal Area") PROJ_HEAD(lagrng, "Lagrange") PROJ_HEAD(larr, "Larrivee") PROJ_HEAD(lask, "Laskowski") -PROJ_HEAD(latlong, "Lat/long (Geodetic)") -PROJ_HEAD(longlat, "Lat/long (Geodetic)") +PROJ_HEAD(lonlat, "Lat/long (Geodetic)") +PROJ_HEAD(latlon, "Lat/long (Geodetic alias)") +PROJ_HEAD(latlong, "Lat/long (Geodetic alias)") +PROJ_HEAD(longlat, "Lat/long (Geodetic alias)") PROJ_HEAD(lcc, "Lambert Conformal Conic") PROJ_HEAD(lcca, "Lambert Conformal Conic Alternative") PROJ_HEAD(leac, "Lambert Equal Area Conic") |
