diff options
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") |
