Code:
[Source]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "C59.bmp"
Variation = All
NullValue = 255,255,255
ulyMap = 42.6405850067556
ulxMap = -88.6026701847474
xDim = 9.1840205715306886227544910179641e-6
yDim = 9.1582179401123699015471167369902e-6
[Destination]
DestDir = "."
DestBaseFileName = "Photo_C59"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85
This is an example from SBuilderX. Here's the C59 bounds:
Name=Photo_C59
North=42.64058500675560700
South=42.62756202084476721
West=-88.60267018474735300
East=-88.59960272187646175
The bitmap is 335wide X 1423high.
++++++++++++++++++++++++++++++++
In this case we know th NSEW. So how to derive the xDim and yDim?
DistanceDifference / NumberOfPixelSpans
yDim = (N-S) / (1423high - 1)
yDim = ((42.64058500675560700-42.62756202084476721)/(1423-1))
yDim = 9.1582179401123699015471167369902e-6
xDim = (W-E) / (335wide -1)
xDim = ((88.60267018474735300-88.59960272187646175)/(335-1))
xDim = 9.1840205715306886227544910179641e-6
The NumberOfPixelSpans is the number of pixels minus one... if you had 2 pixels, the NumberOfPixelsSpans is 2-1=1... if you have 1000 pixels, then the spans is 999.
+++++++++++++++++++++++++++++++++
Sometimes you'll get metadata or a TFW file or something similar that may give you the xDim and yDim already computed... go ahead and use it.
You can declare that only part of the destination will be Compiled:
Code:
[Source]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "C59.bmp"
Variation = All
NullValue = 255,255,255
ulyMap = 42.6405850067556
ulxMap = -88.6026701847474
xDim = 9.1840205715306886227544910179641e-6
yDim = 9.1582179401123699015471167369902e-6
[Destination]
DestDir = "."
DestBaseFileName = "Photo_C59"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 0
NorthLat=42.640277
SouthLat=42.628035
WestLon=-88.60215
EastLon=-88.599701
CompressionQuality = 85
Dick