Learn R Programming

arcgisbinding (version 1.0.1.229)

arc.fromWktToP4: 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.

Arguments

wkt

WKT projection string, or a WKID integer

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

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab