arc.fromP4ToWkt: Convert PROJ.4 Coordinate Reference System string to...

arc.fromP4ToWktR Documentation

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

Description

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.

Usage

  arc.fromP4ToWkt(proj4)

Arguments

proj4

PROJ.4 projection string

Details

The produced WKT is equivalent to the ArcPy spatial reference exported string:

arcpy.Describe(layer).SpatialReference.exportToString()

Value

return WKT string

References

  1. OGC specification 12-063r5

  2. ArcGIS Help: What are map projections?

Note

The '+init' method currently only works with ArcGIS Pro.

See Also

arc.fromWktToP4

Examples


arc.fromP4ToWkt("+proj=eqc") # Equirectangular

arc.fromP4ToWkt("+proj=latlong +datum=wgs84") # WGS 1984 geographic

arc.fromP4ToWkt("+init=epsg:2806") # initalize based on EPSG code

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