Learn R Programming

GEOmap (version 2.1)

setPROJ: Set Projection

Description

Setup parameters for Map Projection

Usage

setPROJ(type = 1, LAT0 = 0, LON0 = 0, LAT1 = 0, LAT2 = 0, LATS = NULL, LONS = NULL, DLAT = NULL, DLON = NULL, FE = 0, FN = 0)

Arguments

type
Type of projection
LAT0
Central Latitude
LON0
Central Longitude
LAT1
Latitude parameter for special projection, where needed
LAT2
Latitude parameter for special projection, where needed
LATS
vector of range of Latitudes
LONS
vector of range of Longitudes
DLAT
difference of Lats
DLON
difference of Lons
FE
False Easting
FN
False Northing

Value

  • List of values described above

Details

Set up for the various projections used by GEOmap

References

Snyder, John P., Map Projections- a working manual, USGS, Professional Paper, 1987.

See Also

projtype, XY.GLOB, GLOB.XY

Examples

Run this code
######  type
projtype()
######  type = mercator spherical
setPROJ(type = 1, LAT0 =23, LON0 = 35)

### Hengill Map: lambert.cc
setPROJ(type=3, LAT0=65, LON0=360-19 ,LAT1=64+15/60,  LAT2=65+45/60,LATS=, LONS=NULL, DLAT=NULL, DLON=NULL,FE=500000,FN=500000)

### old lees/crosson projection
setPROJ(type=99, LAT0=23, LON0=35, LATS=NULL, LONS=NULL, DLAT=NULL,
DLON=NULL, FN =0)

###  world map equid.cyl
setPROJ(6, LAT0=0, LON0=0)

##  North Carolina Map lambert.cc
setPROJ(type=3, LAT0=36+20/60, LON0=78+30/60,LAT1=36+46/60,
LAT2=37+58/60, LATS=NULL, LONS=NULL, DLAT=NULL, DLON=NULL,FE=0,FN=0)

###  No Projection
setPROJ(type = 0, LAT0 =23, LON0 = 35)

Run the code above in your browser using DataLab