• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

What does Resample.exe do?

Messages
26
Country
unitedstates
Hi, Can anybody give me some insight and guidance as to what resample.exe does exactly? Are there any tools out there that does what it does? I use FSEarthTiles, and it does have a resample phase, and yet it still exports processes to resample. I am wanting this information for a possible project.

Also, I have looked for the source code for FSEarthTiles, but the links have closed. Does anyone have it? I have TileProxy source, or most of it.

What I am considering is a HLSL version of resample. I use FSEarthTiles a lot. Years ago it was download speeds that were a bottleneck. But today, it's the resample phase that takes up the bulk of the time. I don't know exactly what resample.exe does, make layers at different resolutions for different LOD? I am wondering if that can be sped up using HLSL.
 
Why do I have sunglasses on this thread? What does "watched" mean? ... WHAT ARE YOU ALL STARING AT? (lol)
 
OK. Looking at that MSDN felt like walking up to a skyscraper. But here's the thing. I only want it to do one thing, which is to work with FSEarthTiles. Start with that and then maybe I can break it out for other purposes.

So first I'll write a little script resample.exe to see exactly what FSEarthTiles is passing to it for parameters, since I don't have the source. Then I'll take a look at what the breakdown of the product of resamples work is. Next see if any of that can be done with CUDA possibly more efficiently. Sometime in there I've got to actually work and get paid and do honey do lists.

But any help or direction would be really nice. The source for FSET would be awesome, the author put it out there but the links are down. I already have a nice bit of software working around FSET, might be nice to incorporate it.

I'll do this first stuff with AutoHotKey. I hear the baby is awake. L8r
 
In case of doubt, whip the SDK documentation out*.

https://msdn.microsoft.com/en-us/library/cc707102.aspx#TheResampleTool


*Every dev should have this tattooed on their lower arm or left butt cheek.

I was thinking of how to make a negative image screened sun filter to use for "tanning" the FS SDK Resample documentation onto my abdomen during a mid-winter tropical vacation, but then I realized that ImageTool will only 'vertically flip' images and cannot 'horizontally flip' images. :(

Is there a wiki on how to use a 3rd party graphics utility to 'horizontally flip' images ? :oops:

Assuming I were successful in implementing such a work-flow and resulting 'tanned' image, I will of course need to re-configure a laptop computer for use in front of a large mirror in order to correctly read the resulting documentation after my vacation. ;)

< Just kidding, of course ! > :laughing:


But, come to think of it, a mid-winter tropical vacation seems like an increasingly interesting idea right about now. :cool:

GaryGB
 
Hi, Can anybody give me some insight and guidance as to what resample.exe does exactly? Are there any tools out there that does what it does? I use FSEarthTiles, and it does have a resample phase, and yet it still exports processes to resample. I am wanting this information for a possible project.

Also, I have looked for the source code for FSEarthTiles, but the links have closed. Does anyone have it? I have TileProxy source, or most of it.

What I am considering is a HLSL version of resample. I use FSEarthTiles a lot. Years ago it was download speeds that were a bottleneck. But today, it's the resample phase that takes up the bulk of the time. I don't know exactly what resample.exe does, make layers at different resolutions for different LOD? I am wondering if that can be sped up using HLSL.

Resample can perform several different tasks for creation of scenery content in FS, one of which is creating photo-realistic terrain textures; it appears your primary interest is in using Resample to create such photo-realistic terrain textures.


It is easiest, IMHO, to do this via SBuilderX which offers a choice of several different aerial imagery tile-servers to download from via a 3rd party DLL which is updated periodically.

Is there a aerial imagery tile-server in FSET that you need / want access to, which thus far is not available via SBuilderX ? :scratchch


FYI: Part of the reason Resample takes so long "to do that voodoo that it 'do' so well" is, IIUC, it is performing double-precision computation of coordinates in the QMID grid for the FS 3D "curved earth" world model onto which it "drapes" the terrain textures as a special type of land class, with both the placement instructions and aerial imagery textures ...all inside a 1-piece output BGL.

https://en.wikipedia.org/wiki/Doubl...cution_speed_with_double-precision_arithmetic

GaryGB
 
Last edited:
Resample can perform several different tasks for creation of scenery content in FS, one of which is creating photo-realistic terrain textures; it appears your primary interest is in using Resample to create such photo-realistic terrain textures.


It is easiest, IMHO, to do this via SBuilderX which offers a choice of several different aerial imagery tile-servers to download from via a 3rd party DLL which is updated periodically.

Is there a aerial imagery tile-server in FSET that you need / want access to, which thus far is not available via SBuilderX ? :scratchch


FYI: Part of the reason Resample takes so long "to do that voodoo that it 'do' so well" is, IIUC, it is performing double-precision computation of coordinates in the QMID grid for the FS 3D "curved earth" world model onto which it "drapes" the terrain textures as a special type of land class, with both the placement instructions and aerial imagery textures ...all inside a 1-piece output BGL.

https://en.wikipedia.org/wiki/Doubl...cution_speed_with_double-precision_arithmetic

