CityGML Support in Cesium

4,034 views
Skip to first unread message

Kanishk Chaturvedi

unread,
Sep 23, 2013, 3:03:35 AM9/23/13
to cesiu...@googlegroups.com
Hi, 

I am currently working with CityGML files and would like to view them on Cesium Globe. 

Would it be possible for you to guide me how exactly can this be done. As I can see that KML can be supported on Cesium, is there any support for CityGML files as well?

Thanks in advance!

Kanishk

Matthew Amato

unread,
Sep 24, 2013, 10:46:46 AM9/24/13
to cesiu...@googlegroups.com
There's not built-in support for CityGML yet, but I would love to see it added.  If you have any links to example files that would be useful, that would be a great start.  If you're interested in working on support yourself, even better.  Essentially, we would create a CityGmlDataSource object (much like we have for CZML and GeoJSON and are developing for KML.  It's just a matter of parsing the file and creating objects.  GeoJsonDataSource would probably be a good reference to use if you wanted to play around with trying to implement it.


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

thomas...@googlemail.com

unread,
Sep 25, 2013, 8:24:53 AM9/25/13
to cesiu...@googlegroups.com

Hi, I just recently came across Cesium and I am pretty impressed about it.
It would be really great to be able to directly view CityGML datasets!

If you are looking for CityGML datasets you may want to check either the
CityGML homepage at http://www.citygml.org/index.php?id=1539
or have a look at our 3DCityDB homepage. 3DCityDB is an Open Source 3D database
for the storage and maintenance of CityGML with PostGIS or Oracle RDBMS.
On the homepage at http://www.3dcitydb.net/ you can find under the menu
item "Demo" two projects for which the CityGML datasets and the derived
KML/COLLADA files can be downloaded (one is a part of Berlin and the other
a part of Potsdam).

The 3DCityDB has a powerful KML/COLLADA exporter which allows to export
CityGML data for visualization purposes. Nevertheless for larger scenes, it
is using the KMLNetworkLink element in order to implement a tiling strategy to
ensure that only tiles in the vicinity of the observer are being loaded.
As far as I have seen from the Cesium Blog this capability has not been
implemented for Cesium yet. If this would be available, the exported
3D city models from 3DCityDB could be directly loaded as pure KML or KML with
COLLADA files (as used by GoogleEarth).

Best regards
Thomas H. Kolbe (I am running www.citygml.org)

Matthew Amato

unread,
Sep 25, 2013, 9:17:52 PM9/25/13
to cesiu...@googlegroups.com, thomas...@googlemail.com
Awesome.  Thanks for the links.  I'll definitely keep them handy for when I have time to look into CityGML support.

Kanishk Chaturvedi

unread,
Sep 26, 2013, 5:26:03 AM9/26/13
to cesiu...@googlegroups.com, thomas...@googlemail.com
Hi,

Thanks for the response!

I have been working on 3D city database since few days. Using Postdam CityGML dataset, I am able to export it as KML, which opens successfully on Google Earth/Maps.

At the same time, I have also installed czml-writer. I tried to convert some sample KML files to CZML using CesiumLanguageConverter and they opened successfully on Cesium Viewer (http://cesium.agi.com/Cesium/Build/Apps/CesiumViewer/) by simply dragging the CZML files to viewer.

Now, using CesiumLanguageConverter, I can successfully convert Postdam KML file (exported by 3D city database) to CZML format without any error. But when I try to open Postdam CZML file on Cesium viewer by dragging it, it does not do anything. Also, it does not show any JavaScript error. 

As I am new to Cesium and CZML, I am struggling to understand the Postdam CZML file and to identify the issue. Is it due to complex geometries involved in KML generated from CityGML, which is not supported by CZML? But in that case, CesiumLanguageConverter should have failed at the time of conversion. Also, is there any way to check what exactly happens when I try to drag the CZML file on viewer. I am currently using Firebug in Mozilla Firefox and Developers Tools in Google Chrome and both of them do not show any error message.

Many thanks once again!

Regards,
Kanishk

thomas...@googlemail.com

unread,
Oct 3, 2013, 8:26:12 AM10/3/13
to cesiu...@googlegroups.com, thomas...@googlemail.com

Hi,

I have made a KML export of two building blocks in Berlin from our 3DCityDB
and I could successfully convert it into CZML using the online transformation tool
http://cesium.agi.com/kmlconverter/kml2czml?locationUrl=https%3A%2F%2Fdl.dropboxusercontent.com/u/24313387/KML/BerlinExcerpt_geometry.kml&f=JSON

When I load the resulting file in the CZML viewer, it shows only the building roofs
and they are clamped to the ground. Walls may be also shown, but since they are
probably also clamped to the ground they are not visible. It seems that the
CZML viewer is ignoring the absolute Z coordinate values. I had a short look at
the generated CZML file and it seems that the Z coordinates are still in there.

It would be great, if somebody from the Cesium team could have a look at it.
The data files can be downloaded from here:
CityGML: https://dl.dropboxusercontent.com/u/24313387/KML/BerlinExcerpt_geometry.gml
KML: https://dl.dropboxusercontent.com/u/24313387/KML/BerlinExcerpt_geometry.kml
CZML: https://dl.dropboxusercontent.com/u/24313387/KML/BerlinExcerpt_geometry.czml

In order to find the location on the Cesium globe, load the KML file before in
Google Earth and orient yourself. (I don't see a gazetteer / location search entry field
in the CZML viewer).

Thanks and best regards
Thomas Kolbe

Kanishk Chaturvedi

unread,
Oct 14, 2013, 12:31:44 PM10/14/13
to cesiu...@googlegroups.com, thomas...@googlemail.com
Hi,

Thank you for response!

This is true that we need to manually zoom in to the specific area in Cesium viewer. It is not automatically zooming to the location when we open CZML file. But if we can determine the bounding box around specified area, as a workaround, we can add following code with bounding box values while opening the CZML file
        
var west = Cesium.Math.toRadians(value);
        var south = Cesium.Math.toRadians(value);
        var east = Cesium.Math.toRadians(value);
        var north = Cesium.Math.toRadians(value);
var scene = cesiumWidget.scene;
var extent = new Cesium.Extent(west, south, east, north);
        scene.getCamera().controller.viewExtent(extent);

It will open CZML file with proper extents and there will be no need to manually zoom-in to the specified location. This works for me!

Also, as mentioned, z-coordinate values in CZML file are not being considered by Cesium viewer. The building roofs appear to be clamped to the ground.

Would it be possible for someone from Cesium Team to guide how z-coordinate values can be considered by Cesium viewer.

Many thanks!

Regards,
Kanishk 

Pooja Agrawal

unread,
Oct 17, 2013, 6:42:00 AM10/17/13
to cesiu...@googlegroups.com, thomas...@googlemail.com
hi kanishk
Can u just tell me how can i make clickable placemark in czml to use in cesium 3d globe?

Matthew Amato

unread,
Oct 17, 2013, 9:13:35 AM10/17/13
to cesiu...@googlegroups.com
Pooja, please do not ask the same question in multiple places, especially in unrelated threads.  I answered your other thread, please continue conversation there.


--

Pooja Agrawal

unread,
Oct 18, 2013, 12:05:44 AM10/18/13
to cesiu...@googlegroups.com
ok sry for that i did not do this again.

mail...@gmail.com

unread,
Oct 31, 2013, 11:27:36 AM10/31/13
to cesiu...@googlegroups.com, thomas...@googlemail.com
Hey guys,

Im also working on a citygml project and we are looking at using cesium for visualization purposes. I was wondering what the status was on the z-coordinate problem of the czml file tested by Thomas Kolbe.

I would also be interested to know if CZML currently has a tiling strategy which would load only data in the direct area of the postion of the user?

I will perfom some tests with other CityGML data to see if the z coordinate problem occurs also with other data.

Lucas

Kanishk Chaturvedi

unread,
Nov 1, 2013, 1:34:41 AM11/1/13
to cesiu...@googlegroups.com, thomas...@googlemail.com, mail...@gmail.com
Hi everyone,

I also tested a few CityGML datasets by converting them to CZML. The z-coordinate problem persists with all of them. This is possibly due to the reason that Cesium does not support "extruded features". I am also observing the same issue when I convert CityGML to KML and try to open it in Google Maps (not Google Earth). It ignores z-coordinate values and building appears to be clamped.

However, as per Cesium doucmentation, there are functions like PolygonOutlineGeometry() or PolygonGeometry(), which support extrudedHeight feature. If we give coordinates of the building with extrudedHeight, the 3D buildings can be visualized on Cesium. It works for me!

But considering hundreds of buildings in one file, this is going to be a huge manual effort. That would be great, if z-coordinates from CZML file can be visualized in Cesium viewer. 

Looking forward for some input/suggestion from Cesium Team.

Thanks & Regards
Kanishk

mail...@gmail.com

unread,
Nov 6, 2013, 7:31:35 AM11/6/13
to cesiu...@googlegroups.com, thomas...@googlemail.com, mail...@gmail.com
Hi all,

I agree with Kanishk, it would be great if the Cesium Team could take a look at the problem regarding the z-height of cartographicRadians (maybe a general problem?)

@Kanishk: it doesnt seem that usage of polygonoutlinegeometry() is feasible for large datasets, its cumbersome use is exactly the reason that they implement something like CZML.

Would be great to hear something from Cesium Team about this!

Matthew Amato

unread,
Nov 6, 2013, 10:37:28 AM11/6/13
to cesiu...@googlegroups.com, thomas...@googlemail.com, mail...@gmail.com
I've been meaning to jump back into this conversation for a while, but I've been extremely busy with work-related projects and have had very little time for core Cesium stuff lately.  That being said, over the next few weeks I hope to get back finishing up some of the big changes that have already been started in the "kml" and "dynamicScene-geometry" branches

Basically, I've been updating CZML and our DynamicScene/DataSource layer to take advantage of the new Geometry types in Cesium.  This allows for both static and dynamic 3D shapes of all types and goes a long way to allowing us to support native CityGML.  In the short term, conversion to KML will probably be the easiest route to take, but longer term (early next year) we can look into adding native CityGML support so no conversion would be necessary.  The online KML web service for conversion to CZML is obsolete and our recommendation for now is to use the `kml` branch (that branch does not have the 3D shape changes yet, but will soon).  I'll send out another update when you guys can try it out.

Here's a screenshot of a KML file for buildings in Nashville, TN, USA to get you excited about what's in the pipeline.

Inline image 1

I hope this addresses everyone's questions and issues up thread.  If you guys have any questions/comments/suggestions, just let me know and I'll try and get back to you ASAP.  Thanks.


Nashville.kml.close.small.jpg

Thomas H. Kolbe

unread,
Nov 7, 2013, 3:13:34 AM11/7/13
to Matthew Amato, cesiu...@googlegroups.com, thomas...@googlemail.com, mail...@gmail.com

Matthew,

thank you for your response - and the sneak preview,
which looks great! I am looking forward to test the new
features with my team when you make them accessible.

I have a question concerning the future possibilities of CZML and
the DynamicScene/DataSource layer: will it allow to load
tiles of CZML data dynamically according to the visibility / proximity
of the respective region to the position of the virtual camera?
We are currently using KMLNetworkLinks with GoogleEarth
in order to implement such a behaviour which is necessary for
handling large city models.

If you need help in interpreting some CityGML details or
looking for further example data please do not hesitate to
contact me.

The following image shows a screenshot of our current
webclient for the Energy Atlas Berlin project, where we are
using CityGML building models to estimate the energy demands
of every individual building. We are applying the same tools
for some part of London, too. With the webclient the level
of retrofitting for each building can be shown and adjusted.
At the moment we are using the Google Earth browser plugin,
but I would be interested to switch to Cesium.

Screenshot of the Energy Atlas

Best regards
Thomas

-- 

----------------------------------------------------------------------
Prof. Dr. Thomas H. Kolbe             Email: thomas...@tum.de
Lehrstuhl für Geoinformatik           WWW  : http://www.gis.bv.tum.de
Institut für Geodäsie, GIS und        Sekretariat: +49 89 289-22578
         Landmanagement               Telefon:     +49 89 289-23888
Technische Universität München        Telefax:     +49 89 289-22878
Arcisstraße 21                      
80333 München, Deutschland
----------------------------------------------------------------------

Kanishk Chaturvedi

unread,
Nov 7, 2013, 11:49:29 PM11/7/13
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de
Hi Matthew,

Thank you so much for response! This is going to be really helpful.

If I am correct, that will be KmlDataSource.js under 'kml' branch.

Eagerly waiting for it to be accessible.

Many thanks once again!

Regards,
Kanishk

Kanishk Chaturvedi

unread,
Nov 19, 2013, 9:26:52 AM11/19/13
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de
Dear Matthew/Cesium Team

Just had a quick query on KmlDataSource.js and 3D shape stuff, which were discussed in previous conversations. 

Is it also going to be a part of 'b23', which will be releasing in December?

Thanks & Regards
Kanishk

Kanishk Chaturvedi

unread,
Jan 7, 2014, 1:04:05 AM1/7/14
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de
Dear Cesium Team

In relation to the KML parsing for 3D shapes as discussed in previous conversations, I further tried to explore 'KML-dynamicScene-geometry' branch. With the help of KmlDataSourceDisplay.js, I am able to successfully parse and visualize polygons from my KML (derived from CityGML). But again, in spite of having z-coordinates in the KML, polygons appear as 2D and not 3D. 

As far as I understand, in this branch, you have introduced GeometryVisualizer.js instead of DynamicPolygonVisualizer.js and that lacks the support of extrudedHeight feature. Although, DynamicPolygon.js contains the extrudedHeight feature, but I think, it should be visualized by GeometryVisualizer.js. 

Could anyone please suggest me how to go ahead in this scenario.

Thank you for your support!

Kanishk Chaturvedi
Message has been deleted

umberto...@gmail.com

unread,
Jan 8, 2014, 6:14:03 AM1/8/14
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de
Dear Kanishk,

Where do you find the KmlDataSourceDisplay.js? Could you post the URL?

Kanishk Chaturvedi

unread,
Jan 8, 2014, 7:59:25 AM1/8/14
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de, umberto...@gmail.com
Hi

It is KmlDataSource.js and not KmlDataSourceDisplay.js (typing mistake from my side). It is not live yet, but can be found under the branch 'kml-dynamicScene-geometry'. The URL for this file is
Kanishk

umberto...@gmail.com

unread,
Jan 8, 2014, 8:47:03 AM1/8/14
to cesiu...@googlegroups.com, Matthew Amato, thomas...@googlemail.com, mail...@gmail.com, thomas...@tum.de, umberto...@gmail.com
Thank you!

It seems work...more or less...I can visualize contents but without Z value....

There is something else that I have to update?

Matthew Amato

unread,
Jan 8, 2014, 11:26:52 AM1/8/14
to cesiu...@googlegroups.com
Can you post the KML or KMZ file you are using?  I'd like to test it out in the branch and see what the problem is.  I really wanted to have this branch finished by 2014, but other work obligations have kept me from spending time on new Cesium features.  That being said, I'm still hoping to get it in sooner rather than later.


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.

Umberto Di Staso

unread,
Jan 8, 2014, 11:43:19 AM1/8/14
to cesiu...@googlegroups.com
Hi

For my testing I have used the KML provided by Thomas



2014/1/8 Matthew Amato <matt....@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/mPhhOG1w5AM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.

Umberto Di Staso

unread,
Jan 10, 2014, 8:55:03 AM1/10/14
to cesiu...@googlegroups.com
Dear Mattew

Can you post the KML file that you have used (the one from US) to do the screenshot in the previous post?

I want to try it and see if, using your file, I can visualize extruded polygons...

have a nice weekend

Matthew Amato

unread,
Feb 27, 2014, 10:59:04 PM2/27/14
to cesiu...@googlegroups.com
Umberto, I just realized I never got around to sending you that file.  The good news is that the file you originally posted now works.  The `kml` branch now has all of the geometry changes that were previously in other branches.  I'm hopefully to get KML into an official release sometime in the next couple of months. 
Message has been deleted

zpm.m...@gmail.com

unread,
Mar 8, 2014, 5:23:25 AM3/8/14
to cesiu...@googlegroups.com
hi
i want to create city 3d with czml
please show sample and link for download
the sample is http://cesiumjs.org/2014/03/03/Cesium-version-b26-released/
thanks

Umberto Di Staso

unread,
Mar 28, 2014, 4:47:45 AM3/28/14
to cesiu...@googlegroups.com
Hi Mattew

There are some (good, I hope!) news about the development of the KML-visualizer??

Thank you so much!
Umberto

-- 
Umberto Di Staso
Inviato con Sparrow

Matthew Amato

unread,
Mar 31, 2014, 4:39:05 PM3/31/14
to cesiu...@googlegroups.com
Yes, there is good news!  While KML support is not officially in master yet, the KML branch now supports many of the extrusion features, making it possible to load many city-oriented KML files into Cesium.  I attached one of the files I used for testing, which is in Nashville, TN.  There are still a few major features that need to be implemented (NetworkLink, ScreenOverlays, GroundOverlays), but if I find some time I might open a pull request to get our existing support into master and then add the other features incrementally over time.  If you have some files that don't work as expected, let me know and I can take a look at them.

On thing I will note is that we don't handle the height reference property of KML yet, but I think I have a good way to implement it as soon as soon as I carve out some time.


For more options, visit https://groups.google.com/d/optout.

Nashville_Polygon_GEO_WGS84_Terrain.kmz

Umberto Di Staso

unread,
Apr 5, 2014, 6:12:04 AM4/5/14
to cesiu...@googlegroups.com
Wow! Thank you very much!!

More or less, do you have any idea of when this component will be moved into the master brach?



-- 
Umberto Di Staso
Inviato con Sparrow

For more options, visit https://groups.google.com/d/optout.

Allegati:
- Nashville_Polygon_GEO_WGS84_Terrain.kmz

Kanishk Chaturvedi

unread,
Apr 23, 2014, 3:24:51 PM4/23/14
to cesiu...@googlegroups.com
Dear Matthew and Team,

Thank you for the information. I have tested a few KML/KMZ files along with Nashville dataset in 'KML branch' and all are working perfectly fine.

Looking forward for official release of KML support in Cesium.

Best Regards,
Kanishk

Kanishk Chaturvedi

unread,
Jun 23, 2014, 4:30:33 AM6/23/14
to cesiu...@googlegroups.com
Dear Cesium Team,

Is there any update on KML Network Link feature under KML branch? I tried to modify existing KMLDataSource.js under KML branch and run a KML file with a network link. Cesium is parsing the Network Link, but the objects from Network link are not adding to the main KMLDataSource. Due to that, the objects are not visible to the Cesium globe.

If we look closely into the code,

        } else if (nodeName === 'NetworkLink') {
            parent = new DynamicObject(createId(node));
            parent.name = getStringValue(node, 'name');
                        var linkUrl = getStringValue(node, 'Link').trim();
                        var networkLinkSource = new KmlDataSource(dataSource._proxy);
                        when(networkLinkSource.loadUrl(linkUrl), function() {
                            dataSource._composite.addCollection(networkLinkSource.getDynamicObjectCollection(), 0);
                        });
        }
I believe, the last line is not able to add networkLinkSource.getDynamicObjectCollection() into the dataSource.

Would it be possible for you to suggest any other way to implement the same functionality. As I need to work on Network Links for my project, I am also trying to find any new method to implement the same. If I come across any solution, I would be happy to contribute the same under KML branch.

My second query is, when are you planning to merge the KML feature into the master branch?

Thanks in advance!

Kanishk Chaturvedi

Matthew Amato

unread,
Jun 23, 2014, 11:09:41 AM6/23/14
to cesiu...@googlegroups.com
KML network links still need a lot of work and will probably not receive too much attached until after Cesium 1.0.  We don't have a timeframe for when they will be included in an official Cesium release, the earliest I could see it going in would be the end of the year.  Pull requests are always welcome if you would like to update the branch to the head of master as well as fix any issues you are uncovering.


--

amol konde

unread,
Aug 20, 2014, 3:58:34 AM8/20/14
to cesiu...@googlegroups.com
Hi Matthew,

As you mentioned about the CityGmlDataSource Object to be added for supporting CityGML files in Cesium. I would love to see it added as i intend to parse my CityGML datasets on the fly so that these can be viewed on Cesium globe. Can you please suggest something on this.....

Thanks,
Amol

On Tuesday, 24 September 2013 20:16:46 UTC+5:30, Matthew Amato wrote:
There's not built-in support for CityGML yet, but I would love to see it added.  If you have any links to example files that would be useful, that would be a great start.  If you're interested in working on support yourself, even better.  Essentially, we would create a CityGmlDataSource object (much like we have for CZML and GeoJSON and are developing for KML.  It's just a matter of parsing the file and creating objects.  GeoJsonDataSource would probably be a good reference to use if you wanted to play around with trying to implement it.


On Mon, Sep 23, 2013 at 3:03 AM, Kanishk Chaturvedi <kanis...@gmail.com> wrote:
Hi, 

I am currently working with CityGML files and would like to view them on Cesium Globe. 

Would it be possible for you to guide me how exactly can this be done. As I can see that KML can be supported on Cesium, is there any support for CityGML files as well?

Thanks in advance!

Kanishk

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Matthew Amato

unread,
Aug 21, 2014, 10:20:48 AM8/21/14
to cesiu...@googlegroups.com
Your best bet for CityGML right now would be to convert to KML and then use the `kml` development branch.  KML itself should be available in an official Cesium release later this year.  Official CityGML support is still a while away.  Of course we are always looking for contributors so if someone wants to work on it that would be awesome.


For more options, visit https://groups.google.com/d/optout.

Amol Konde

unread,
Aug 28, 2014, 12:49:04 AM8/28/14
to cesiu...@googlegroups.com

Thanks for the quick response Matthew,

I am new to cesium and that really helped a lot. I have converted my test dataset to kml and now trying to display it to cesium globe using CesiumLanguageConvertor. 

Still, I would be really happy to see if rendering of CityGML datasets can be done on the fly as i also need to update CityGML dataset on the fly with the output of analysis on Front End. So next time when we load the dataset we should be able to see the changes without any preprocessing i.e. to convert CityGML to KML.

If any such development is planned in near future i would be happy to contribute. 

Thanks!!!
Amol Konde.

Sai Asuka

unread,
Oct 14, 2015, 12:55:36 AM10/14/15
to cesium-dev, thomas...@googlemail.com, mail...@gmail.com
Matt, where does your buildings in "Nashville, TN" come from? Is there a place every state/city has?

Matthew Amato

unread,
Oct 14, 2015, 10:20:48 AM10/14/15
to cesiu...@googlegroups.com
I'm actually not sure where the Nashville buildings came from, it was an old Google Earth demo I had laying around.  It's almost certainly a converted shapefile.  With the open data movement in full swing, a lot of cities and states publish stuff on their own websites so google is usually your best bet.  Of course OpenStreetMap has good data as well, but that's very area-specific, OSM is what we used for the New York demo

For more options, visit https://groups.google.com/d/optout.

jujhar....@gmail.com

unread,
Apr 25, 2016, 4:18:32 AM4/25/16
to cesium-dev
Hi,
I want to manage 3d models in database so can you suggest me some options?
And i want to render 3d models in web browser also.

Regards,
Jujhar

thomas...@googlemail.com

unread,
Apr 26, 2016, 2:23:19 AM4/26/16
to cesium-dev, jujhar....@gmail.com

Hi,

you might want to have a look at our Open Source 3D geodatabase called
"3DCityDB" at www.3dcitydb.org. The most recent release (Version 3.2)
can be downloaded here: https://github.com/3dcitydb/3dcitydb/releases
and provides a Cesium based 3D web client to view 3D city models of
arbitrary size.

Some demos are shown here:
https://github.com/3dcitydb/3dcitydb-web-map
(scroll down to the bottom of the page).

Recently the Department of Information Technology & Telecommunications
of the New York City administration released an official CityGML based
3D city model which can be downloaded from here:
http://www1.nyc.gov/site/doitt/initiatives/3d-building.page

It took me just a couple of hours processing time to read the model into
3DCityDB and to export it as KML+COLLADA+glTF and to create this demo
(yes, this is just one hyperlink):
http://www.3dcitydb.org/3dcitydb-web-map/1.0/3dwebclient/index.html?title=3DCityDB-Web-Map-Client&batchSize=3&latitude=40.708906803146775&longitude=-74.01602285505336&height=612.2346239942241&heading=43.420051073303&pitch=-38.567968526122726&roll=0.16750366456149554&layer_0=url%3Dhttp%253A%252F%252Fwww.3dcitydb.net%252F3dcitydb%252Ffileadmin%252Fmydata%252FNYC_LOD2_KML%252FNYC_LOD2_KML_collada_MasterJSON.json%26name%3DNew%2520York%2520City%26active%3Dtrue%26spreadsheetUrl%3D%26cityobjectsJsonUrl%3D%26minLodPixels%3D120%26maxLodPixels%3D1000000000%26maxSizeOfCachedTiles%3D400%26maxCountOfVisibleTiles%3D200

Best regards
Thomas

Reza Molkara

unread,
May 23, 2017, 2:47:46 AM5/23/17
to cesium-dev, jujhar....@gmail.com, thomas...@googlemail.com
Hi Thomas,


I use this example in .net:


 and I export my  data to 3D Tiles by 3DCityB but I don't know how can I add my data in .NET.
And I'mgoing to make my 2D olygon in SHP format to cityGML format for making Tiles by 3DcityDB.

May you help me in this problems.

Thomas H. Kolbe

unread,
May 23, 2017, 3:25:34 AM5/23/17
to Reza Molkara, cesium-dev, jujhar....@gmail.com

Hi Reza,

I am not sure if I understand what you want to do.

Please note that 3DCityDB currently does not produce
the "3DTiles" file format. Instead, 3DCityDB provides its
own tiling schema (this was developed even two years
before 3DTiles came up) and within each tile the
3D geometries are encoded in glTF (and/or KML depending
on the exporter settings). These can then be loaded and
managed with our 3DCityDB Webclient, which is an extension
of the Cesium Viewer by tiling and layer management
(and links to Google Spreadsheets and FusionTables). See
https://github.com/3dcitydb/3dcitydb-web-map

The following paper explains our Cesium-based 3D Webclient:
https://mediatum.ub.tum.de/node?id=1245285

There is also a hands-on tutorial to go through all the steps
from setting up 3DCityDB over importing CityGML to
generating the tiled glTF export and to set up a viewer project:
http://www.gis.bgu.tum.de/en/projects/3dcitydb/#c1425

If you have created 3DTiles datasets using other conversion
tools or your own software, you can load them in the
3DCityDB Webclient as well. Just load the viewer from
http://www.3dcitydb.org/3dcitydb-web-map/1.2/3dwebclient/index.html
and use the function "add/configure layer" in the toolbox
menu (top left of the viewer). You will just have to enter
the URL of your 3DTiles dataset and click on "add layer".
This works with KML files, too.

Best regards
Thomas


Am 23.05.17 um 08:47 schrieb Reza Molkara:
-- 

-----------------------------------------------------------------------
Prof. Dr. Thomas H. Kolbe             Email: thomas...@tum.de
Lehrstuhl für Geoinformatik           WWW  : http://www.gis.bv.tum.de
Fakultät Bau Geo Umwelt               Sekretariat: +49 89 289-22578
Technische Universität München        Telefon:     +49 89 289-23888
Arcisstraße 21                        Telefax:     +49 89 289-22878
80333 München, Deutschland
-----------------------------------------------------------------------
Vorstandsvorsitzender des Runden Tisches Geoinformationssysteme e.V.
http://www.rtg.bv.tum.de/

Gastprofessor an der Faculty for Architecture and the Built Environment
der TU Delft im Akademischen Jahr 2016/17

Der Lehrstuhl für Geoinformatik ist Ausgezeichneter Ort 2016 im
Wettbewerb "Deutschland - Land der Ideen"
http://www.gis.bgu.tum.de/projekte/sddi/
-----------------------------------------------------------------------

Reza Molkara

unread,
May 23, 2017, 7:53:22 AM5/23/17
to cesium-dev, rezamol...@gmail.com, jujhar....@gmail.com, thomas...@googlemail.com
Thank you for your answering.
I have done these wich you said.
But I'm going to make page on which  load time showes my layers without adding by toolbox. 
I'm about to make 3D tiling of my 3d buildings that I made from shp files.
Thank you.

patelent...@gmail.com

unread,
Oct 6, 2017, 3:31:22 AM10/6/17
to cesium-dev
On Monday, September 23, 2013 at 12:33:35 PM UTC+5:30, Kanishk Chaturvedi wrote:
> Hi, 
>
> I am currently working with CityGML files and would like to view them on Cesium Globe. 
>
> Would it be possible for you to guide me how exactly can this be done. As I can see that KML can be supported on Cesium, is there any support for CityGML files as well?
>
> Thanks in advance!
>
>
>
> Kanishk

bhaiya ctgml or cesium ko kese ak sath jode please thodi help kardo agar apko pata ho to
mehulpa...@gmail.com

patelent...@gmail.com

unread,
Oct 6, 2017, 4:55:33 AM10/6/17
to cesium-dev

patelent...@gmail.com

unread,
Oct 6, 2017, 4:56:36 AM10/6/17
to cesium-dev
hello sir can i help you

how to connect city gml database in cesium

Reza Molkara

unread,
Oct 7, 2017, 3:43:04 AM10/7/17
to cesiu...@googlegroups.com
Hi 
Thank you,
I need help to add the optional terrain in Cesium.May you help me?
Best regards,
Reza.

Virüs bulunmuyor. www.avg.com


--

You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/mPhhOG1w5AM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.

Gabby Getz

unread,
Oct 9, 2017, 1:47:42 PM10/9/17
to cesium-dev
Hi there,

Our Cesium Workshop Tutorial has a section on Loading and Styling Entities that covers how to load in a KML file. Then you can ask additional more specific questions if you still need help.

Thanks!
Gabby

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.

Reza Molkara

unread,
Oct 9, 2017, 5:08:06 PM10/9/17
to cesiu...@googlegroups.com
Hi dear,
Thank you for your answer.
Best regards,
Reza
Reply all
Reply to author
Forward
0 new messages