Differences
This shows you the differences between two versions of the page.
docs:gis:projections:proj4 [2007/04/27 23:49] – created billh | docs:gis:projections:proj4 [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Proj.4 Projection Library ====== | ||
+ | |||
+ | ===== List Available Projections ===== | ||
+ | * proj -l | ||
+ | |||
+ | ===== Example Projection (Mapserver) ===== | ||
+ | < | ||
+ | PROJECTION | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | END | ||
+ | </ | ||
+ | * proj=aea | ||
+ | * name of projection to use - aea is an abbreviation for Albers Equal Area | ||
+ | * ellps=WGS84 | ||
+ | * name of ellipsoid (some functions will require an ellipsoid, and some will not) | ||
+ | * lat_0=10 | ||
+ | * specifies the latitude of origin as 10 degrees north; the default is 0 degrees if not specified | ||
+ | * lon_0=-90 | ||
+ | * specifies the central meridian as -90 degrees (90 degrees West); the default is 0 degrees if not specified | ||
+ | |||
+ | ===== EPSG Codes ===== | ||
+ | You may wish to use EPSG codes (short number sequences) to identify common projections instead of constantly typing out all of the projection parameters. | ||
+ | |||
+ | ==== Examples ==== | ||
+ | < | ||
+ | # NAD83(HARN) / Arizona Central (ft) | ||
+ | < | ||
+ | |||
+ | # NAD83(HARN) / Texas Centric Albers Equal Area | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ==== Using EPSG Codes in MapServer ==== | ||
+ | < | ||
+ | PROJECTION | ||
+ | " | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | ==== Custom EPSG Codes ==== | ||
+ | Many custom codes are also available. | ||
+ | |||
+ | ==== Capitalization Issues ==== | ||
+ | When using EPSG codes in MapServer PROJECTION objects, the text epsg should be lowercase. | ||
+ | " | ||
+ | </ | ||
+ | |||