arc.fromWktToP4 | R Documentation |
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.
arc.fromWktToP4(wkt)
wkt |
WKT projection string, or a WKID integer |
return PROJ.4 string
OGC specification 12-063r5
arc.fromP4ToWkt
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.