get_emlProjection: get_emlProjection attempts to identify the projection of a...

View source: R/get_emlProjection.R

get_emlProjectionR Documentation

get_emlProjection attempts to identify the projection of a spatial data file, and match this to the corresponding projection ID permissible by EML (deprecated)

Description

get_emlProjection attempts to identify the projection of a spatial data file, and match this to the corresponding projection ID permissible by EML.

Usage

get_emlProjection(spatialDataEntity)

Arguments

spatialDataEntity

a spatial data entity, often loaded into R with the raster (for rasters) or rgdal (for vectors) packages

Details

get_emlProjection is a helper function designed primarily to assist the creation of EML spatial data objects. The function currently is restricted to matching coordinate systems in the northern hemisphere, and will not match projections of type transverse mercator. Though intended primarily as a helper function, get_emlProjection can be run independently.

Value

if a suitable match was found, function returns an EML-compliant listing of the projection of the spatial data object

Note

get_emlProjection currently is restricted to matching coordinate systems in the northern hemisphere, and will not match projections of type transverse mercator.

Examples

## Not run: 
vectorData <- readOGR(dsn="/GISfiles/WatershedShapefile/", layer="AZwatersheds_prj")
rasterdata <- raster("CAP_1985.img")
emlCompliantProjection <- get_emlProjection(rasterdata)

## End(Not run)


CAPLTER/capemlGIS documentation built on Feb. 18, 2025, 11:58 p.m.