GaryGB
I have downloaded all of the continental US at 4m/pixel, and about 1/4 of it at 1m/pixel using FSET. And there are many major cities at 30cm. I have a suite of applications I've put together to help organize the downloads. What does SBuilder offer?

I can see that double precision is out for me. Even though I have 2 GTX 780s in SLI, they don't do double precision any better than the CPU. They're castrated Titans after all. But I really don't know what I'm talking about at first glance here. Anything to add?
 
Assuming you have a specifically-structured Geo-referencing *.TXT file in the same folder as the BMPs downloaded by FSET, you can simply utilize SBuilderX's "Add Map from Disk" feature:

SBuilderX Menu > File > Add Map > From Disk


NOTE: For more info on this process, see:

http://www.fsdeveloper.com/forum/threads/are-there-any-way-to-select-satellite-photo.424552/

http://www.ptsim.com/index.php?option=com_content&view=article&id=54&Itemid=58


SBuilderX v3.14 64-bit download URL:

https://onedrive.live.com/download?resid=F3950C5BBD2BCFA1!805


Hope this helps a bit more ! :)


GaryGB
 
Taking a closer look, double precision on the GPU may have an 8x advantage. Not sure yet. But for that I'd go for it.

Thanks Gary, that's great information. I'll work on getting through it.
 
In keeping with my infamous predilection for posting information which might prove pertinent to understanding SDK exe's:

ASCII strings found in FS SDK Resample

Code:
This program cannot be run in DOS mode.
Rich
.text
.data
.rsrc
%u: Sample out of range, max %u
%lu: Invalid strip byte count, strip %lu
@_TIFFVSetField
TIFFAdvanceDirectory
TIFFUnlinkDirectory
TIFFSetField
%s: Invalid InkNames value; expecting %d names, found %d
%.1000s: Bad value %f for "%s"  %s: Invalid %stag "%s" (not supported by codec)
pseudo-  ... pass by value not implemented.
%.1000s: Bad value %ld for "%s"
%s: Sorry, cannot nest SubIFDs
Nonstandard tile length %d, convert file
Nonstandard tile width %d, convert file
%.1000s: Bad value %d for "%s"
Bad value %ld for "%s" tag ignored  %s: Cannot modify tag "%s" while writing
%s: Unknown %stag %u
_TIFFVGetField  TIFFVGetField ... pass by value not imp.

Error writing directory link
TIFFReadRawStrip
TIFFFillStrip
TIFFReadRawTile
TIFFFillTile
TIFFReadBufferSetup
%s: Read error at scanline %lu, strip %lu; got %lu bytes, expected %lu
%s: Read error at scanline %lu; got %lu bytes, expected %lu
%s: Seek error at scanline %lu, strip %lu
%s: No space for data buffer at scanline %ld
Can not read scanlines from a tiled image
File not open for reading   (cc & 1) == 0   tif_read.c  (cc & 3) == 0   (cc & 7) == 0
%s: Data buffer too small to hold strip %lu
%s: Read error on strip %lu; got %lu bytes, expected %lu
%ld: Strip out of range, max %ld
TIFFClientOpen  "%s": Bad mode
One of the client procedures are NULL pointer
Not a TIFF file, bad version number %d (0x%x)
Not a TIFF file, bad magic number %d (0x%x)
Error writing TIFF header
Cannot read TIFF header
%s: Out of memory (TIFF structure)
TIFFOpen
%s: Cannot open .

Warning, %s: ¸"
StoNits ICC Profile
Photoshop
RichTIFFIPTC
Copyright
MatrixWorldToCamera
MatrixWorldToScreen
FieldOfViewCotan
TextureWrapModes
TextureFormat
ImageFullLength
ImageFullWidth
TileDepth
ImageDepth
  DataType
Matteing
XMLPacket
ReferenceBlackWhite
YCbCrPositioning
YCbCrSubsampling
YCbCrCoefficients
SMaxSampleValue
SMinSampleValue
SampleFormat
ExtraSamples

TargetPrinter
DotRange
NumberOfInks
InkNames
InkSet

SubIFD
TileByteCounts
TileOffsets
TileLength
TileWidth HalftoneHints
ColorMap
PrimaryChromaticities
WhitePoint
HostComputer
Artist
DateTime
TransferFunction
ColorResponseUnit
PageNumber  ResolutionUnit
GrayResponseCurve
GrayResponseUnit
FreeByteCounts
FreeOffsets
YPosition
XPosition
PageName
PlanarConfiguration
YResolution XResolution
MaxSampleValue
MinSampleValue
StripByteCounts
RowsPerStrip
SamplesPerPixel
Orientation
StripOffsets
Model
Make
ImageDescription  DocumentName
FillOrder
CellLength
CellWidth
Threshholding
PhotometricInterpretation
Compression BitsPerSample
ImageLength
ImageWidth  OldSubfileType
SubfileType fip != NULL tif_dirinfo.c
TIFFFieldWithTag
Internal error, unknown tag 0x%x
Tag %d  Tag     Compression algorithm does not support random access
Compression scheme %u %s encoding is not implemented
%s %s encoding is not implemented
%s %s encoding is no longer implemented due to Unisys patent enforcement
LZW scanline
strip
tile
Compression scheme
%u %s decoding is not implemented
%s %s decoding is not implemented

