arc.fromP4ToWkt | R Documentation |
The arc.fromP4ToWkt
command converts a PROJ.4 coordinate
reference system (CRS) string to a well-known text (WKT) representation.
Well-known text is used by ArcGIS and other applications to robustly
describe a coordinate reference system. Converts PROJ.4 stings which
include either the '+proj' fully specified projection parameter, or the
'+init' form that takes well-known IDs (WKIDs), such as EPSG codes,
as input.
arc.fromP4ToWkt(proj4)
proj4 |
PROJ.4 projection string |
The produced WKT is equivalent to the ArcPy spatial reference exported string:
arcpy.Describe(layer).SpatialReference.exportToString()
return WKT string
OGC specification 12-063r5
The '+init' method currently only works with ArcGIS Pro.
arc.fromWktToP4
arc.fromP4ToWkt("+proj=eqc") # Equirectangular
arc.fromP4ToWkt("+proj=latlong +datum=wgs84") # WGS 1984 geographic
arc.fromP4ToWkt("+init=epsg:2806") # initalize based on EPSG code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.