arc.fromWktToP4: Convert a Well-known Text Coordinate Reference System into a...

arc.fromWktToP4R Documentation

Convert a Well-known Text Coordinate Reference System into a PROJ.4 string.

Description

Convert a well-known text (WKT) coordinate reference system (CRS) string to a PROJ.4 representation. PROJ.4 strings were created as a convenient way to pass CRS information to the command-line PROJ.4 utilities, and have an expressive format. Alternatively, can accept a well-known ID (WKID), a numeric value that ArcGIS uses to specify projections. See the 'Using spatial references' resource for lookup tables which map between WKIDs and given projection names.

Usage

  arc.fromWktToP4(wkt)

Arguments

wkt

WKT projection string, or a WKID integer

Value

return PROJ.4 string

References

  1. ArcGIS REST API: Using spatial references

  2. OGC specification 12-063r5

  3. ArcGIS Help: What are map projections?

See Also

arc.fromP4ToWkt

Examples


d <- arc.open(system.file("extdata", "ca_ozone_pts.shp", package="arcgisbinding"))
arc.fromWktToP4(arc.shapeinfo(d)$WKT)

arc.fromWktToP4(4326) # use a WKID for WGS 1984, a widely
                      # used standard for geographic coordinates

R-ArcGIS/r-bridge documentation built on May 3, 2024, 9:47 a.m.