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

[3D] Support kml/kmz #2612

Closed
gjn opened this issue Aug 28, 2015 · 7 comments
Closed

[3D] Support kml/kmz #2612

gjn opened this issue Aug 28, 2015 · 7 comments
Assignees
Labels

Comments

@gjn
Copy link
Contributor

gjn commented Aug 28, 2015

For our layer ch.bazl.luftfahrthindernis, we currently do wms in 3d and drap it on the terrain. This layer has an official kml/kmz file that could be used. This file is in fully 3d (see attached screenshot which was dropped in a cesium example.

Sample code showed that this could easily be done by specifiying a kml datasource on a viewer widgets. As ol3cesium doesn't use the viewer, I was unable to add this layer. How would we add support for kml/kmz to ol3cesium? @gberaudo any ideas?

I think it would be a nice demo of realy 3D capabilities that are relatively cheap to come by.

image

@gberaudo
Copy link
Contributor

gberaudo commented Aug 28, 2015 via email

@gjn
Copy link
Contributor Author

gjn commented Aug 28, 2015

Single file, dropable on the cesium viewer demo.

@oterral
Copy link
Contributor

oterral commented Aug 31, 2015

Technically we have a vector layer with the data, so with the VectorSynchroniser of ol3cesium we should just apply a 3d style when we swicth to 3d. I guess.

@gberaudo
Copy link
Contributor

We have two solutions:

  • either to parse the KML with OL3 format and then convert it to Cesium
    with the VectorSynchronizer;
  • or add support for Cesium datasources in OL3-Cesium.

Both solutions have values.
The second one has the advantage of letting Cesium handle the conversion.

@oterral
Copy link
Contributor

oterral commented Aug 31, 2015

In the specific case of ch.bazl.luftfahrthindernis, in 2d it's a WMTS and then in 3d it should be the KML file.

@gjn
Copy link
Contributor Author

gjn commented Sep 1, 2015

I think luftfahrhindernisse will not be the only case where a 2D layer is wmts/wms and in 3D, it will be vector based (geojson or kml). So I would say that we need to address this in a general manner.

It would be great to have kml datassource in ol3-cesium.

@davidoesch davidoesch mentioned this issue May 14, 2016
6 tasks
@oterral
Copy link
Contributor

oterral commented Mar 30, 2017

KMLDataSource used in production

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

No branches or pull requests

3 participants