OsgEarth load DEM elevation slices

DEM data download

Login geospatial data in the cloud , navigate to Advanced Search , select the data set (SRTMDEM 90M resolution of the original elevation data), and set up the administrative retrieved.

 

DEM data registration

SRTM data downloaded * .img raster data block using QGIS load data, using Raster -> Miscellaneous -> Merge ... splicing tool, and saved as * .tif format.

 

DEM data slice

osgearth source projects included in the osgearth_package tool, this tool is used to cut DEM, DOM and form a pyramid. Also designated generation tms.xml.

 

osgearth_package file.earth --tms --out output_folder

 


 

osgearth_package out.earth --tms--max-level 10 --out D:\tms\

Parameter Description:

 

     out.earth: The document contains a description of earth being cut data. Preferably description contains only data to be cut.

     --tms: After cutting, generating tms.xml, for publishing the tms.

     --max-level 20: cutting the number of the highest level. Maximum cutting 10 described herein, it is from 0 to 10.

     --out: results generated storage path.

.earth File Description:

<map name="xinjiangdem" version="2">    
    <heightfield name = "xindem" driver = "gdal">    
    <url>xinjiangdem1.tif</url>    
    <tile_size>64</tile_size>  
    </heightfield>
</map>

 

 The final results include the generation of data to be cut and tms.xml, easy release into tms service.

 

OsgEarth load elevation tms

 

 

<elevation driver="tms" name="dem"  url="./xindem/tms.xml"> </elevation>

 

 

 

Published 40 original articles · won praise 6 · views 60000 +

Guess you like

Origin blog.csdn.net/mrbaolong/article/details/104849047