ENVIRasterSpatialRefRPC

This routine has been deprecated and renamed to ENVIRPCRasterSpatialRef.

This is a reference to the ENVIRasterSpatialRefRPC object. See ENVI::CreateRasterSpatialRef for details on creating this object. You can also retrieve the reference to an ENVIRasterSpatialRefRPC object associated with a raster with ENVIRaster's SPATIALREF property. If you print this object, all properties will display regardless of the spatial reference type.

If a data set has more than one type of map information (for example, a standard map projection and rational polynomial coefficients (RPCs)), the standard map projection will take precedence and determine the base projection.

Note: To achieve the highest level of accuracy when creating this object, specify values as double-precision floating point numbers.

Example

; Launch the application

e = ENVI()

 

; Define the spatial reference object data

rpcLineDenCoeff = [8.2062290D+008, 146530.90D, 2350871.0D, $

-465666.30D, 1709.5350D, -1829.8090D, -1122.8140D, -109.65130D, $

-236.17350D, -113.09640D, -1.0511430D, -0.59464460D, 0.28530330D, $

0.36169420D, -0.14511410D, 0.12011280D, -0.037436850D, -1.3185750D, $

-0.32494720D, 0.030033410D]

rpcLineNumCoeff = [1.5322480d+008, 4206503.0D, -9.9999990d+008, $

-577846.10D, -164510.60D, -492.93490D, 657289.40D, -558932.00D, $

-2868272.0D, 303.33970D, 2065.4790D, -97.933320D, -2082.4690D, $

28.393320D, -1707.6330D, 281.19970D, 76.317960D, -2031.7740D, $

1607.2070D, -0.048244400D]

rpcOffsets = [2536.0000D, 3003.0000D, 32.833100D, -117.23340D, 33.000000D]

rpcSampDenCoeff = [5.1351520d+008, 91693.590D, 1471087.0D, -291396.60D, $

1069.7630D, -1145.0260D, -702.61510D, -68.615710D, -147.78860D, $

-70.771530D, -0.65776600D, -0.37210640D, 0.17853220D, 0.22633480D, $

-0.090807010D, 0.075162100D, -0.023426580D, -0.82511530D, $

-0.20333980D, 0.018793790D]

rpcSampNumCoeff = [2.8127720d+008, 9.9999990d+008, 1970968.0D, $

-6127672.0D, 2552674.0D, -211183.60D, -70378.780D, 177598.70D, $

3700.5000D, 1395.2010D, -263.22950D, -51.521790D, -1299.7060D, $

-214.88460D, 2026.6580D, 0.93249080D, 19.797070D, -1993.1030D, $

-141.81680D, 1.3218580D]

rpcScales = [2537.0000D, 3004.0000D, 0.027900000D, 0.062500000D, 220.00000D]

 

; Create a custom spatial reference object

spatialRef1 = e.CreateRasterSpatialRef('rpc', $

RPC_LINE_DEN_COEFF = rpcLineDenCoeff, $

RPC_LINE_NUM_COEFF = rpcLineNumCoeff, RPC_OFFSETS = rpcOffsets, $

RPC_SAMP_DEN_COEFF = rpcSampDenCoeff, $

RPC_SAMP_NUM_COEFF = rpcSampNumCoeff, RPC_SCALES = rpcScales)

 

; Open a file but override its spatial reference information

file = FILEPATH('qb_boulder_msi', ROOT_DIR=e.ROOT_DIR, $

SUBDIRECTORY = ['data'])

raster = e.OpenRaster(file, SPATIALREF_OVERRIDE=spatialRef1)

 

; Retrieve and print the spatial reference

spatialRef = raster.SPATIALREF

PRINT, spatialRef

Methods

None

Properties

Properties marked as (Get) can be retrieved, but not set.

COORD_SYS_CODE (Get)

Use this property to get a geographic (GEOGCS) or projected (PROJCS) coordinate system code.

For a full list of coordinate system strings and codes, refer to the following text files in the \IDLxx\resource\pedata\predefined directory of the ENVI distribution:

COORD_SYS_STR (Get)

Use this property to get a geographic (GEOGCS) or projected (PROJCS) coordinate system string.

For a full list of coordinate system strings and codes, refer to the following text files in the \IDLxx\resource\pedata\predefined directory of the ENVI distribution:

RPC_LINE_DEN_COEFF (Get)

A 20-element, double-precision array of RPC line denominator coefficients.

RPC_LINE_NUM_COEFF (Get)

A 20-element, double-precision array of RPC line numerator coefficients.

RPC_OFFSETS (Get)

A five-element, double-precision array that specifies the Line_Offset, Sample_Offset, Latitude_Offset, Longitude_Offset, and Height_Offset values.

RPC_SAMP_DEN_COEFF (Get)

A 20-element, double-precision array of RPC sample denominator coefficients.

RPC_SAMP_NUM_COEFF (Get)

A 20-element, double-precision array of RPC sample numerator coefficients.

RPC_SCALES (Get)

A five-element, double-precision array that specifies the Line_Scale, Sample_Scale, Latitude_Scale, Longitude_Scale, and Height_Scale.

Version History

ENVI 5

Introduced

ENVI 5.1

Deprecated