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?
In fact there are two calibrate dialogs in SBuilderX, having entered the information in the first dialog, what do I place in the second?
The resultant map seems to cover the whole of the area rather than a particular QMid11 rectangle:
I would be grateful for some assistance,
George
Add map from disk
Re: Add map from disk
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
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
Re: Add map from disk
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
I can now create much more accurate polys.
George
George
Re: Add map from disk
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.
George
George
George