Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

3D KML add height for display #3678

Closed
davidoesch opened this issue Jan 13, 2017 · 24 comments
Closed

3D KML add height for display #3678

davidoesch opened this issue Jan 13, 2017 · 24 comments

Comments

@davidoesch
Copy link
Contributor

Hi

as discussed with @gjn
ask c2c for support on how to make a plain kml line drawn or imported (only x y no z) in map.geo.admin.ch work in 3d view by adding on the fly alti information to it make it artificially clamp to ground ( or at least 2, above ground) as in map.wanderland

this is a workaround for
#3374
and
#3017

@cedricmoullet
Copy link
Contributor

@oterral do you see a way to do that ?

@oterral
Copy link
Contributor

oterral commented Jan 20, 2017

Here an example of the Cesium hack for Polyline:

  1. Click here
  2. Drop the file (PatrouilledesGlaciersPOI.txt) in it
  3. Go to 3d

You see a small line of 30m width because the 2d line was 30 pixel width

The idea would be to improve this hack if possible and do the same hack in ol3-cesium.

@davidoesch
Copy link
Contributor Author

this is what we need...

any review on this approach by @gberaudo @gjn

  • side effcts, limitation etc?

@oterral
Copy link
Contributor

oterral commented Jan 20, 2017

Just saw, if we get the corridor object. We can modify the width of the corridor on-the-fly

@davidoesch
Copy link
Contributor Author

when do we have an ETA for this?

@davidoesch
Copy link
Contributor Author

hi oli
Question, having wandern.ch working in 3D https://www.wandern.ch/ewalc/images/ewalk2/1200/geodata/geodata_de.xml
which changes do need be made?1 seems not to work cc @cedricmoullet

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

Just put <tessellate>1</tessellate> instead of <tessellate>0</tessellate> and it works

@davidoesch
Copy link
Contributor Author

If did a find and replace of 0 to 1 but no success for the file above

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

That's what I did and it works

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

screen-clamped

@davidoesch
Copy link
Contributor Author

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

You can't load via GIST because it returns a bad-formed XML file with text at the beginning.

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

I make it work with another KML.

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

Remove the line in file:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!--  Generator: OCAD Version 12.1.1  -->

@davidoesch
Copy link
Contributor Author

did not change anything

image

@oterral
Copy link
Contributor

oterral commented Feb 1, 2017

Remove also the <script> tag in it.

@oterral
Copy link
Contributor

oterral commented Feb 2, 2017

@davidoesch it works without <script> tag, see

@oterral
Copy link
Contributor

oterral commented Feb 2, 2017

@davidoesch @gjn draw clamped to ground see

with openlayers/ol-cesium#437

@davidoesch
Copy link
Contributor Author

ok,, perfect!!!

When will this be in prod? next deploy?

@davidoesch
Copy link
Contributor Author

update?

@davidoesch
Copy link
Contributor Author

Respectively:

  • Icons are not shown

https://mf-chsdi3.int.bgdi.ch/shorten/7207a7587f

@oterral
Copy link
Contributor

oterral commented Mar 17, 2017

the star and the marker ? :) I see them

@davidoesch
Copy link
Contributor Author

Strange- I did not see it before, relodaded it....

Anyway: when will this deployed?

@oterral
Copy link
Contributor

oterral commented Mar 30, 2017

#3708 merged

@oterral oterral closed this as completed Mar 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants