• 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.

P3D V2.4 Terrain problem(resolved)

Messages
66
Country
china
Hello All!
I have a problem with the use of FWTools shell for making BGL terrain files:

My BGL configuration file is as follows:

Code:
[Source]
Type                = GeoTIFF
SourceDir           = "."
SourceFile          = "ORI_N5845W13615_DONE.Tif"
Layer               = Elevation
Variation           = Day
NullValue           = 0,0,0
ULXMAP                             = -136.096112
ULYMAP                             = 58.960640

[Destination]
DestDir             = "."
DestBaseFileName    = "Millennium_Image"
DestFileType        = BGL
LOD                 = Auto
CompressionQuality  = 85
UseSourceDimensions = 1

But P3D shows that the BGL terrain boundary has a large section, and the plot is also shown to be jagged.
 
TIFF Files are download from USGS.
The whole process is described in SDK:
Process imagery from UTM to WGS84
  1. Open the FWTools shell.
  2. In the project folder, create a new blank text file.
  3. Copy this command into the text file:
gdalwarp -t_srs "+proj=longlat +ellps=wgs84 +datum=wgs84 +units=d" in_file.tif out_file.tif

  1. Edit the text file now so that the "in_file.tif" is the file you downloaded, i.e. 239490485.tif, including the path to the file and the out_file.tif is the name of the reprojected file, i.e. IndexNamePart1.tif, including the path to the file.
  2. Save the text file and then copy all the text from the text file and paste it into the FWTools shell command line.
  3. Hit Enter and watch FWTools Go!
  1. When it is done, check your project folder for the new file.
Compile the WGS84 imagery to .bgl
  1. Open the location of the Prepar3D SDK. By default it is here: "C:\Program Files (x86)\Lockheed Martin\Prepar3D v2 SDK *\Environment SDK"
  2. Tip: Add this to your environment variable path
  3. Open the "Resample Examples" folder and edit the MilleniumImage.inf with a notepad editor.
  4. Save the file AS a copy with a new name related to your project, in your project folder.
  5. Edit the .inf file so that the file name and locations of the [Source] section, "SourceDir" for Source Directory and "SourceFile" for your source file name match your data and [Destination] sections "DestDir" are the destination location for your output file and the "DestBaseFileName" is the resulting name of the BGL you are about to create.
  6. Change the "NullValue" section in the [Source] to be 0,0,0.
  7. Save the .inf file as tutorial.inf in your project folder i.e. C:\Prepar3D\data\tutorial
  8. Open a command window: Hit windows key (Start) + r, then type "cmd" into the box that opens up.
  9. If you've added the resample tool to your environment variable, then all you need to do is type resample at the command window prompt and it will run, otherwise you'll need to change directory of the command window to the location of the resample tool. Type:
    cd C:\Program Files (x86)\Lockheed Martin\Prepar3D v2 SDK *\Environment SDK

    And hit enter.

  10. Next type :
    Resample C:\Prepar3D\data\tutorial\tutorial.inf

    And hit enter.

  11. After resample is done running you can look in the destination directory you specified and see the .bgl.
  12. While you're at the command window you just ran resample with type:
    Tmfviewer

    And hit enter.

  13. In the window that pops open, go to File -> Open and navigate to your new bgl.
  14. Preview the .bgl that you just created to see what it will look like in Prepar3D
Add to Prepr3D's Addon Scenery
  1. Open Prepar3Ds Addon Scenery\Scenery folder here:
    • C:\Program Files (x86)\Lockheed Martin\Prepar3D v2\Addon Scenery\Scenery
  2. Copy the resulting .bgl from the resample process to this location.
  3. Launch Prepar3D and view the beauty of the actual aerial imagery in Prepar3D!
 
44bcf2051fb146c8.png

P3D shows that the BGL terrain boundary has a large section, and the plot is also shown to be jagged.
Is there anyone in this situation?
 
0b8552869e1d36c1.png

Terrain data files(tiff) from USGS.
It doesn't look like a problem.
But I use the BGL as the elevation into P3D, there will be a large section and jagged mountain like #3.
 
I found the solution:
Change the command line order
Code:
gdalwarp -t_srs "+proj=longlat +ellps=wgs84 +datum=wgs84 +units=d" in_file.tif out_file.tif
to
Code:
gdalwarp  -of GTiff -co "INTERLEAVE=PIXEL" -s_srs "+proj=utm +zone=31 +datum=WGS84" -t_srs "+proj=latlong +datum=WGS84" -r cubic in_file.tif out_file.tif


Problem is resolved.

Thank you all.
 
Hello:

In reply to your posts above within this thread, and in this concurrent thread
:

http://www.fsdeveloper.com/forum/threads/black-edges-wgs84-imagery.435663/page-2


I use Global Mapper for most of my GIS processing, so I am unfamiliar with the many command line switches and parameters applicable to the GDAL utilities.


But the screenies above compel me to ask a quick question:

Assuming your source data were actually Elevation data stored in a image file format such as GeoTIFF (rather than another form of aerial imagery), are you wanting to purposely utilize 8-bit GeoTIFF raster "elevation" source data as input for FSX / P3D SDK Resample ...in order to render the sharply-peaked snow areas in your terrain mesh (aka "penitentes") ? :scratchch


