- Messages
- 866
- Country
Alrighty, running test after test after test and I think I may have found a bug with resample.exe...
In the SDK it states...
will compile data into one BGL...
Working with the resample tool though on a range of photoscenery files it appears this is very buggy... It reads all the data from the source and destination sections of the files but for some reason it's placing the first image repeatedly over each cell...
The end result is:
In the shot it shows the first source image, watermask, nightmap and blendmask is being overlaid over the co-ordinates from the 2nd *.inf file...
Does anyone have any idea why it's not working as advertised in the SDK;'s?
From where I sit everything should be reading fine and geo-referencing things fine but for some reason it's grabbing the first source imagery and placing it into the lat/lon from the GeoTIFF referencing from the second.inf file's bounds...
Turning the usesourcedimensions=0 causes the render not to compile, turning it to usesourcedimensions=1 causes it to render but with the problems mentioned above, turning off "usesourcedimensions=" altogether (which is 0 by default) will cause it to render ok...
I'm completely lost here as to what the problem is...
In the SDK it states...
Code:
Resample [-i, -q, ?] file1.INF[file2.INF…fileN.INF]
will compile data into one BGL...
Working with the resample tool though on a range of photoscenery files it appears this is very buggy... It reads all the data from the source and destination sections of the files but for some reason it's placing the first image repeatedly over each cell...
Code:
resample.exe -i 4QEJ730850_tif.inf 4QEJ745835_tif.inf destination.inf
Code:
File "4QEJ730850_tif.inf"
[Source]
Type=MultiSource
NumberOfSources=4
[source1]
Type=GeoTIFF
SourceDir="G:\ProVFR\Watermapping\image"
SourceFile="4QEJ730850_tif.TIF"
Layer=Imagery
Variation=Day
NullValue=10,20,60
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0
[Source2]
Type=GeoTIFF
SourceDir="G:\ProVFR\Watermapping\lightmap"
SourceFile="4QEJ730850_tif.TIF"
Layer=Imagery
Variation=Night
NullValue=10,20,60
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0
[Source3]
Type=GeoTIFF
Layer = None
SourceDir="G:\ProVFR\Watermapping\blendmask"
SourceFile="lm_4QEJ730850_tif.TIF"
SamplingMethod=Gaussian
[Source4]
Type=GeoTIFF
Layer = None
SourceDir="G:\ProVFR\Watermapping\watermask"
SourceFile="lm_4QEJ730850_tif.TIF"
SamplingMethod=Gaussian
Code:
File "4QEJ745835_tif.inf"
[Source]
Type = MultiSource
NumberOfSources = 4
[source1]
Type=GeoTIFF
SourceDir="G:\ProVFR\Watermapping\image"
SourceFile="4QEJ745835_tif.TIF"
Layer=Imagery
Variation=Day
NullValue=10,20,60
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0
[Source2]
Type=GeoTIFF
SourceDir="G:\ProVFR\Watermapping\lightmap"
SourceFile="4QEJ745835_tif.TIF"
Layer=Imagery
Variation=Night
NullValue=10,20,60
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0
[Source3]
Type=GeoTIFF
Layer = None
SourceDir="G:\ProVFR\Watermapping\blendmask"
SourceFile="lm_4QEJ745835_tif.TIF"
SamplingMethod=Gaussian
[Source4]
Type=GeoTIFF
Layer = None
SourceDir="G:\ProVFR\Watermapping\watermask"
SourceFile="lm_4QEJ745835_tif.TIF"
SamplingMethod=Gaussian
Code:
File "destination.inf"
[Destination]
DestDir="."
DestBaseFileName="Oahu1"
DestFileType=BGL
LOD=3,17
CompressionQuality=85
UseSourceDimensions = 1
The end result is:
In the shot it shows the first source image, watermask, nightmap and blendmask is being overlaid over the co-ordinates from the 2nd *.inf file...
Does anyone have any idea why it's not working as advertised in the SDK;'s?
From where I sit everything should be reading fine and geo-referencing things fine but for some reason it's grabbing the first source imagery and placing it into the lat/lon from the GeoTIFF referencing from the second.inf file's bounds...
Turning the usesourcedimensions=0 causes the render not to compile, turning it to usesourcedimensions=1 causes it to render but with the problems mentioned above, turning off "usesourcedimensions=" altogether (which is 0 by default) will cause it to render ok...
I'm completely lost here as to what the problem is...
Last edited: