Skip to main content
15 votes
Accepted

What is difference between b3dm and gltf?

Update, 2021-11-10: b3dm is being retired. 3D Tiles is upgrading to a new version dubbed "3D Tiles Next," and the b3dm wrapper is being replaced with raw glTF 2.0 (GLB) files plus an ...
emackey's user avatar
  • 1,456
7 votes
Accepted

How to use gdal2tiles on a custom tiff image recieved from providers to generate tiles

I think all you need to do is reproject it using: gdalwarp -co TILED=YES -co COMPRESS=DEFLATE -t_srs EPSG:3857 image.tif newImage.tif and then tile it: gdal2tiles.py newImage.tif If your file is ...
Ian Turton's user avatar
  • 82k
7 votes

Cesium JS Line Length

You could use Cesium.EllipsoidGeodesic#surfaceDistance to calculate the distance in meters, and then convert to kilometers. var startCartesian3Point = Cesium.Cartesian3.fromDegrees(48.862165, 2....
Kaji's user avatar
  • 81
7 votes
Accepted

Cesium projection system

The Cartesian3 is a three-dimensional coordinate in the Earth-Centered Earth-Fixed (ECEF) coordinate frame, which is Cesium's default internal frame for rendering in 3D. The origin (0, 0, 0) is at the ...
emackey's user avatar
  • 1,456
5 votes
Accepted

Viewing a point geojson layer as markers in cesium

The points appear as billboards by default. You can change them to points with the following code: var entities = dataSource.entities.values; for (var i = 0; i < entities.length; i++) { var ...
User123's user avatar
  • 2,986
5 votes
Accepted

Viewing a geojson as 3D in cesium

You need to extrude polygons: entity.polygon.extrudedHeight = entity.properties.your_height_field You may need to loop over records, for example: var p = dataSource.entities.values; for (...
WKT's user avatar
  • 2,183
4 votes
Accepted

Open source tools to create quantized-mesh tiles for Cesium?

My currently preferred solution is Cesium Terrain Builder Docker. It is an extended version of the Cesium Terrain Builder with support for quantized-mesh-1.0 and can be easily run using Docker. ...
Karsten D.'s user avatar
4 votes

Viewing a geojson as 3D in cesium

The accepted answer is wrong. Here is the correct example: <div id="cesiumContainer"></div> <script> var viewer = new Cesium.Viewer('cesiumContainer'); var dataSource = ...
Zoran Petrović's user avatar
4 votes
Accepted

Remove terrainProvider from scene (ol3-cesium)

use the following function to toggle the terain function toggleTerrain(){ var scene = ol3d.getCesiumScene(); var terrainProvider; if (scene.terrainProvider._url){ //add a ...
pavlos's user avatar
  • 3,538
4 votes
Accepted

Cesium - Camera.computeViewRectangle to get current view bounds

You've got a couple issues in your code. On the first line, Rectangle.fromDegrees needs 4 input parameters, not 2. Next, computeViewRectangle is not a static function, you have to call it on a real ...
emackey's user avatar
  • 1,456
4 votes
Accepted

Converting Entity to GeoJSON with Cesium

Here you have a solution to export to json and for export it to kml. Everything is obtained from this official thread of Cesium. They are links that talk about the question and there isn't method to ...
Fran Raga's user avatar
  • 7,858
3 votes
Accepted

Cesium load geometry as GeoJSON

The z value in GeoJSON refers to the Height above the ground, so it is not a 3D file, you can store the polygon heights as attributes so that your properties are: "id", "gmlid", "parent_is", "...
baloola's user avatar
  • 131
3 votes
Accepted

Getting tiles rendered by Cesium?

Cesium doesn't compute this exactly. Cesium computes a Bounding Sphere for each tile, which provides a rapid approximation answer as to whether the tile is close enough to the view volume that there'...
emackey's user avatar
  • 1,456
3 votes

Cesiumjs 1.32 and ArcGIS 10.2 - ArcGisImageServerTerrainProvider is being deprecated - how to provide terrain data

Here's the issue where it was decided to deprecate ArcGisImageServerTerrainProvider. The reasons given (by one of Cesium's core terrain/imagery developers) are quoted here: We probably should have ...
emackey's user avatar
  • 1,456
3 votes
Accepted

OpenLayers 3 / Cesium polygon projection issue

What defines which projection is a polygon based upon, and therefore which projection should apply to it? For these vertices, are the right polygons the left or the right ones? That depends on ...
mkennedy's user avatar
  • 18.9k
3 votes
Accepted

Adding labels in cesium

Firstly, there's no entity.properties on a constructed Cesium.Entity. If you're looking for raw data that you injected into your CZML somehow, you'll have to grab that data out before turning the ...
emackey's user avatar
  • 1,456
3 votes
Accepted

Adding own logo to the bottom of the cesium application

var viewer = new Cesium.Viewer('cesiumContainer'); var credit = new Cesium.Credit('Title', '../images/facility.gif', 'http://www.cesiumjs.org'); viewer.scene.frameState.creditDisplay.addDefaultCredit(...
User123's user avatar
  • 2,986
3 votes
Accepted

Cesium and Geoserver SRS Optimization

Would my Cesium program would run faster if I converted my geometry column to 4326 in my postgis table so geoserver doesn't have to do the conversion? So your question is would your Cesium program ...
Evan Carroll's user avatar
  • 7,091
3 votes

Cesium vs WebGL Earth JS

Disclaimer, I'm a Cesium contributor and I haven't worked directly with WebGL Earth. As mentioned in the documentation, all of WebGL Earth's rendering is handled by Cesium under the hood. From their ...
emackey's user avatar
  • 1,456
3 votes
Accepted

WGS84 to MSL and opposite

I think there is a problem with the way you are thinking about the whole thing. To sum up: You use Cesium points which are from a Digital Elevation Model. Those points are expressed in WGS84 and the ...
Hulecom's user avatar
  • 326
3 votes
Accepted

My 3D polygons are being drawn below terrain

Found the solution here and here. var promise = Cesium.GeoJsonDataSource.load('/resources/buildings.json'); promise.then(function(dataSource) { viewer.dataSources.add( dataSource ); viewer....
Magno C's user avatar
  • 2,150
3 votes
Accepted

Styling GeoJSON by Attributes with Cesium

I figured it out! I was on the right track with my most recent edit. I was using '===' when I should have been using '=='. Here is my final code that got me the result I wanted. If anyone has any ...
ram_nl's user avatar
  • 179
3 votes

Cesium on a standalone local network

Cesium offers an Offline Demo that shows how to turn off the things that talk to external networks by default. var viewer = new Cesium.Viewer("cesiumContainer", { imageryProvider: new ...
emackey's user avatar
  • 1,456
2 votes

Open source tools to create quantized-mesh tiles for Cesium?

Cesium supports two terrain formats: Quantized-Mesh HeightMap For (Quantized-Mesh) you can try @juls comment. But for (HeightMap) you can try this blog post: Creating 3D terrains with Cesium
Ahmed GIS's user avatar
  • 420
2 votes
Accepted

Globe not displaying in my cesium application

The default map provider in Cesium is Bing Maps. To keep the default you will need a key from Bing. Here is what you need to add one line above the Cesium.Viewer: Cesium.BingMapsApi.defaultKey = '...
Reuben Reyes's user avatar
2 votes

How to use gdal2tiles on a custom tiff image recieved from providers to generate tiles

I suppose that your image is some of the the 4-band products by Airbus DS: http://www.intelligence-airbusds.com/en/4951-which-spectral-mode-do-i-choose Gdal2tiles is made for splitting common, ...
user30184's user avatar
  • 66.8k
2 votes

Rendering polygons outside latitudes [85,-85] in OpenLayers 3

Latitudes beyond +/- 85.06 degrees cannot be rendered using Web Mercator (EPSG:3857) as projection, which is the default. Just configure your map's view with a projection like EPSG:4326, and you will ...
ahocevar's user avatar
  • 3,073
2 votes

OpenLayers3 + Cesium add 3D Models

var map3d = new olcs.OLCesium({map: map}); var scene = map3d.getCesiumScene(); var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame( Cesium.Cartesian3.fromDegrees(24.823608, 35.234403, ...
Apostolis Marios Trampas's user avatar
2 votes

OpenLayers3 + Cesium add 3D Models

Yes, Cesium has support for 3D models. It uses the glTF file format to describe the models. At its simplest, the code looks like this: var viewer = new Cesium.Viewer('cesiumContainer'); var entity ...
emackey's user avatar
  • 1,456
2 votes
Accepted

Line Layer seems to be floating and shifted after adding terrain effect in Cesium

I updated the code to query for terrain heights and place the roads on terrain. There's a little fudge factor, the roads are placed 1 meter above the terrain to try to keep them from intersecting the ...
emackey's user avatar
  • 1,456

Only top scored, non community-wiki answers of a minimum length are eligible