If so, congratulations on successfully using this technique to accurately depict that type of real world terrain "purposely". :cool:


FYI: This has previously been discussed briefly in this thread (and in threads linked therein): :idea:

http://www.fsdeveloper.com/forum/threads/i-need-help-with-mesh.16629/



If, however, the above result was not your desired output, then AFAIK, you would need to identify the GDAL command line switches / parameters and workflow required to preserve the bit-depth of the downloaded source data set ...when output as GeoTIFFs re-projected to the Geographic (Lat/Lon) / WGS84 format required for use with FSX / P3D SDK Resample.


CAVEAT: Considering the size of the data set under discussion here, as well as the time and effort required to download it, I would advise being certain to keep backups of all originals, and only process COPIES of those originals with your GIS software. :pushpin:


BTW: One would otherwise normally use a ex: 16-bit GeoTIFF elevation source data as input for FSX / P3D SDK Resample.

To smooth out "terracing", and to achieve certain other results in one's terrain mesh, one would use a 32-bit ex: GeoTIFF elevation source data as input for FSX / P3D SDK Resample (...in conjunction with a specified FractionBits parameter value in one's INF file). ;)

PS: Wow ...that is a massive (and nicely detailed) data set on Alaska ! :yikes:

https://lta.cr.usgs.gov/ifsar_ori

Code:
National Geospatial Program
The National Map
Ifsar Orthorectified Radar Image (ORI)

Ifsar Orthorectified Radar Image (ORI)
Summary
(no description)
Child Items (133)

    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell1 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell10 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell11 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell12 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell13 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell14 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell15 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell16 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell17 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell18 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell19 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell2 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell20 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell21 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell22 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell23 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell24 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell29 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell3 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell30 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell31 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell32 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell35 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell37 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell38 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell4 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell5 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell6 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell7 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell8 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell9 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellD 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellE 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellF 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C285 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C286 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C287 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C126 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C127 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C128 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C154 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C132 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C133 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C158 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C159 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3 C129 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3 C130 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C131 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C155 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C156 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C157 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C134 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C135 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C136 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C160 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C161 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C162 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C189 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C190 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C26 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C27 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C28 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C5 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C6 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C7 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C8 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C9 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C108 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C29 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C30 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C31 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C56 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C57 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C81 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C82 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C100 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C101 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C102 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C103 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C104 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C105 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C106 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C107 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C49 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C50 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C75 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C78 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C79 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C80 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8P-C76 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8P-C77 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C51 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C52 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C53 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C54 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C55 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C109 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C137 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C163 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C191 2012 TIFF 2014
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C191 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C83 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C112 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C140 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C59 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C60 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C61 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C85 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C86 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L201-C188 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C113 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C114 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C115 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C141 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C142 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C143 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C87 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L4-C37 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L4-C38 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D7-L1-C314 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D7-L1-C315 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-139 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-320 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-321 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-322 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-336 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-337 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-338 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-339 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-NRCS-C255 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-NRCS-L2-C258 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-UpperSE-Lot1-C249 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK NRCS-L2-C259 2012 TIFF 2015

Related External Resources
Type: Web Link
Web Link     http://thor-f5.er.usgs.gov/ngtoc/metadata/waf/elevation/ori_ifsar/
Type: Web Accessible Folder
Web Accessible Folder     http://thor-f5.er.usgs.gov/ngtoc/metadata/waf/elevation/ori_ifsar/
Map
Spatial Services

ScienceBase WMS

Communities

    National Geospatial Program
    The National Map

Provenance

Data source
    Input directly

Catalog Item

Created
    on Wed Oct 15 06:38:37 MDT 2014
Updated
    on Fri Dec 04 00:00:17 MST 2015
_

Hope this helps ! :)

GaryGB
 
Last edited:
Replying here in response to this reply:

http://www.fsdeveloper.com/forum/threads/black-edges-wgs84-imagery.435663/page-2#post-728906


I know very little about dems and mesh or even gdalwarp commands for that matter. The meshes I made were from the 1/9 arc second sources off TNM server. They were .img files as downloaded and I used the same gdalwarp command I've always used on orthoimagery:

gdalwarp -of GTiff -co "INTERLEAVE=PIXEL" -t_srs "+proj=latlong +datum=WGS84" -r cubic "ned19_n44x25_w068x75_me_centralcoast_2010.img" "mt_desert_isle_3_WGS84.tif"

...so pretty much what you already discovered in your post above except I've never used +proj=utm which I'm guessing may have been overridden later in your command with +proj=latlong.

Jim
 
Hello:

In reply to your posts above within this thread, and in this concurrent thread
:

http://www.fsdeveloper.com/forum/threads/black-edges-wgs84-imagery.435663/page-2


I use Global Mapper for most of my GIS processing, so I am unfamiliar with the many command line switches and parameters applicable to the GDAL utilities.


But the screenies above compel me to ask a quick question:

Assuming your source data were actually Elevation data stored in a image file format such as GeoTIFF (rather than another form of aerial imagery), are you wanting to purposely utilize 8-bit GeoTIFF raster "elevation" source data as input for FSX / P3D SDK Resample ...in order to render the sharply-peaked snow areas in your terrain mesh (aka "penitentes") ? :scratchch


If so, congratulations on successfully using this technique to accurately depict that type of real world terrain "purposely". :cool:


FYI: This has previously been discussed briefly in this thread (and in threads linked therein): :idea:

http://www.fsdeveloper.com/forum/threads/i-need-help-with-mesh.16629/



If, however, the above result was not your desired output, then AFAIK, you would need to identify the GDAL command line switches / parameters and workflow required to preserve the bit-depth of the downloaded source data set ...when output as GeoTIFFs re-projected to the Geographic (Lat/Lon) / WGS84 format required for use with FSX / P3D SDK Resample.


CAVEAT: Considering the size of the data set under discussion here, as well as the time and effort required to download it, I would advise being certain to keep backups of all originals, and only process COPIES of those originals with your GIS software. :pushpin:


BTW: One would otherwise normally use a ex: 16-bit GeoTIFF elevation source data as input for FSX / P3D SDK Resample.

To smooth out "terracing", and to achieve certain other results in one's terrain mesh, one would use a 32-bit ex: GeoTIFF elevation source data as input for FSX / P3D SDK Resample (...in conjunction with a specified FractionBits parameter value in one's INF file). ;)

PS: Wow ...that is a massive (and nicely detailed) data set on Alaska ! :yikes:

https://lta.cr.usgs.gov/ifsar_ori

Code:
National Geospatial Program
The National Map
Ifsar Orthorectified Radar Image (ORI)

Ifsar Orthorectified Radar Image (ORI)
Summary
(no description)
Child Items (133)

    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell1 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell10 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell11 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell12 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell13 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell14 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell15 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell16 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell17 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell18 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell19 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell2 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell20 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell21 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell22 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell23 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell24 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell29 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell3 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell30 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell31 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell32 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell35 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell37 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell38 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell4 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell5 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell6 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell7 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell8 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-Cell9 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellD 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellE 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CellF 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C285 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C286 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-CopperRiver-C287 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C126 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C127 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C128 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L1-C154 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C132 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C133 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C158 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L2-C159 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3 C129 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3 C130 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C131 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C155 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C156 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L3-C157 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C134 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C135 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C136 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C160 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C161 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C162 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C189 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L4-C190 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C26 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C27 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C28 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C5 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C6 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C7 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C8 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L5-C9 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C108 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C29 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C30 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C31 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C56 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C57 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C81 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L6-C82 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C100 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C101 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C102 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C103 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C104 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C105 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C106 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L7-C107 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C49 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C50 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C75 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C78 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C79 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8B-C80 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8P-C76 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L8P-C77 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C51 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C52 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C53 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C54 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D5-L9-C55 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C109 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C137 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C163 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C191 2012 TIFF 2014
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C191 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L1B-C83 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C112 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C140 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C59 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C60 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C61 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C85 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L2-C86 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L201-C188 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C113 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C114 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C115 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C141 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C142 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C143 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L3-C87 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L4-C37 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D6-L4-C38 2013 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D7-L1-C314 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-D7-L1-C315 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-139 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-320 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-321 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-322 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-336 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-337 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-338 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-GB-339 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-NRCS-C255 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-NRCS-L2-C258 2012 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK IFSAR-UpperSE-Lot1-C249 2010 TIFF 2015
    USGS NED Orthorectified Radar Intensity Image AK NRCS-L2-C259 2012 TIFF 2015

Related External Resources
Type: Web Link
Web Link     http://thor-f5.er.usgs.gov/ngtoc/metadata/waf/elevation/ori_ifsar/
Type: Web Accessible Folder
Web Accessible Folder     http://thor-f5.er.usgs.gov/ngtoc/metadata/waf/elevation/ori_ifsar/
Map
Spatial Services

ScienceBase WMS

Communities

    National Geospatial Program
    The National Map

Provenance

Data source
    Input directly

Catalog Item

Created
    on Wed Oct 15 06:38:37 MDT 2014
Updated
    on Fri Dec 04 00:00:17 MST 2015
_

Hope this helps ! :)

GaryGB
Hi,GaryGB!
I used Globalmapper to open both ORI and DSM data file(the original file UTM coordinate system) and convert them to WGS84 via TOOLS>CONFIGURE>PROJECTION(tab).
When I want to do this:Global Mapper Menu > File > Export Elevation Grid > GeoTIFF > GeoTIFF Options Tab > File Type. at Export Elevation Grid then Error pop-up dialog box like:
1ff46c4ff1182d64.png
and I can't go on.

I don't want to use a terrain like "penitentes", the reason why penitentes, because the elevation data is wrong, the elevation data show correctly for the rolling surface.

Now,I use the DSM data file(tiff),elevation data is right,but have some other questiones.

So, I want to know what the FSdevelopers are using to format the terrain data as the elevation data? ORI or DEM or DSM?
 
Replying here in response to this reply:

http://www.fsdeveloper.com/forum/threads/black-edges-wgs84-imagery.435663/page-2#post-728906


I know very little about dems and mesh or even gdalwarp commands for that matter. The meshes I made were from the 1/9 arc second sources off TNM server. They were .img files as downloaded and I used the same gdalwarp command I've always used on orthoimagery:

gdalwarp -of GTiff -co "INTERLEAVE=PIXEL" -t_srs "+proj=latlong +datum=WGS84" -r cubic "ned19_n44x25_w068x75_me_centralcoast_2010.img" "mt_desert_isle_3_WGS84.tif"

...so pretty much what you already discovered in your post above except I've never used +proj=utm which I'm guessing may have been overridden later in your command with +proj=latlong.

Jim
Thank you Jim.
Command line tried many kinds of, can not work, change the data format can be worked, change ORI(tiff) to DSM(tiff).
I am very confused SDK of P3D said to use ORI format data to be the terrain elevation.In fact, it can't work. I suspect it's a problem for my method, or it's a problem in data format.
 
http://www.fsdeveloper.com/forum/threads/p3d-v2-4-terrain-problem-resolved.435808/#post-729141

Hi, GaryGB!
I used Globalmapper to open both ORI and DSM data file(the original file UTM coordinate system) and convert them to WGS84 via TOOLS>CONFIGURE>PROJECTION(tab).

Please tell us which USGS NED file(s) you need by name and/or download URL; or, if you are not certain as to which files you need, tell us the Geographic coordinates and/or descriptive name for the entire area of interest for your (current) project, so that we may download some example elevation data, and then identify a work-flow to successfully create a elevation source data set compatible with FS / P3D SDK Resample ...that can be output to a terrain mesh BGL. :pushpin:

IMHO, you will want to work with a Bare-earth DEM (DTM) version of this data set to make a FS / P3D SDK Resample output terrain mesh BGL. ;)


Perhaps you might wish to review this web page:

http://www.alaskamapped.org/dem

...and explore the FTP site sub-folders at this URL: :idea:

http://ifsar.gina.alaska.edu/data/


Hope this helps ! :)

GaryGB
 
Last edited:
Please tell us which USGS NED file(s) you need by name and/or download URL; or, if you are not certain as to which files you need, tell us the Geographic coordinates and/or descriptive name for the entire area of interest for your (current) project, so that we may download some example elevation data, and then identify a work-flow to successfully create a elevation source data set compatible with FS / P3D SDK Resample ...that can be output to a terrain mesh BGL. :pushpin:

IMHO, you will want to work with a Bare-earth DEM (DTM) version of this data set to make a FS / P3D SDK Resample output terrain mesh BGL. ;)


Perhaps you might wish to review this web page:

http://www.alaskamapped.org/dem

...and explore the FTP site sub-folders at this URL: :idea:

http://ifsar.gina.alaska.edu/data/


Hope this helps ! :)

GaryGB
Thank you, GaryGB.
Now I start using DEM data (IMG) and DTM files (TIF),but these two documents also exist problems, such as the following pictures:
ebf7b7fd4191ddb7.png
30f83a787ea7ca53.png
In some places there is a lack of elevation data,
3d7f259a662d2f90.png
resulting in a -10000m.
b399dc15989a91fe.png
Is this supposed to be a problem of data?
 
Since you did not specify coordinates for your project area, I will post a "worked example" using Global Mapper.

1.) Download (...and do not decompress from archive, as Global Mapper can read "*.tar.gz" files directly):

http://ifsar.gina.alaska.edu/data/2...1/IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz


2.) Global Mapper Menu > File > Open Data File(s)... > Open:

IFSAR.SDMI.2014.INTERMAP.DTM_N70W151/IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz


3.) Global Mapper Menu > Tools > Control Center > select "DTM_N7000W15100P.TIF" > click [Metadata] button

a.) On [Metadata] tab, click [Copy to Clipboard] button
b.) Paste into Windows NotePad, save as "DTM_N7000W15100P_TIF_METADATA.txt"

FILENAME=DTM_N7000W15100P.TIF ([path]\IFSAR_SDMI_2014_INTERMAP_DTM_N70W151\IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz)
DESCRIPTION=DTM_N7000W15100P.TIF
UPPER LEFT X=114887.500
UPPER LEFT Y=2255642.500
LOWER RIGHT X=126512.500
LOWER RIGHT Y=2227112.500
WEST LONGITUDE=151.04113659° W
NORTH LATITUDE=70.25746969° N
EAST LONGITUDE=150.70578666° W
SOUTH LATITUDE=69.99250716° N
UL CORNER LONGITUDE=151.00805576° W
UL CORNER LATITUDE=70.25746969° N
UR CORNER LONGITUDE=150.70578666° W
UR CORNER LATITUDE=70.25244901° N
LR CORNER LONGITUDE=150.74219928° W
LR CORNER LATITUDE=69.99250716° N
LL CORNER LONGITUDE=151.04113659° W
LL CORNER LATITUDE=69.99746542° N
PROJ_DESC=Albers Conic / NAD83 / meters
PROJ_DATUM=NAD83

PROJ_UNITS=meters
EPSG_CODE=EPSG:3338
COVERED AREA=331.66 sq km
LOAD TIME=0.30 s
NUM COLUMNS=2326
NUM ROWS=5707
NUM BANDS=1
PIXEL WIDTH=5 meters
PIXEL HEIGHT=5 meters

MIN ELEVATION=0.015 meters
MAX ELEVATION=58.292 meters
ELEVATION UNITS=meters
BIT DEPTH=32
SAMPLE TYPE=32-bit Floating Point
PHOTOMETRIC=Greyscale (Min is Black)
BIT_DEPTH=32
SAMPLE_FORMAT=Floating Point
ROWS_PER_STRIP=1
COMPRESSION=None
ORIENTATION=row 0 top, col 0 lhs
PIXEL_SCALE=( 5, 5, 1 )
TIEPOINTS=( 0.00, 0.00, 0.00 ) --> ( 114887.500, 2255642.500, 0.000 )
MODEL_TYPE=Projection Coordinate System
RASTER_TYPE=Pixel is Point
VERT_DATUM=None Specified


4.) Global Mapper Menu > Tools > Control Center > select "DTM_N7015W15100P.TIF" > click [Metadata] button

a.) On [Metadata] tab, click [Copy to Clipboard] button
b.) Paste into Windows NotePad, save as "DTM_N7015W15100P_TIF_METADATA.txt"

FILENAME=DTM_N7015W15100P.TIF ([path]\IFSAR_SDMI_2014_INTERMAP_DTM_N70W151\IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz)
DESCRIPTION=DTM_N7015W15100P.TIF
UPPER LEFT X=113652.500
UPPER LEFT Y=2282977.500
LOWER RIGHT X=125172.500
LOWER RIGHT Y=2254487.500
WEST LONGITUDE=151.04151439° W
NORTH LATITUDE=70.50744086° N
EAST LONGITUDE=150.70533937° W
SOUTH LATITUDE=70.24252161° N
UL CORNER LONGITUDE=151.00812601° W
UL CORNER LATITUDE=70.50744086° N
UR CORNER LONGITUDE=150.70533937° W
UR CORNER LATITUDE=70.50245816° N
LR CORNER LONGITUDE=150.74209634° W
LR CORNER LATITUDE=70.24252161° N
LL CORNER LONGITUDE=151.04151439° W
LL CORNER LATITUDE=70.24744149° N
PROJ_DESC=Albers Conic / NAD83 / meters
PROJ_DATUM=NAD83

PROJ_UNITS=meters
EPSG_CODE=EPSG:3338
COVERED AREA=328.2 sq km
NUM COLUMNS=2305
NUM ROWS=5699
NUM BANDS=1
PIXEL WIDTH=5 meters
PIXEL HEIGHT=5 meters

MIN ELEVATION=-10000 meters
MAX ELEVATION=14.801 meters
ELEVATION UNITS=meters
BIT DEPTH=32
SAMPLE TYPE=32-bit Floating Point
PHOTOMETRIC=Greyscale (Min is Black)
BIT_DEPTH=32
SAMPLE_FORMAT=Floating Point
ROWS_PER_STRIP=1
COMPRESSION=None
ORIENTATION=row 0 top, col 0 lhs
PIXEL_SCALE=( 5, 5, 1 )
TIEPOINTS=( 0.00, 0.00, 0.00 ) --> ( 113652.500, 2282977.500, 0.000 )
MODEL_TYPE=Projection Coordinate System
RASTER_TYPE=Pixel is Point
VERT_DATUM=None Specified


5.) Global Mapper Menu > Tools > Configure... > [Projection Tab]

Projection: "Geographic (Latitude / Longitude)"

Datum: "WGS84"

Planar Units: "ARC DEGREES"

Parameters:

Attribute: "CENTRAL LONGITUDE"

Value: "0"


6.) Global Mapper Menu > File > Export > Export Elevation Grid Format...

a.) At 'Select Export Format' prompt, choose "GeoTIFF" from the pick list

b.) In 'GeoTIFF Export dialog, on [GeoTIFF options] tab:

File Type: "Elevation (32-bit integer samples) (=Radio Button 'Ticked')

Vertical Units: "Meters"

Resampling: "Bicubic Interpolation"

Sample Spacing / Scale: (disregard =Automatically filled in by Global Mapper)

Always Generate Square Pixels: (=Checked)

Always Export At The Fixed Scale 1: "0" (=Not-Checked)

DPI Value To Save in Image (0 for None): "0" (=Not-Checked)

Compression: Default (No Compression)

ADVANCED: Use Tile Rather than Strip Orientation: (=Not-Checked)

ADVANCED: JPEG-in-TIFF Quality: "75" (disregard =Automatically filled in by Global Mapper)

Interpolate to Fill Small Gaps in Data: (=Checked)

Generate TFW (World) File: (=Checked)

Generate PRJ File: (=Checked)

Generate OziExplorer .map File: (=Not-Checked)

ADVANCED: Don't Write GeoTIFF Header: (=Not-Checked)


c.) In 'GeoTIFF Export dialog, on [Tiling] tab:

No Tiling - Just One Export File: (=Radio Button 'Ticked')

Skip Existing Files (Use to Complete Cancelled Exports): (=Not-Checked)


d.) In 'GeoTIFF Export dialog, on [Export Bounds] tab:

All Loaded Data: (=Radio Button 'Ticked')

e.) In 'GeoTIFF Export dialog, on [Export Bounds] tab: click [OK] button <'Save as' dialog opens>

f.) In 'GeoTIFF Export dialog > [Export Bounds] tab > 'Save as' dialog, enter:

"DTM_N7000W15100P+DTM_N7015W15100P.TIF";click[Save]button

Result: GeoTiff elevation source data file for FS / P3D Resample to create a terrain mesh BGL



INF file - for use with above GeoTiff elevation file:"DTM_N7000W15100P+DTM_N7015W15100P.TIF"

Code:
[Source]
Type=GeoTIFF
Layer=Elevation
MinValidValue=0
NullCellValue=-32767
SourceDir="."
SourceFile="DTM_N7000W15100P+DTM_N7015W15100P.TIF"
PixelIsPoint=1

[Destination]
DestDir="."
DestBaseFileName="DTM_N7000W15100P+DTM_N7015W15100P"
DestFileType=BGL
CompressionQuality=97
LOD=Auto,13
FractionBits=3


7.) Copy and paste all the above [Source] and [Destination] code into Windows NotePad, save as:

"DTM_N7000W15100P+DTM_N7015W15100P.INF"


8.) Create a work folder named "DTM_N7000W15100P+DTM_N7015W15100P" containing these (3) files:

* "DTM_N7000W15100P+DTM_N7015W15100P.TIF"

* "DTM_N7000W15100P+DTM_N7015W15100P.INF"


* FSX or P3D "Resample.exe"


9.) Drag-and-Drop "DTM_N7000W15100P+DTM_N7015W15100P.INF" onto "Resample.exe"

a.) Resample should proceed without interruption, and output this terrain mesh BGL file:

DTM_N7000W15100P+DTM_N7015W15100P.BGL


10.) In FS or P3D:

a.) Add that BGL to:

(1) ...a \Scenery sub-folder below a top folder
(2) ...in a active scenery layer
(3) ...at the top of FS / P3D Scenery Library GUI


b.) Set Terrain mesh complexity to 100 percent, and Terrain Mesh Resolution to 5 Meters

c.) Load a flight at Alpine Airstrip, Deadhorse, Alaska (ICAO: AK15) ...to inspect the resulting terrain mesh.


PS: For related considerations ...see:

http://www.fsdeveloper.com/forum/threads/about-geotiff-resmaple.430118/#post-671613


Hope this example work-flow "works" properly for you ! :)

GaryGB
 
Last edited:
Since you did not specify coordinates for your project area, I will post a "worked example" using Global Mapper.

1.) Download (...and do not decompress from archive, as Global Mapper can read "*.tar.gz" files directly):

http://ifsar.gina.alaska.edu/data/2...1/IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz


2.) Global Mapper Menu > File > Open Data File(s)... > Open:

IFSAR.SDMI.2014.INTERMAP.DTM_N70W151/IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz


3.) Global Mapper Menu > Tools > Control Center > select "DTM_N7000W15100P.TIF" > click [Metadata] button

a.) On [Metadata] tab, click [Copy to Clipboard] button
b.) Paste into Windows NotePad, save as "DTM_N7000W15100P_TIF_METADATA.txt"

FILENAME=DTM_N7000W15100P.TIF ([path]\IFSAR_SDMI_2014_INTERMAP_DTM_N70W151\IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz)
DESCRIPTION=DTM_N7000W15100P.TIF
UPPER LEFT X=114887.500
UPPER LEFT Y=2255642.500
LOWER RIGHT X=126512.500
LOWER RIGHT Y=2227112.500
WEST LONGITUDE=151.04113659° W
NORTH LATITUDE=70.25746969° N
EAST LONGITUDE=150.70578666° W
SOUTH LATITUDE=69.99250716° N
UL CORNER LONGITUDE=151.00805576° W
UL CORNER LATITUDE=70.25746969° N
UR CORNER LONGITUDE=150.70578666° W
UR CORNER LATITUDE=70.25244901° N
LR CORNER LONGITUDE=150.74219928° W
LR CORNER LATITUDE=69.99250716° N
LL CORNER LONGITUDE=151.04113659° W
LL CORNER LATITUDE=69.99746542° N
PROJ_DESC=Albers Conic / NAD83 / meters
PROJ_DATUM=NAD83

PROJ_UNITS=meters
EPSG_CODE=EPSG:3338
COVERED AREA=331.66 sq km
LOAD TIME=0.30 s
NUM COLUMNS=2326
NUM ROWS=5707
NUM BANDS=1
PIXEL WIDTH=5 meters
PIXEL HEIGHT=5 meters

MIN ELEVATION=0.015 meters
MAX ELEVATION=58.292 meters
ELEVATION UNITS=meters
BIT DEPTH=32
SAMPLE TYPE=32-bit Floating Point
PHOTOMETRIC=Greyscale (Min is Black)
BIT_DEPTH=32
SAMPLE_FORMAT=Floating Point
ROWS_PER_STRIP=1
COMPRESSION=None
ORIENTATION=row 0 top, col 0 lhs
PIXEL_SCALE=( 5, 5, 1 )
TIEPOINTS=( 0.00, 0.00, 0.00 ) --> ( 114887.500, 2255642.500, 0.000 )
MODEL_TYPE=Projection Coordinate System
RASTER_TYPE=Pixel is Point
VERT_DATUM=None Specified


4.) Global Mapper Menu > Tools > Control Center > select "DTM_N7015W15100P.TIF" > click [Metadata] button

a.) On [Metadata] tab, click [Copy to Clipboard] button
b.) Paste into Windows NotePad, save as "DTM_N7015W15100P_TIF_METADATA.txt"

FILENAME=DTM_N7015W15100P.TIF ([path]\IFSAR_SDMI_2014_INTERMAP_DTM_N70W151\IFSAR.SDMI.2014.INTERMAP.DTM_N70W151.tar.gz)
DESCRIPTION=DTM_N7015W15100P.TIF
UPPER LEFT X=113652.500
UPPER LEFT Y=2282977.500
LOWER RIGHT X=125172.500
LOWER RIGHT Y=2254487.500
WEST LONGITUDE=151.04151439° W
NORTH LATITUDE=70.50744086° N
EAST LONGITUDE=150.70533937° W
SOUTH LATITUDE=70.24252161° N
UL CORNER LONGITUDE=151.00812601° W
UL CORNER LATITUDE=70.50744086° N
UR CORNER LONGITUDE=150.70533937° W
UR CORNER LATITUDE=70.50245816° N
LR CORNER LONGITUDE=150.74209634° W
LR CORNER LATITUDE=70.24252161° N
LL CORNER LONGITUDE=151.04151439° W
LL CORNER LATITUDE=70.24744149° N
PROJ_DESC=Albers Conic / NAD83 / meters
PROJ_DATUM=NAD83

PROJ_UNITS=meters
EPSG_CODE=EPSG:3338
COVERED AREA=328.2 sq km
NUM COLUMNS=2305
NUM ROWS=5699
NUM BANDS=1
PIXEL WIDTH=5 meters
PIXEL HEIGHT=5 meters

MIN ELEVATION=-10000 meters
MAX ELEVATION=14.801 meters
ELEVATION UNITS=meters
BIT DEPTH=32
SAMPLE TYPE=32-bit Floating Point
PHOTOMETRIC=Greyscale (Min is Black)
BIT_DEPTH=32
SAMPLE_FORMAT=Floating Point
ROWS_PER_STRIP=1
COMPRESSION=None
ORIENTATION=row 0 top, col 0 lhs
PIXEL_SCALE=( 5, 5, 1 )
TIEPOINTS=( 0.00, 0.00, 0.00 ) --> ( 113652.500, 2282977.500, 0.000 )
MODEL_TYPE=Projection Coordinate System
RASTER_TYPE=Pixel is Point
VERT_DATUM=None Specified


5.) Global Mapper Menu > Tools > Configure... > [Projection Tab]

Projection: "Geographic (Latitude / Longitude)"

Datum: "WGS84"

Planar Units: "ARC DEGREES"

Parameters:

Attribute: "CENTRAL LONGITUDE"

Value: "0"


6.) Global Mapper Menu > File > Export > Export Elevation Grid Format...

a.) At 'Select Export Format' prompt, choose "GeoTIFF" from the pick list

b.) In 'GeoTIFF Export dialog, on [GeoTIFF options] tab:

File Type: "Elevation (32-bit integer samples) (=Radio Button 'Ticked')

Vertical Units: "Meters"

Resampling: "Bicubic Interpolation"

Sample Spacing / Scale: (disregard =Automatically filled in by Global Mapper)

Always Generate Square Pixels: (=Checked)

Always Export At The Fixed Scale 1: "0" (=Not-Checked)

DPI Value To Save in Image (0 for None): "0" (=Not-Checked)

Compression: Default (No Compression)

ADVANCED: Use Tile Rather than Strip Orientation: (=Not-Checked)

ADVANCED: JPEG-in-TIFF Quality: "75" (disregard =Automatically filled in by Global Mapper)

Interpolate to Fill Small Gaps in Data: (=Checked)

Generate TFW (World) File: (=Checked)

Generate PRJ File: (=Checked)

Generate OziExplorer .map File: (=Not-Checked)

ADVANCED: Don't Write GeoTIFF Header: (=Not-Checked)


c.) In 'GeoTIFF Export dialog, on [Tiling] tab:

No Tiling - Just One Export File: (=Radio Button 'Ticked')

Skip Existing Files (Use to Complete Cancelled Exports): (=Not-Checked)


d.) In 'GeoTIFF Export dialog, on [Export Bounds] tab:

All Loaded Data: (=Radio Button 'Ticked')

e.) In 'GeoTIFF Export dialog, on [Export Bounds] tab: click [OK] button <'Save as' dialog opens>

f.) In 'GeoTIFF Export dialog > [Export Bounds] tab > 'Save as' dialog, enter:

"DTM_N7000W15100P+DTM_N7015W15100P.TIF"; click [Save] button

Result: GeoTiff elevation source data file for FS / P3D Resample to create a terrain mesh BGL



INF file - for use with above GeoTiff elevation file:"DTM_N7000W15100P+DTM_N7015W15100P.TIF"
Code:
[Source]
Type=GeoTIFF
Layer=Elevation
MinValidValue=0
NullCellValue=-32767
SourceDir="."
SourceFile="DTM_N7000W15100P+DTM_N7015W15100P.TIF"
PixelIsPoint=1

[Destination]
DestDir="."
DestBaseFileName="DTM_N7000W15100P+DTM_N7015W15100P"
DestFileType=BGL
CompressionQuality=97
LOD=Auto,13
FractionBits=3


7.) Copy and paste all the above [Source] and [Destination] code into Windows NotePad, save as:

"DTM_N7000W15100P+DTM_N7015W15100P.INF"


8.) Create a work folder named "DTM_N7000W15100P+DTM_N7015W15100P" containing these (3) files:

* "DTM_N7000W15100P+DTM_N7015W15100P.TIF"

* "DTM_N7000W15100P+DTM_N7015W15100P.INF"


* FSX or P3D "Resample.exe"


9.) Drag-and-Drop "DTM_N7000W15100P+DTM_N7015W15100P.INF" onto "Resample.exe"

a.) Resample should proceed without interruption, and output this terrain mesh BGL file:

DTM_N7000W15100P+DTM_N7015W15100P.BGL


10.) In FS or P3D:

a.) Add that BGL to:

(1) ...a \Scenery sub-folder below a top folder
(2) ...in a active scenery layer
(3) ...at the top of FS / P3D Scenery Library GUI


b.) Set Terrain mesh complexity to 100 percent, and Terrain Mesh Resolution to 5 Meters

c.) Load a flight at Alpine Airstrip, Deadhorse, Alaska (ICAO: AK15) ...to inspect the resulting terrain mesh.


PS: For related considerations ...see:

http://www.fsdeveloper.com/forum/threads/about-geotiff-resmaple.430118/#post-671613


Hope this example work-flow "works" properly for you ! :)

GaryGB
Thank you! GaryGB.
Using your method and terrain data file, I succeed.
I am now ready to try other terrain data (mountain) with a lack of elevation data(-10000).
 
Congratulations ! :)

May I suggest you also consider the Arrigetch Peaks as a detailed mountainous terrain mesh test area for this data set: :idea:

Google Earth coordinates: 67.420000,-154.180000

https://en.wikipedia.org/wiki/Arrigetch_Peaks

https://www.google.com/search?q=arr...hUKEwin_NPR5s_JAhUC0iYKHe39DTQQsAQIGw&dpr=1.2

arrigetch-peaks-jpg.25924


FYI: This test in 3D view from Global Mapper (draped with ESRI World Imagery textures) uses: :pushpin:

http://ifsar.gina.alaska.edu/data/2...4/IFSAR.SDMI.2013.INTERMAP.DTM_N66W154.tar.gz

http://ifsar.gina.alaska.edu/data/2...4/IFSAR.SDMI.2013.INTERMAP.DTM_N67W154.tar.gz


You could utilize the same parameters and values in the work-flow I posted above, changing only the files and file names used. ;)


Good luck with your next tests (and please post some screen shots of your results, too) ! :cool:

GaryGB
 

Attachments

  • Arrigetch Peaks.jpg
    Arrigetch Peaks.jpg
    344.1 KB · Views: 1,133
Last edited:
Congratulations ! :)

May I suggest you also consider the Arrigetch Peaks as a detailed mountainous terrain mesh test area for this data set: :idea:

Google Earth coordinates: 67.420000,-154.180000

https://en.wikipedia.org/wiki/Arrigetch_Peaks

https://www.google.com/search?q=arr...hUKEwin_NPR5s_JAhUC0iYKHe39DTQQsAQIGw&dpr=1.2

arrigetch-peaks-jpg.25924


FYI: This test in 3D view from Global Mapper (draped with ESRI World Imagery textures) uses: :pushpin:

http://ifsar.gina.alaska.edu/data/2...4/IFSAR.SDMI.2013.INTERMAP.DTM_N66W154.tar.gz

http://ifsar.gina.alaska.edu/data/2...4/IFSAR.SDMI.2013.INTERMAP.DTM_N67W154.tar.gz


You could utilize the same parameters and values in the work-flow I posted above, changing only the files and file names used. ;)


Good luck with your next tests (and please post some screen shots of your results, too) ! :cool:

GaryGB
bea6d23e411dd970.png

3D View is so cool!
Thank you!GaryGB!
This map tool is really great.Thanks to the developer.
 
Back
Top