Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying Freelayer position #217

Open
AriemX opened this issue Apr 26, 2022 · 4 comments
Open

Modifying Freelayer position #217

AriemX opened this issue Apr 26, 2022 · 4 comments

Comments

@AriemX
Copy link

AriemX commented Apr 26, 2022

Hi,

I've comme across an problem I can't solve by searching in the different documentations.

I have a view containing three elements :

  • A surface, displaying a complete map (the exact same as the Bing tutorial)
  • Two free layers :
    • A DEM from copernicus, also like the tutorial but with an other country wide area and also textured using bing map
    • A high resolution 3D model of a photogrammetric scan of a small town scale area properly positioned in lat/long.

Everything loads perfectly in the browser exept that the 3D model is below the DEM and I wanted to align them properly in altitude.

I know there is the zShift parameter to modify the height of the model when running slpk2vts, however I don't know the exact required value and "trials and errors" method may take too much time for each tests (one run of slpk2vts takes aproximatly 2hours). Is there a way to apply a transform to a freelayer in a view to change the height at runtime ?

@jrjdavidson
Copy link

Hi ariem,
Don't have an answer to this but I have encountered the same problem. I have found the best way to work it is to process once, then load the model in the planned vts environment, and then use the included measuring tool to get the vertical offset ( one of the tools. That usually gets you close enough.
Also one word of warning - it might always look a little strange given that you are using a regional DEM alongside a detailed 3D model. The precision of the regional dataset (probably SRTM data for the surface?) means that the seam will always look a little wonky. Two things I usually do to make it look a little better is to try and find a smaller dataset to

  1. add as a detailed surface around the model, such as a lidar dataset ( we have quite a few public lidar data here in NZ) and
  2. make sure the the detailed model is just a little proud of the regional data

Hope this helps! I still think there isn't anything quite like VTS around so I think it's worth the effort to explore this package.

@AriemX
Copy link
Author

AriemX commented May 24, 2022

Hi,

Thank you for your response !

I've been thinking to use a similar way to tackle the problem. However, I've been a bit lost on the tool to use. Which one have you used for that ? Maybe I've missed something in the tutorial and/or the documentation.

I assumed large DEM + High resolution models will be a bit strange (and maybe with some holes on the seam, as you said). We are aiming to get smaller areas with higher resolution latter.

@jrjdavidson
Copy link

There is an option when you first load the maps to get a measuring tool

I think it's controlMeasure : true

@AriemX
Copy link
Author

AriemX commented May 25, 2022

I found it, thank you very much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants