MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
MapLink CADRG Exporter API

Detailed Description

Classes

class  TSLCADRGExporter
 
class  TSLCADRGProductData
 
class  TSLHarrisImageExporter
 
class  TSLRDTEDExporter
 
class  TSLRPFExporter
 

Typedefs

typedef bool(* TSLRDTEDDataCallback) (const TSLGeodeticExtent *extent, const int pixelsX, const int pixelsY, const bool northernHemisphere, short *data, const int frame, const int numFrames, void *callbackData)
 
typedef void(* TSLRPFProgressCallback) (const char *message1, const double percent1, const char *message2, const double percent2, const char *message3, const double percent3, void *callbackData)
 

Enumerations

enum  TSLCADRGProductEnum {
  TSLCADRGProductCADRG = 0 , TSLCADRGProductCIB = 1 , TSLCADRGProductCIB_PRF_89041 = 2 , TSLCADRGProductCIB_C_89041A = 3 ,
  TSLCADRGProductCIB_PRF_89041A = 4 , TSLCADRGProductCADRG_PRF_89038 = 5
}
 
enum  TSLCADRGScaleEnum {
  TSLCADRGScale_1_IN_9M = 44 , TSLCADRGScale_1_IN_5M = 0 , TSLCADRGScale_1_IN_2M = 1 , TSLCADRGScale_1_IN_1M = 2 ,
  TSLCADRGScale_1_IN_500K = 3 , TSLCADRGScale_1_IN_250K = 4 , TSLCADRGScale_1_IN_100K = 5 , TSLCADRGScale_1_IN_50K = 6 ,
  TSLCADRGScale_1_IN_12pt5K = 7 , TSLCADRGScale_1_IN_200K = 12 , TSLCADRGScale_1_IN_125K = 13 , TSLCADRGScale_1_IN_25K = 14 ,
  TSLCADRGScale_1_IN_24K = 15 , TSLCADRGScale_1_IN_10K = 16 , TSLCADRGScale_1_IN_10560 = 17 , TSLCADRGScale_1_IN_11000 = 18 ,
  TSLCADRGScale_1_IN_11800 = 19 , TSLCADRGScale_1_IN_12000 = 20 , TSLCADRGScale_1_IN_12800 = 21 , TSLCADRGScale_1_IN_14000 = 22 ,
  TSLCADRGScale_1_IN_14700 = 23 , TSLCADRGScale_1_IN_15000 = 24 , TSLCADRGScale_1_IN_15500 = 25 , TSLCADRGScale_1_IN_16000 = 26 ,
  TSLCADRGScale_1_IN_16666 = 27 , TSLCADRGScale_1_IN_17000 = 28 , TSLCADRGScale_1_IN_17500 = 29 , TSLCADRGScale_1_IN_18000 = 30 ,
  TSLCADRGScale_1_IN_20000 = 31 , TSLCADRGScale_1_IN_21000 = 32 , TSLCADRGScale_1_IN_21120 = 33 , TSLCADRGScale_1_IN_22000 = 34 ,
  TSLCADRGScale_1_IN_23000 = 35 , TSLCADRGScale_1_IN_25000 = 36 , TSLCADRGScale_1_IN_26000 = 37 , TSLCADRGScale_1_IN_35000 = 38 ,
  TSLCADRGScale_1_IN_36000 = 39 , TSLCADRGScale_0pt5M = 42 , TSLCADRGScale_1M = 41 , TSLCADRGScale_2M = 40 ,
  TSLCADRGScale_5M = 9 , TSLCADRGScale_10M = 8 , TSLCADRGScale_37pt5M = 43 , TSLCADRGScale_150M = 11 ,
  TSLCADRGScale_750M = 10 , TSLCADRGScaleUnknown = -1
}
 

Class Documentation

◆ TSLCADRGProductData

class TSLCADRGProductData

Contains information on the number of Frames that will be generated and the estimated time for generation.

Class Members
int m_bytesOfData

Data Members for Class Attributes Number of bytes that this product will produce.

int m_estimatedTime

Estimated time to generate this data (minutes)

int m_maxTime

Estimated maximum time to generate

int m_minTime

Estimated minimum time to generate

int m_numOfFrames

Number of frames that will be produced.

int m_sizeOfFrame

Size in bytes of a single frame

Typedef Documentation

◆ TSLRDTEDDataCallback

typedef bool(* TSLRDTEDDataCallback) (const TSLGeodeticExtent *extent, const int pixelsX, const int pixelsY, const bool northernHemisphere, short *data, const int frame, const int numFrames, void *callbackData)

Function callback typedef.

This callback is used in conjunction with the TSLRDTEDExporter to request data for a particular frame file during an export.

Parameters
extentThe extent of the frame file being processed for which data is required
pixelsXThe number of data points in the X axis required
pixelsYThe number of data points in the Y axis required.
northernHemisphereTrue if the current frame file being processed is in the northern hemisphere, false if it is in the southern hemisphere.
dataAn array that should be populated with the data for the current frame file being processed. This array is pixelsX * pixelsY * sizeof( short ) bytes in size. The first element of the array corresponds to the top left corner of the frame file.
frameThe index of the current frame file being processed.
numFramesThe total number of frame files being processed as part of this export.
callbackDataThis will be the value passed as the callbackData argument to the TSLRDTEDExporter::export function.

Return true from this function to continue processing subsequent frame files, or false to cancel the export.

◆ TSLRPFProgressCallback

typedef void(* TSLRPFProgressCallback) (const char *message1, const double percent1, const char *message2, const double percent2, const char *message3, const double percent3, void *callbackData)

Callback function typedef.

Used to provide an indication of progress to the user of any TSLRPFExporter derived class.

Parameters
message1Takes the form "%display: %frame of %numFrames" or NULL, where
  • "%display" is the string "Frame" or "File".
  • "%frame" and "%numFrames" are numbers.
percent1is the percentage completion of message1.
message2Takes the form "%sectionName: %section of %numSections" or NULL, where
  • "%sectionName" is one of the strings "Colour Analysis", "Colour Reduction", "Frame Analysis", "Export Frames".
  • "%section" and "%numSections" are numbers.
percent2is the percentage completion of message2.
message3Takes the form "Zone: %zone of %numZones" or NULL, where
  • "%zone" and "%numZones" are numbers.
percent3is the percentage completion of message3.
callbackDatathe data that the user passed in to setCallback.

Enumeration Type Documentation

◆ TSLCADRGProductEnum

Enumeration which defines the RPF product to generate.

The enum's will set the Governing Specification string in the output files to the particular specification as defined below.

It is advised to use the newer specifcations rather then the older ones. However it may also depend on what will be reading the CADRG/CIB data. The actual output data will not be different except the string identifying the specification.

Old Specifications:

  • TSLCADRGProductCADRG : CADRG Product MIL-C-89038 (old)
  • TSLCADRGProductCIB : CIB Product MIL-C-89041 (old)
  • TSLCADRGProductCIB_PRF_89041 : CIB Product MIL-PRF-89041 (old)
  • TSLCADRGProductCIB_C_89041A : CIB Product MIL-C-89041A (old)

New Specifications:

  • TSLCADRGProductCIB_PRF_89041A : CIB Product MIL-PRF-89041A
  • TSLCADRGProductCADRG_PRF_89038 : CADRG Product MIL-PRF-89038
Enumerator
TSLCADRGProductCADRG 

(old) CADRG Product MIL-C-89038

TSLCADRGProductCIB 

(old) CIB Product MIL-C-89041

TSLCADRGProductCIB_PRF_89041 

(old) CIB Product MIL-PRF-89041

TSLCADRGProductCIB_C_89041A 

(old) CIB Product MIL-C-89041A

TSLCADRGProductCIB_PRF_89041A 

CIB Product MIL-PRF-89041A.

TSLCADRGProductCADRG_PRF_89038 

CADRG Product MIL-PRF-89038.

◆ TSLCADRGScaleEnum

Permitted output Scales for RPF Products.

Scales can be used by all RPF products.

Non Standard Scales

The 1:9M scale is non-standard and the Table for this scale is as follows:

The Columns are the same as the tables defined in MIL-C-89038 for some of the other scales.

Scale 1:9000000
N-S Pixel Constant 7424.000000
N-S Pixel Size 1348.650000 (m)

1,A   12     2  0.0000000 37.2413793
2,B   12     2 18.6206897 55.8620690
3,C   12     2 37.2413793 74.4827586
4,D    6     1 55.8620690 74.4827586  *
5,E    6     1 55.8620690 74.4827586  *
6,F    6     1 55.8620690 74.4827586  *
7,G   12     2 55.8620690 93.1034483
8,H    6     1 74.4827586 93.1034483  *


1,A  108    18      27648 1348.65 (m)
2,B   88    15      22528 1348.65 (m)
3,C   72    12      18432 1350.00 (m)
4,D   59    10      15104 1341.03 (m)  *
5,E   48     8      12288 1345.95 (m)  *
6,F   40     7      10240 1345.95 (m)  *
7,G   32     6       8192 1347.30 (m)
8,H   24     4       6144 1350.00 (m)  *

Notes:

  • The zones denoted by * are not generated as they are redundent.
  • Zones 8 and H exceed the world extents.
  • Zones 1 and A exceed the logitudinal extent at the date line.
  • The data is correctly read by MapLink. However other systems may not be so forgiving.

Permitted Scales

Series code Scale enum Comment
GA TSLCADRGScale_1_IN_9M CADRG Scale 1:9,000,000 (Non Standard Series Code)
GN TSLCADRGScale_1_IN_5M CADRG Scale 1:5,000,000
JN TSLCADRGScale_1_IN_2M
OH TSLCADRGScale_1_IN_1M
TP TSLCADRGScale_1_IN_500K CADRG Scale 1:500,000
JG TSLCADRGScale_1_IN_250K
AT TSLCADRGScale_1_IN_200K
VH TSLCADRGScale_1_IN_125K
TC TSLCADRGScale_1_IN_100K
RV TSLCADRGScale_1_IN_50K
TT TSLCADRGScale_1_IN_25K
TQ TSLCADRGScale_1_IN_24K
C1 TSLCADRGScale_1_IN_10K
C2 TSLCADRGScale_1_IN_10560
C3 TSLCADRGScale_1_IN_11000
C4 TSLCADRGScale_1_IN_11800
C5 TSLCADRGScale_1_IN_12000
C6 TSLCADRGScale_1_IN_12pt5K
C7 TSLCADRGScale_1_IN_12800
C8 TSLCADRGScale_1_IN_14000
C9 TSLCADRGScale_1_IN_14700
CA TSLCADRGScale_1_IN_15000
CB TSLCADRGScale_1_IN_15500
CC TSLCADRGScale_1_IN_16000
CD TSLCADRGScale_1_IN_16666
CE TSLCADRGScale_1_IN_17000
CF TSLCADRGScale_1_IN_17500
CH TSLCADRGScale_1_IN_18000
CJ TSLCADRGScale_1_IN_20000
CK TSLCADRGScale_1_IN_21000
CL TSLCADRGScale_1_IN_21120
CN TSLCADRGScale_1_IN_22000
CP TSLCADRGScale_1_IN_23000
CQ TSLCADRGScale_1_IN_25000
CR TSLCADRGScale_1_IN_26000
CS TSLCADRGScale_1_IN_35000
CT TSLCADRGScale_1_IN_36000
I4 TSLCADRGScale_0pt5M CIB 0.5 meter
I4 TSLCADRGScale_1M CIB 1 meter
I3 TSLCADRGScale_2M CIB 2 meter
I2 TSLCADRGScale_5M CIB 5 meter
I1 TSLCADRGScale_10M CIB 10 meter
R2 TSLCADRGScale_37pt5M RDTED 1:250,000
R3 TSLCADRGScale_150M RDTED 1:1M
R5 TSLCADRGScale_750M RDTED 1:5M
Enumerator
TSLCADRGScale_1_IN_9M 

CADRG Scale 1:9,000,000 - non standard series code.

TSLCADRGScale_1_IN_5M 

CADRG Scale 1:5,000,000.

TSLCADRGScale_1_IN_2M 
TSLCADRGScale_1_IN_1M 
TSLCADRGScale_1_IN_500K 

CADRG Scale 1:500,000.

TSLCADRGScale_1_IN_250K 
TSLCADRGScale_1_IN_100K 
TSLCADRGScale_1_IN_50K 
TSLCADRGScale_1_IN_12pt5K 
TSLCADRGScale_1_IN_200K 
TSLCADRGScale_1_IN_125K 
TSLCADRGScale_1_IN_25K 
TSLCADRGScale_1_IN_24K 
TSLCADRGScale_1_IN_10K 
TSLCADRGScale_1_IN_10560 
TSLCADRGScale_1_IN_11000 
TSLCADRGScale_1_IN_11800 
TSLCADRGScale_1_IN_12000 
TSLCADRGScale_1_IN_12800 
TSLCADRGScale_1_IN_14000 
TSLCADRGScale_1_IN_14700 
TSLCADRGScale_1_IN_15000 
TSLCADRGScale_1_IN_15500 
TSLCADRGScale_1_IN_16000 
TSLCADRGScale_1_IN_16666 
TSLCADRGScale_1_IN_17000 
TSLCADRGScale_1_IN_17500 
TSLCADRGScale_1_IN_18000 
TSLCADRGScale_1_IN_20000 
TSLCADRGScale_1_IN_21000 
TSLCADRGScale_1_IN_21120 
TSLCADRGScale_1_IN_22000 
TSLCADRGScale_1_IN_23000 
TSLCADRGScale_1_IN_25000 
TSLCADRGScale_1_IN_26000 
TSLCADRGScale_1_IN_35000 
TSLCADRGScale_1_IN_36000 
TSLCADRGScale_0pt5M 

CIB 0.5 meter.

TSLCADRGScale_1M 

CIB 1 meter.

TSLCADRGScale_2M 

CIB 2 meter.

TSLCADRGScale_5M 

CIB 5 meter.

TSLCADRGScale_10M 

CIB 10 meter.

TSLCADRGScale_37pt5M 

RDTED 1:250,000.

TSLCADRGScale_150M 

RDTED 1:1M.

TSLCADRGScale_750M 

RDTED 1:5M.

TSLCADRGScaleUnknown