当前位置:网站首页>Cesium loading orthophoto scheme

Cesium loading orthophoto scheme

2022-06-23 09:22:00 Gisleung

Cesium Load orthophoto scheme

step 1: Prepare high-definition orthophoto map

 Insert picture description here

Prepare a good quality orthophoto map :

  • Image format is *.tif , Such as :D:\Users\gisleung\Desktop\cesium Load orthophoto scheme \01 Test orthophoto \new_file.tif
  • The correct coordinate system must be included

step 2: install CesiumLab Tools

step 3: Use tools to slice images

  1. Select orthophoto , Such as :D:\Users\gisleung\Desktop\cesium Load orthophoto scheme \01 Test orthophoto \new_file.tif
  2. Set parameters ( General default )
  3. Storage type selection hash
  4. Choose the output path , Such as :D:\Users\gisleung\Desktop\cesium Load orthophoto scheme \03 Output tile \tempTiles
  5. Submit for processing , Wait for processing to complete
     Please add a picture description

 Please add a picture description

step 4: adopt web The server publishes tiles

 Please add a picture description

  • Add tiles to the catalog (tempTiles) Copy to web The server , Such as :nginx Release path
  • Provide tile directory access address , As a service address , Such as :http://80.150.231.160:8888/webdata/maptile/tempTiles

step 5: stay Cesium Loading orthophoto tiles

  • Extended service address : Such as :http://80.150.231.160:8888/webdata/maptile/tempTiles/{z}/{x}/{y}.png
  • The following code can be used to implement the Cesium Loading images in
let domImage = new Cesium.UrlTemplateImageryProvider({
    
                "url": "http://80.150.231.160:8888/webdata/maptile/tempTiles/{z}/{x}/{y}.png"
              })
viewer.scene.imageryLayers.addImageryProvider(domImage)
  • Loading results

 Please add a picture description

原网站

版权声明
本文为[Gisleung]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230910218743.html