Synthèse
Converts a coordinate system notation string to a PointGeometry object in WGS84 coordinates.
Discussion
To create a coordinate system notation string, use the PointGeometry object's toCoordString method.
Syntaxe
FromCoordString (string, notation)
Paramètre | Explication | Type de données |
string | The input coordinates. | String |
notation | The coordinate system notation of the input string.
| String |
Type de données | Explication |
PointGeometry | A PointGeometry object with a coordinate system of WGS84 (wkid=4326). |
Exemple de code
Create a PointGeometry object from a United States National Grid string.
import arcpy
coord_string = '14S PB 59361 43195'
point_geometry = arcpy.FromCoordString(coord_string, 'USNG')
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?