The esri_coordsys_remove function removes the existing coordinate system definition from the current drawing.
Syntax
(esri_coordsys_remove)
Arguments
None.
Example usage
Attempt to remove the existing coordinate system.
(esri_coordsys_remove)
Result example usage
The existing Esri coordinate system definition is removed and the function returns a list that contains true (T).
(T)Return values
The following are the possible return values:
- If successful, the function returns a list containing true (T).
- If failed, it returns a list with the first value of nil; then, an associated list is returned containing the key value "Error" and an associated error message as a string: (nil ("Error" . "<message>")).
Failed return values
A failed return value can occur for any of the following reasons:
- ("Error". "No coordinate system assigned."))
No coordinate system was assigned.
- ("Error". "Cannot remove current coordinate system."))
The coordinate system cannot be removed; a web feature layer is present in the drawing.