In importing or exporting images, you can use a reference file to assign a raster file with real-world geographic coordinates which you can open and edit in a notepad.
The following shows four reference file examples in different formats supported in AvisMap.
GB Geography Reference File (*.img)
DataMark: CNSDTF_IMG
Version: 1.0
Unit: M
Type: BMP
SaveWay: RGB
Band: 1
Alpha: 0.0
Row: 7460
Col: 7150
Xr: 0.000000
Yc: 2027.045554
Dr: 0.283447
Dc: 0.283484
StoreLocation: G:workgznew.bmp
West: 0.000000
East: 2114.517079
South: 0.134157
North: 2027.045554
Width: 7460
Height: 7150
Tiff Geography Reference File (*.tfw)
|
10 |
//resolution in X direction |
|
0 |
//rotation in X direction |
|
0 |
//rotation in Y direction |
|
-10 |
//resolution in X direction,should be negative |
|
18263450.000000 |
//X coordinate of center of pixel 1, 1 |
|
3658590.000000 |
//Y coordinate of center of pixel 1, 1 |
Definition of SMC - AvisMap Coordinate File
SMC file uses XML format. But it should be noted that the file should be written in some specified format as show below.
To simplify the use-defined process, now we didn't consider projected coordinate system in SMC.
The following shows a sample file in which yyy, xxx, rx, ry, uuu is some value represents northmost, westmost, resolution in X direction, resolution in Y direction, and the unit of resolution.
<AvisMapCoordinateFile Version="1.0">
<Northmost>yyy</Northmost>
<Westmost>xxx</Westmost>
<ResolutionX>rx</ResolutionX>
<ResolutionY>ry</ResolutionY>
<Units>uuu</Units>
</AvisMapCoordinateFile>
Resolution in X, Y direction points to the actual distance in X, Y direction that each pixel represents which you can get through formula rx=(x2-x1)/width and ry=(y2-y1)/Height, where X2, X1, Y2, Y1 shows coordinates of eastmost, westmost, northmost, southmost. and width and height is of the image. If the image is in geographic coordinate system, you should change DMS to DD.
uuu is AvisMap character of unit. As show below:
|
AvisMap Unit |
Meaning |
|
Millimeter |
Millimeter |
|
Centimeter |
Centimeter |
|
Decimeter |
Decimeter |
|
Meter |
Meter |
|
Kilometer |
Kilometer |
|
Mile |
Mile |
|
Inch |
Inch |
|
Yard |
Yard |
|
Foot |
Foot |
|
Degree |
Degree |
DataMark: CNSDTF_DOM
Version: 1.0
Unit: M
Type: U
SaveWay: U
Band: 1
Row: 0
Col: 0
Xr: 51000.414000
Yc: 36799.556000
Dr: 1.000000
Dc: 1.000000
StoreLocation: G:workgznew.bmp
West: 51000.414000
East: 54000.414000
South:32799.556000
North: 36799.556000
Width: 3001
Height: 4001
Export is not supported for file in this type.