TIFFReadDirectory
EstimateStripByteCounts
MissingRequired
to fetch tag value for "ReferenceBlackWhite" array
No space %s
%.1000s: Cannot determine size of unknown tag type %d   for "StripByteCounts" array
%.1000s: TIFF directory is missing required "%s" field
incorrect count for field "%s" (%lu, expecting %lu); tag ignored
Error fetching data for field "%s"    €O
%s: Rational with zero denominator (num = %lu)  to fetch array of rationals cannot read TIFF_ANY type %d for field "%s"
Cannot handle different per-sample values for field "%s"
to fetch strip tag
for strip array
for chopped "StripOffsets" array
for chopped "StripByteCounts" array 
%.1000s: Bogus "%s" field, ignoring and calculating from imagelength
%.1000s: TIFF directory is missing required "%s" field, calculating from imagelength Colormap
to read "TransferFunction" tag
%.1000s: wrong data type %d for "%s"; tag ignored
%.1000s: unknown field with tag %d (0x%x) encountered
%.1000s: invalid TIFF directory; tags are not sorted in ascending order
%.1000s: Can not read TIFF directory
%.1000s: Can not read TIFF directory count  %.100s: Can not read TIFF directory to read TIFF directory
%.1000s: Seek error accessing TIFF directory
%.1000s: Failed to allocate space for IFD list
SGILog24
SGILog
PixarLog
AdobeDeflate
Deflate
ISO
JBIG
CCITT Group 4
CCITT Group 3
CCITT RLE/W CCITT RLE
Old-style JPEG
JPEG    NeXT
ThunderScan PackBits
%s compression support is not configured
LogL16InitState
LogLuvInitStateTIFFInitSGILog
SGILogEncode
SGILogDataFmt
LogL16Decode: Not enough data at row %d (short %d pixels)
sp->tbuflen >= npixels  sp != NULL  s == 0  tif_luv.c   LogLuvDecode24: Not enough data at row %d (short %d pixels)
LogLuvDecode32: Not enough data at row %d (short %d pixels)
cc%rowlen == 0  
    ‰?%s: No space for SGILog translation buffer
No support for converting user data format to LogL
td->td_photometric == PHOTOMETRIC_LOGL
No support for converting user data format to LogLuv
SGILog compression cannot handle non-contiguous data
td->td_photometric == PHOTOMETRIC_LOGLUV    
Inappropriate photometric interpretation %d for SGILog compression; %s  must be either LogLUV or LogL
SGILog compression supported only for %s, or raw data   XYZ, Luv    Y, L
Unknown data format %d for LogLuv compression
Unknown encoding %d for LogLuv compression
%s: No space for LogLuv state block scheme == COMPRESSION_SGILOG24 || scheme == COMPRESSION_SGILOG

Fax3Decode1D
Fax3Decode2D
Fax4Decode
Fax3DecodeRLE   Group4Options
Group3Options
FaxRecvTime
FaxSubAddress
FaxRecvParams
ConsecutiveBadFaxLines
CleanFaxData
BadFaxLines
FaxFillFunc
FaxMode tif_fax3.c
%s: Bad code word at scanline %d (x %lu)
%s: Uncompressed data (not supported) at scanline %d (x %lu)
%s: %s at scanline %d (got %lu, expected %lu)
Line length mismatch
Premature EOL
%s: Premature EOF at scanline %d (x %lu)    x == lastx
%s: No space for Group 3/4 reference line Fax3SetupState
%s: No space for Group 3/4 run arrays
Bits/sample must be 1 for Group 3/4 encoding/decoding   te->runlen == 64*(span>>6)
Fax Receive Time: %lu secs
 
Fax SubAddress: %s
 
Fax Receive Parameters: %08lx
  
Consecutive Bad Fax Lines: %lu
 
Bad Fax Lines: %lu
    (%u = 0x%x)
