This task converts map (northings/eastings) coordinates to geographic (latitude/longitude) coordinates.
Example
e = ENVI(/HEADLESS)
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('ConvertMapToGeographicCoordinates')
Task.INPUT_COORDINATE = [482399.0584,4427505.0643]
Task.SPATIAL_REFERENCE = Raster.SPATIALREF
Task.Execute
Print, Task.OUTPUT_COORDINATE
Result:
-105.20619 39.997544
Syntax
Result = ENVITask('ConvertMapToGeographicCoordinates')
Input parameters (Set, Get): INPUT_COORDINATE, SPATIAL_REFERENCE
Output parameters (Get only): OUTPUT_COORDINATE
Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.
Input Parameters
INPUT_COORDINATE (required)
Specify an array of map coordinates in [x,y] format.
SPATIAL_REFERENCE (required)
Specify an ENVIStandardRasterSpatialRef object indicating the spatial reference of the input coordinates.
Output Parameters
OUTPUT_COORDINATE
An array of geographic coordinates in [longitude, latitude] format.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
See Also
ENVITask, ENVISubsetRaster, ENVICoordSys::ConvertMapToLonLat, ENVIStandardRasterSpatialRef::ConvertMapToLonLat, ENVIRPCRasterSpatialRef::ConvertMapToLonLat, ENVIPseudoRasterSpatialRef::ConvertMapToLonLat