Add map from disk

This is the Forum to discuss the use of SBuilderX (version 3.10 and above). For previous versions of SBuilder please use the "SBuilder for Flight Simulator FS2004" forum.
Post Reply
ananda
Posts: 77
Joined: Thu Jun 25, 2009 8:48 pm

Add map from disk

Post by ananda » Fri Jul 03, 2009 1:58 pm

I have a 4096x4096 bmp which was used by resample to create phototextures so I thought it would be ideal to use as a map to trace hydro polys. How do I calibrate it in SBuilderX given the information from the resample .inf file?

[Source1]
Type = BMP
SourceDir = "."
SourceFile = "16_000009.bmp"
Layer = Imagery
Variation = All
NullValue = 255,255,255
ulxMap = -2.197265625
ulyMap = 49.2104204456504
Nrows = 4096
Ncols = 4096
Xdim = 2.14576721191406E-05
Ydim = 1.40260716503648E-05
PixelIsPoint = 0
SamplingMethod = gaussian
Channel_BlendMask = 2.0

I have tried using the ulxMap as the west longitude and ulxMap + xdim as the east value (and ulYMap/ydim for latitudes) but the map in SBuilderX is not in the correct position and is the wrong size.

In the calibrate dialog, it is not possible to change the values for Cell Dimensions, where are these calculated?

Image

In fact there are two calibrate dialogs in SBuilderX, having entered the information in the first dialog, what do I place in the second?

Image

The resultant map seems to cover the whole of the area rather than a particular QMid11 rectangle:

Image

I would be grateful for some assistance,

George
George

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Re: Add map from disk

Post by Luis Sa » Sat Jul 04, 2009 1:53 am

Hello George,

As I have not SBuilderX source files with me at this moment, I visited

http://www.ptsim.com/sbuilder/ymaps.asp ... oom=15&T=0

to see the definition of the calibration file. You need to create one like this:

[GEOGRAPHIC]
North=41.59662211904878
South=41.577363031215896
West=-8.462176322937012
East=-8.427844047546387

So open the folder where you have your map and create a file with the name 16_000009.TXT with these 5 lines. The base name should be exactly the same as the base name of your map. Then change the borders. Here you need to correct your entries. The west boundary will be:

West=-2.197265625

But the East will be = West + NCols * XDim, that is:

East=0,0878906249999998976

Do the same for the North and South.

Then Start SBuilderX, add a map from disk and the map will be positioned in the right place without need to open the calibrated window.

Best Regards, Luis

ananda
Posts: 77
Joined: Thu Jun 25, 2009 8:48 pm

Re: Add map from disk

Post by ananda » Sat Jul 04, 2009 9:02 am

Thank you Luis, the key was "But the East will be = West + NCols * XDim". I hadn't realised that XDim was per column.

I can now create much more accurate polys.

George
George

ananda
Posts: 77
Joined: Thu Jun 25, 2009 8:48 pm

Re: Add map from disk

Post by ananda » Sat Jul 04, 2009 4:10 pm

That worked beautifully. I needed to write a program to create the txt file from the inf, and the Add Map works automatically. All I needed to do was to ensure that the polygon lay just inside the watermask bmp.

Image

George
George

Post Reply