clean
receiver regenerated uncorrected errors
Fax Data:  (%lu = 0x%lx)
%suncompressed data %sEOL padding   +   %s2-d encoding
Group 3 Options:
Group 4 Options:
TIFFInitCCITTFax3
%s: No space for state block
NeXTDecode: Not enough data for scanline %ld
ThunderDecode: %s data at scanline %ld (%lu != %lu)
Too much
Not enough
rowsize > 0 tif_packbits.c
PackBitsDecode: Not enough data for scanline %ld
PackBitsDecode: discarding %d bytes to avoid buffer overrun
LZWSetupDecode  No space for LZW code table tif_lzw.c
LZWDecode: Bogus encoding, loop in the code table; scanline %d
LZWDecode: Corrupted LZW table at scanline %d   
LZWDecode: Wrong length of decoded string: data probably corrupted at scanline %d
LZWDecode: Strip %d not terminated with EOI code
LZWDecode: Not enough data at scanline %d (short %d bytes)
LZWDecodeCompat: Corrupted LZW table at scanline %d
LZWDecodeCompat: Wrong length of decoded string: data probably corrupted at scanline %d
LZWDecodeCompat: Not enough data at scanline %d (short %d bytes)    
LZW compression is not available to due to Unisys patent enforcement
Old-style LZW codes, convert file
TIFFInitLZW No space for LZW state block    scheme == COMPRESSION_LZW   n > 0   tif_dumpmode.c
DumpModeDecode: Not enough data for scanline %d
TIFFWriteScanline
TIFFWriteEncodedStrip
TIFFWriteRawStrip
TIFFWriteEncodedTile
TIFFWriteRawTile
TIFFWriteBufferSetup
TIFFAppendToStrip
%s: Write error at scanline %lu
%s: Seek error at scanline %lu
TIFFRewriteDirectory
TIFFLinkDirectory
Error writing data for field "%s"
Error fetching directory count
Error fetching directory link
%s: Error writing SubIFD directory link  
"%s": Information lost writing value (%g) as (unsigned) RATIONAL
Error writing directory contents
Error writing directory count
Cannot write directory, out of space
Error flushing data before directory write
Error post-encoding before directory write
Predictor
Horizontal differencing "Predictor" not supported with %d-bit samples
"Predictor" value %d not supported
sp->pfunc != NULL
sp->coderow != NULL
tif_predict.c
sp->codetile != NULL
%u (0x%x)
  none
horizontal differencing
Predictor:
GeoASCIIParams
GeoDoubleParams
GeoKeyDirectory
GeoTiePoints
GeoTransformationMatrix
Intergraph TransformationMatrix
GeoPixelScale
GeodatabaseIO.dll
FSoftware
IDispatch error #%d
Unknown error 0x%0lX
ArcEditor license not available.


ArcObjects Error %08lx: %s

Source:      %S

Description: %S

Help file:   %S
    Help id:     %d


"PTC BitPack And LZ2 Solid Block BitPack And LZ1 BitPack Compressed
Delta And LZ2 Compressed
LZ2 Compressed  Delta And LZ1 Compressed
Delta Compressed
LZ1 Compressed
Not Compressed
Destination north limit must be greater than south limit.

Destination east limit must be greater than south limit.


%0*u%0*u\scenery\   %0*u%0*u    .bgl    .bip    %s%s%s%s%s%s    % S % S 

Unable to open output file: '%s'

Internal error while adding layers to BGL file.

Internal error while adding layer to BGL file.

wb  

Cell %I64u of %I64u (%.2f% %); %0u:%02u:%02u elapsed, %0u:%02u:%02u remaining...    
Unable to create BIP file larger than 2 GB
%s.hdr
wt
BYTEORDER I

LAYOUT BIP
NROWS %u
   NCOLS %u

NBANDS %u

NBITS %u

Internal error.

ULXMAP %.13g

ULYMAP %.13g

XDIM %.13g
YDIM %.13g
;
supplemental information
;
qmidNW(l,u,v): %u, %u, %u
    ;
qmidSE(l,u,v): %u, %u, %u
    ;
NW(lat,lon): %.13g, %.13g
    ;
SE(lat,lon): %.13g, %.13g



Elapsed time: %02u:%02u:%02u


Compression statistics:


Method:  %s

Blocks:  %u

Ratio:   %.1f : 1

Max err: %f

Avg err: %f


Totals:

Blocks: %u
Ratio:  %.1f : 1

.tga
Unable to read TGA header.
TGA image descriptor must be either 0 or 8.

TGA colormap type must be 0.

TGA image type must be 2.

TGA bits per pixel must be either 24 or 32.


.bmp
Unable to read BMP header.
BMP header is corrupt.
BMP bit count must be either 24 or 32.
BMP file is compressed.
Only uncompressed BMP files are supported.

bad allocation
                 
p?FSX         
.BGL    .STN    .MOD    .R8     .R81    .R82    .0      .1      .PAL    .HAZ    .PCX    .BMP    .PIX    .VIS    .AIR    .GAU    .ICN    .BIN    .WAV
.MDL    .DLL    .FS6    .BND    .NDL    .PNL    .ADV    .SIM    .LOG    .VID    .TMP    .TXR    .LES    .CHL    .DRV    .SC1    .CFG    .MIS    .QCB
.FLT    .CMG    .TXT    .PLN    .DP     .CDP    .DYN    .WX     .FX     .GSL    .ABL    .FSR    .XML    .CAB    .ZIP    .DAT    .MIP    .PDF    .BRF
.HTM    .WT     .WTB    .CLD    .ANIM   .XMLX   .RWD    .DDS    .FSSAVE .SPB    .JPG    .PNG

Cache hit rate = %d

Unable to connect to database.
Unable to open raster table %s.

Unable to prepare raster table %s for reading.
Unable to fetch row %u from raster table %s.


Image   Raster
Unable to read raster/image field from raster table %s.

Unable to read image from raster table %s.


Cumulative cache hit ratio = %.10f

VectorGDB supports only 8 and 16 bit sample types

Pixel width and height must be non-zero.
Connecting to shapefile %s...

Connecting to personal geodatabase %s...

Connecting to SDE geodatabase %s:%s:%s...
  Server  Instance
Database
User
Password
SDE.DEFAULT Version
Unrecognized geodatabase type.
Opening feature class %s...


Field %s not found in table %s.


The WhereClause of VectorAttributeValue.%d is invalid.

GDBFeatureClass: %S
    WhereClause: %s

Unsupported type for field %s.

GeoTIFF: Unable to read width and/or height.

GeoTIFF: Unable to read bits per sample.

GeoTIFF: unsupported sample format (%u) and/or bits (%u).

GeoTIFF: Tiled images are not supported.

GeoTIFF: Memory allocation error.

GeoTIFF: Only geographic coordinates are supported.

GeoTIFF: Only WGS-84 coordinate system is supported.

GeoTIFF: Unsupported angular unit.
GeoTIFF: Separate bit planes not supported.

GeoTIFF: Image has unrecognized bit plane configuration.

GeoTIFF: read error.
    ~P„°…‰[%s] %s = %f
   [%s] %s = %i
   [%s] %s = %u
   [%s] %s = '%s'
  Œ
Unknown WGS84

QMC
QMIC
QMID0   QMID1   QMID2   QMID3   QMID4   QMID5   QMID6   QMID7   QMID8   QMID9   QMID10  QMID11  QMID12  QMID13  QMID14  QMID15  QMID16  QMID17  QMID18  QMID19  QMID20  QMID21  QMID22  QMID23  QMID24  QMID25  QMID26  QMID27  QMID28  QMID29  QMID30

LOD0    LOD1    LOD2    LOD3    LOD4    LOD5    LOD6    LOD7    LOD8    LOD9    LOD10   LOD11   LOD12   LOD13   LOD14   LOD15   LOD16   LOD17   LOD18   LOD19   LOD20  LOD21   LOD22   LOD23   LOD24   LOD25   LOD26   LOD27   LOD28

File
Local
Remote
Elevation
LandClass
WaterClass
Region
Season
PopulationDensity
Imagery
None

UINT8     SINT8     UINT16    SINT16       UINT32   SINT32  UINT64  SINT64

FLOAT32      FLOAT64   Motorola   MSB Intel   LSB      BIL     BIP     BSQ

1   2   3   4   5   6   7   8   9   10  11  12

Jan       Feb          Mar     Apr     May    Jun    Jul     Aug        Sep           Oct     Nov        Dec

January   February   March   April   May    June   July   August   September   October   November   December

LightMap
Night
Day
All
Point
Majority
Dither
Bilinear
Gaussian
Simple
Weighted    %u,%u,%u

Error parsing QMID: %s
QMID level must be less than %u for %s
QMID u-coordinate must be less than %u for %s

QMID v-coordinate must be less than %u for %s


unknown ImageryGDB
CustomGDB
PopulationDensityGDB
SeasonGDB
RegionGDB
WaterClassGDB
LandClassGDB
ClassGDB
ElevGDB Custom
PopulationDensityU8
SeasonU8
RegionU8
WaterClassU8
LandClassU8
ClassU8
ElevF32
ElevS16LSB
ElevU16LSB
ElevS16MSB
ElevU16MSB
ElevU8  SDE
GeoTIFF
TIFF
VectorGDB
TGA
BMP
Raw
rt

%64s%64s
NROWS
NCOLS
NBANDS
NBITS
Unsupported number of bits per sample: %d

BYTEORDER
LAYOUT Unsupported layout: %s

ULXMAP
ULYMAP
XDIM
YDIM
SKIPBYTES
BANDROWBYTES
TOTALROWBYTES
BANDGAPBYTES
NODATA
Failed to read world file.
Warning: Ignoring world file rotation parameters.


Channel_Red
Channel_Green
Channel_Blue
Channel_LandWaterMask
Channel_BlendMask
Channel_Value
RedBand
GreenBand
BlueBand
AlphaBand %u.%u

Type
Missing source type.
Unrecognized source type: '%s'

SourceDir
SourceFile %s%s
GDBType
Unrecognized geodatabase type: '%s'

GDBRaster
GDBFeatureClass
GDBDatabase
GDBServer
GDBInstance
GDBUser
GDBPassword

.hdr
.blw
.bpw
.bqw

Layer
Unrecognized data layer: '%s'


SampleType
Unrecognized sample type: '%s'

ByteOrder
Unrecognized byte order: '%s'

SamplingMethod
Unrecognized sampling method: '%s'
nBands

Layout
Unrecognized band layout: '%s'

NullValue
NoData
NoDataValue
NullCellValue
Null
MaxValidValue
MaxValidData
MinValidValue
MinValidData
DefaultValue
DefaultData Scale
ScaleInMeters
FractionBits
Bias
BaseValue
Lon
Lat
NumOfCellsPerLine
NumOfLines
CellXdimensionDeg
CellYdimensionDeg
SampleIsCentered
PixelIsPoint

GCS
Unrecognized geographic coordinate system: '%s'


Month
Unrecognized month: '%s'

Variation
Unrecognized variation: '%s'


VectorAttributeValue.%d
Unable to read VectorAttributeValue.%d.


MajorityMode
Unrecognized MajorityMode: '%s'


SampleWeight.%d %lf,%lf
Unable to read SampleWeight.%d.

SampleWeight.%d is a duplicate of an already assigned weight.


Missing Layer.
Missing SamplingMethod.

Number of bands must be greater than zero.
Unknown band layout.

Number of rows and columns must be non zero.


Unknown sample type.

Unknown byte order.
  
Warning: Majority sampling mode weights computed for first band only.


Error: Channel source number %u is out of bounds.

Number of rows and columns must be non-zero.

Pixel width and height must be greater than zero.

Unsupported source type.

Out of memory.
Unable to open data source '%s'.

Image Resample Failed.
Elevation Resample Failed.
Land Classification Resample Failed.

Water Classification Resample Failed.

Region Resample Failed.

Population Density Resample Failed.

Season Resample Failed.


----------------------------------------------------------------------------------------------------------------------------------------------------------------------

usage: resample [-iqn?] file1.inf [file2.inf ... fileN.inf]

resample.exe %s


-? prints this help message

-i ignores all but the last [destination] section

-q quiet mode


----------------------------------------------------------------------------------------------------------------------------------------------------------------------

unknown switch: %s
use resample -? for help.


Destination
Source
Resample Info File: '%s'

%s not found.

MultiSource
NumberOfSources
Missing required parameter.

Source%u
All source files must be the same type.

Failed to create data source.

DestDir
DestBaseFileName
SplitDirLOD
SplitDirLOD is out of the legal range of 0 to %u.
SplitFileLOD
SplitFileLOD is out of the legal range of 0 to %u.
SplitDirLOD must be less than or equal to SplitFileLOD.

TextureWidth
LOD
MaxAutoLOD
DestFileType
BGL
NorthLat
SouthLat
EastLon
WestLon
EastLong
WestLong
BoundingCell
MinBoundingCell
MaxBoundingCell UseSourceDimensions
CompressionQuality

CompressionQuality must be between %d and %d.

Source Data required.

Error parsing LOD.
Auto
Maximum LOD is larger than %u.
Minimum LOD is larger than %u.

Resample completed successfully.

I was particularly 'encouraged' by the apparent inclusion of FAX image processing code (derived from a MS_Fax DLL ?). :scratchch

Hmmm... Maybe now I can FAX Resample input data from a laptop on a beach during a mid-winter tropical vacation ? :D


Hope this might help with better understanding FSX SDK Resample ! :cool:

GaryGB
 
Last edited:
PS:

The extra ASCII strings at the end of the Resample.exe file:

Code:
< < < O b s o l e t e > > >
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority0
970110070000Z
201231070000Z0p1+0)U"
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority0‚"0
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority‚
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority0
970110070000Z
201231070000Z0p1+0)U"
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority0‚"0
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority‚
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority0
070822223102Z
120825070000Z0y10    UUS10U
Washington Redmond
Microsoft Corporation1#0!UMicrosoft Code Signing PCA0
Copyright (c) 1997 Microsoft Corp. Microsoft Corporation1!0UMicrosoft Root Authority‚
Washington Redmond
Microsoft Corporation1#0!UMicrosoft Code Signing PCA0
070823002313Z
090223003313Z0t10    UUS10U
Washington Redmond
Microsoft Corporation10UMicrosoft Corporation
http://crl.microsoft.com/pki/crl/products/CSPCA.crl0H+<0:08+0†,
http://www.microsoft.com/pki/certs/CSPCA.crt0
Washington Redmond
Microsoft Corporation1#0!UMicrosoft Timestamping PCA0
070612235451Z
120613000451Z0¦10    UUS10U
Washington10URedmond10U
Microsoft Corporation1'0%UnCipher DSE ESN:27F4-D440-54F31'0%U
Microsoft Timestamping Service
http://crl.microsoft.com/pki/crl/products/tspca.crl0H+<0:08+0†,
A P P I D   Mscoree.dll (C) (R) %.*s%s  %s
\StringFileInfo\040904b0\CompanyName     
\StringFileInfo\040904b0\FileDescription 
\StringFileInfo\040904b0\ProductVersion \StringFileInfo\040904b0\LegalCopyright \StringFileInfo\040904b0\Comments

KERNEL32    GetDiskFreeSpaceExA

D:\bt\1202\target\retail\i386\resample.pdb

?SuppressDialogs@SceneryDatabase@@UAEX_N@Z 
?GetConnectionInfo@SceneryDatabase@@UAE_NPAD000@Z
?IsEditing@SceneryDatabase@@UAE_NXZ
?GetEditState@SceneryDatabase@@UAEJXZ
?SetDefaultState@SceneryDatabase@@UAE_NPAVGeoDBTable@@@Z Æ
?NeedsReconciliation@SceneryDatabase@@UAE_NXZ
?StopEditing@SceneryDatabase@@UAE_NPAVGeoDBTable@@_N@Z 
?StartEditing@SceneryDatabase@@UAE_NPAVGeoDBTable@@@Z
?TableType@SceneryDatabase@@UAE?AW4_TableType@@PBD@Z 
?Clone@SceneryDatabase@@UAEPAVGeoDBDatabase@@XZ
?FreeColumnList@SceneryDatabase@@UAEXPAUSE_COLUMN_DEF@@@Z
?GetColumnList@SceneryDatabase@@UAEPAUSE_COLUMN_DEF@@PADPAJ@Z
?FreeTableList@SceneryDatabase@@UAEXJPAPAD@Z 
?GetTableList@SceneryDatabase@@UAEXPAPAPADPAJ@Z
?TableExists@SceneryDatabase@@UAE_NPBD@Z 
?DeleteTable@SceneryDatabase@@UAE_NPBD@Z 
?OpenTable@SceneryDatabase@@UAEPAVGeoDBTable@@PBD@Z
?isConnected@SceneryDatabase@@UAE_NXZ
??1SceneryDatabase@@UAE@XZ s
??0SceneryDatabase@@QAE@PBD00000@Z 
?ServerName@SceneryDatabase@@UAEPBDXZ
?InstanceName@SceneryDatabase@@UAEPBDXZ
?UserName@SceneryDatabase@@UAEPBDXZ ?DatabaseName@SceneryDatabase@@UAEPBDXZ
                                                                                                       b         sprintf_s ¢ __iob_func  Üfflush  æfprintf Öexit  {_snwprintf  q_snprintf äfopen 3_purecall øfwrite  ófseek _splitpath  Ùfclose  ¢_stricmp  7printf  —_finite 1memmove ífree  Éatoi  ostrtoul Èatof  kstrtod  Tsscanf_s  Úfeof  dstrncpy ßfgets ‹_makepath ¼_fullpath hstrrchr |toupper Arand  _access 4_chdir  å_getcwd 3memset  _amsg_exit    __getmainargs /_cexit  _exit g _XcptFilter ¡ __initenv
_initterm _initterm_e ?_configthreadlocale é __setusermatherr  _adjust_fdiv  Ì __p__commode  Ð __p__fmode  m_encode_pointer æ __set_app_type  MSVCR80.dll í_unlock — __dllonexit |_lock "_onexit c_decode_pointer A ?terminate@@YAXXZ v_except_handler4_common _invoke_watson  B_controlfp_s  N_crt_debugger_hook  4 ?_type_info_dtor_internal_method@type_info@@QAEXXZ  ÌlstrlenA  (InterlockedDecrement  ó FormatMessageA  XLocalAlloc  \LocalFree x DebugBreak  $InitializeCriticalSectionAndSpinCount  DeleteCriticalSection 4 CloseHandle uMultiByteToWideChar œGetPrivateProfileStringA  S CreateFileA SetFilePointer  ¤WriteFile µReadFile  SetEvent  #InitializeCriticalSection §RaiseException  GetModuleHandleA  FGetCurrentThreadId  )InterlockedExchange ý GetACP  tGetLocaleInfoA  ÚGetThreadLocale éGetVersionExA VSleep &InterlockedCompareExchange  £QueryPerformanceCounter ßGetTickCount  CGetCurrentProcessId ÊGetSystemTimeAsFileTime ^TerminateProcess  BGetCurrentProcess nUnhandledExceptionFilter  JSetUnhandledExceptionFilter 9IsDebuggerPresent KERNEL32.dll  PostThreadMessageA  * CharNextA ßMessageBoxA ËLoadStringA USER32.dll  P CreateSolidBrush  >SetViewportExtEx  G CreatePen 4SetPolyFillMode öRectangle +SetMapMode  - CreateCompatibleDC  SelectObject   DeleteObject  GdiFlush  dGetCurrentObject  2 CreateDIBSection  Œ DeleteDC  BSetWindowExtEx  ?SetViewportOrgEx  éPolyPolygon CSetWindowOrgEx  GDI32.dll # PathCombineA  ! PathCanonicalizeA M PathIsRelativeA SHLWAPI.dll £ timeGetTime WINMM.dll SHELL32.dll CoCreateInstance  i CoUninitialize  ; CoInitialize  ý OleRun  d CoTaskMemAlloc  ole32.dll OLEAUT32.dll  GetFileVersionInfoSizeA   GetFileVersionInfoA
VerQueryValueA  VERSION.dll âfloor R _CIpow  _assert vfprintf  _iob  >qsort Ëbsearch Osprintf cstrncmp +_ismbblead  í_getmbcp  $malloc  çfprintf_s Ïceil  /memcpy  0memcpy_s  Îcalloc  cGetFileSize hMapViewOfFile T CreateFileMappingA  qUnmapViewOfFile øGlobalAlloc ÿGlobalFree  GlobalSize  ,InterlockedIncrement  ˜ EnterCriticalSection  QLeaveCriticalSection  ÉlstrcpynA qGetLastError   GetProcAddress  MGetDiskFreeSpaceA SetEndOfFile  eGetFileTime ¤QueryPerformanceFrequency ø FreeLibrary RLoadLibraryA  HeapAlloc HeapFree  ‘WaitForSingleObjectEx £GetProcessHeap  O CreateEventA  k CreateSemaphoreA  ÃReleaseSemaphore  HeapSize  ÅGetSystemInfo P _CIlog  [ _CxxThrowException  t __CxxFrameHandler3  Q _CIlog10  N _CIexp  U _CIsqrt       
resample.exe GTIFDirectoryInfo GTIFFree GTIFImageToPCS GTIFKeyGet GTIFKeyInfo GTIFNew GTIFPCSToImage XTIFFClientOpen XTIFFClose XTIFFFdOpen XTIFFOpen                                                                                                                                                               ?AVtype_info@@ Næ
FS98MAIN    FS98CHILD   FS98SHADOW  FS98FLOAT   FS98DLG3D                                                                                                                                                                                                                                         ?AVCAtlException@ATL@@
M e m o r y   a l l o c a t i o n   f a i l u r e .  T h e   a p p l i c a t i o n   w i l l   e x i t .
V S _ V E R S I O N _ I N F O
S t r i n g F i l e I n f o   Ž  0 4 0 9 0 4 b 0   L
F i l e D e s c r i p t i o n     T e r r a i n   R e s a m p l e r 
C o m pa n y N a m e     M i c r o s o f t   C o r p .     
I n t e r n a l N a m e   r e s a m p l e   
L e g a l C o p y r i g h t   C o p y r i g h t   ©   M i c r o s o f t   C o r p o r a t i o n .   A l l   r i g h t s   r e s e r v e d .   ¦ ?
L e g a l T r a d e m a r k s     M i c r o s o f t ®   i s   a   r e g i s t e r e d   t r a d e m a r k   o f   M i c r o s o f t   C o r p o r a t i o n   
O r i g i n a l F i l e n a m e   r e s a m p l e   
P r o d u c t N a m e     M i c r o s o f t ®   F l i g h t   S i m u l a t o r 
F i l e V e r s i o n     1 0 .  0 . 6 1 6 3 7 . 0   ( F S X - X p a c k . 2 0 0 7 0 9 2 6 - 1 4 2 1 )  
P r o d u c t V e r s i o n   1 0 . 0 . 6 1 6 3 7 . 0   ( F S X - X p a c  k . 2 0 0 7 0 9 2 6 - 1 4 2 1 ) 
V a r F i l e I n f o     T r a n s l a t i o n      

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><description>Flight Simulator X</description><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity></dependentAssembly></dependency><trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo></assembly>

PADPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADD



http://www.microsoft.com/pki/certs/tspca.crt0U%0
Washington Redmond
Microsoft Corporation1#0!UMicrosoft Timestamping PCA0
070612235451Z
120613000451Z0¦10    UUS10U
Washington Redmond
Microsoft Corporation
1'0%UnCipher DSE ESN:27F4-D440-54F31'0%U
Microsoft Timestamping Service
http://crl.microsoft.com/pki/crl/products/tspca.crl0H+<0:08+0†,
http://www.microsoft.com/pki/certs/tspca.crt0U%0
Copyright (c) 1997 Microsoft Corp.
Microsoft Corporation1!0UMicrosoft Root Authority0
060916010447Z
190915070000Z0y10    UUS10U
Washington Redmond
Microsoft Corporation1
Microsoft Timestamping PCA


Copyright (c) 1997 Microsoft Corp.
Microsoft Corporation1!0UMicrosoft Root Authority
Washington Redmond
Microsoft Corporation
Microsoft Code Signing PCA
F l i g h t   S i m u l a t o r   X   v 1 0 . 0 . 6 1 6 3 7 . 0
http://www.microsoft.com/games/flightsimulator
Washington Redmond
Microsoft Corporation
Microsoft Timestamping PCA
 
Posted this in your other thread; not sure if you've taken a look:

On a high level resample converts georectified raster imagery (e.g. orthoimagery or DEM) into a BGL file (e.g. photoscenery or mesh). BGL files can contain different types of data -- in addition to photoscenery or mesh, BGLs can contain others things, including (but not limited to) airport facility data, airspace and navaid data, scenery object placement data, vector data, traffic schedules, model data -- the list goes on and on.

You'll probably want to take a look at the overview on the BGL file format available on the FSDeveloper wiki (http://www.fsdeveloper.com/wiki/index.php?title=BGL_File_Format) as well as this post by theisomizer (http://www.fsdeveloper.com/forum/th...porting-vector-data.432918/page-3#post-707786).
 
Back
Top