melowntech / workshop

Workshop of Melown 3D stack
10 stars 3 forks source link

How to setup 3D terrains(elevation) with Mapproxy for Bing maps? #33

Open VrushalNCT opened 3 years ago

VrushalNCT commented 3 years ago

I followed the tutorial to setup Bing maps https://vts-geospatial.org/tutorials/bing-maps.html However, it's just rendering the flat surface with textures and labels. How to setup bing maps to load the 3D terrains? Can mapproxy process height information on the fly to be able to load 3d terrains?

ladislavhorky commented 3 years ago

Please see first part of my answer to your other issue melowntech/vts-backend#17 .

I you want to serve your own terrain, please refer to tutorials like https://vts-geospatial.org/tutorials/mars-peaks-and-valleys.html , most tedious work is now solved by mapproxy-setup-resource tool that gets you from raster DEM to working resource in mapproxy but it is good to know what happens under the hood.

VrushalNCT commented 3 years ago

Hello @ladislavhorky

I went through all the tutorials and concepts, and I'm able to set up a DEM surface for a small region for now along with bing maps as a bound layer. However, I'm facing one issue regarding the resolution quality of the map. When I'm loading the bing maps with only a spheroid surface, I'm getting a very good resolution of the details when I zoom till almost the roads. image

But, when I used the bing maps as a bound layer with the custom DEM surface after a certain zoom level, it's not loading further details. and it is a very poor quality blur surface as compared to the above scenario. image

Following are the lod and tile range details. (referenceFrame "melown2015")

  1. For tms bing-maps : "lodRange": [2, 21], "tileRange": [[0, 0], [1, 1]]

  2. Custom DEM surface: "lodRange": [ 9, 15 ], "tileRange": [[ 56, 110 ],[ 57, 111 ]]

Could you please suggest how can we fix this issue?

vaclavblazek commented 3 years ago

"lodRange": [2, 21], "lodRange": [ 9, 15 ],

You need to have the same bottom of both datasets (i.e. 21 in this case). VTS does not support more external textures placed on one tile (so far).

ladislavhorky commented 3 years ago

Hello @VrushalNCT

more specifically, --bottomLod option in mapproxy-setup-resource if you are using it. It will take more time to set up DEM up to this LOD - this is expected.

VrushalNCT commented 3 years ago

Thank you very much. It worked with the --bottomLod option.

I was not using mapproxy-setup-resource but, I think it has made things easy. However, now the maps are taking more time to load in the vts-browser even if we zoom in at a certain location, it takes more than 5 minutes to load the details, is this an expected behavior? (I have good internet bandwidth)

ladislavhorky commented 3 years ago

Hi, 5 mins is quite too much... I'd have a look on how vts-mapproxy is doing during that period: