Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cesium]

Cesium is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

0
votes
0answers
37 views

GeoJSON: Rendering 3D building in Cesium via GeoServer

I am trying to make a 3D web application which should be able to render 3D building using Cesiumjs and loading data from PostgreSQL/PostGIS via GeoServer. I have MULTIPOLYGON Z and MULTIPOINTS Z for ...
0
votes
0answers
65 views

OL-Cesium - Example doesn't work

I would like to test the Ol-Cesium on my computer with this example: https://openlayers.org/ol-cesium/examples/oldfashioned.html I saved the olcs.css, olcesium.js and Cesium.js file into my webserver'...
2
votes
1answer
43 views

Drawing flying/moving line on Cesium?

How can I draw a flying/moving line on Cesium? I need a base line and a little point flying from one origin coordinates to a destination, and it needs to be animated. Cesium only provide basic ...
2
votes
0answers
36 views

Adding elevation from geoserver in Cesium.JS

I'm trying to view elevation data loaded from Geoserver on cesium globe. But the added elevation is viewed as 2D layer on the globe. My Code: import Viewer from "cesium/Source/Widgets/Viewer/Viewer"...
0
votes
0answers
41 views

ol-cesium throws exception when map.addLayer() is called with a vector layer

I have a strange behavior here using OpenLayers 5.2.0, Cesium, and the compatibility library ol-cesium. When I try to add a layer to the map, it throws an exception: TypeError: invalid 'instanceof' ...
1
vote
0answers
55 views

Point displacement between map (Cesium 3D) and raster (numpy array)

It is better to show than tell: On this image, the layer below the colorful shape is a trivial heat map in raster format. The colorful shape is the product of the skimage.graph.MCP_Geometric method. ...
1
vote
1answer
141 views

ECEF (EPSG:4978) glTF model doesn't show up in Cesium

The issue: I have a glTF (ver. 2.0) mesh (converted from ply to dae to glTF) with triangles coordinates in EPSG:4978 that doesn't show up in Cesium (ver. 1.42). The code: This is the code in the ...
1
vote
0answers
81 views

Use Natural Earth data set in Cesium

I have saved NaturalEarth data set in my desktop. Then I created a view as below. <script> var viewer = new Cesium.Viewer('cesiumContainer', { ...
0
votes
0answers
100 views

Configure Cesium to use QGIS offline

I want to configure cesium offline. I used dataset in NaturalEarthII in cesium and it works. Now I want to use a third party imagery server to use with cesium to work offline. For that I selected QGIS ...
0
votes
0answers
14 views

How can set “wait time” in CZML?

I have some position & time values describing movement of some vehicle. But in some time intervals vehicle wait in some position. I cant figure out how can i set waiting time.? In the example ...
3
votes
1answer
193 views

Alternatives to cesium terrain builder?

Looks like cesium-terrain-builder still have this issue and can't be used for large projects, so I wonder if there any alternatives to cesium-terrain-builder that can produce DEM tiles, can work with ...
1
vote
1answer
154 views

cesium quantized mesh generator

We are trying to develop pur own quantized mesh generator and visualize these terrain tiles on CesiumJS. As an input we use SRTM data that belongs to north parth of TURKEY. We generate contours on DEM,...
2
votes
0answers
87 views

How to synchronize map context (bounding box and zoom level) only with ol-cesium?

I posted this question on StackOverflow, but since there is no answer yet and as recommended in a comment, I'll ask it here too: I'm programming a page where a 2D and a 3D map are side-by-side as in ...
2
votes
1answer
280 views

Serving MBtiles for Cesium consumption

I am trying to create custom mbtile for Cesium consumption. I was able to create a mbtiles file in QGIS (zoom 0 to 16) using the QTiles plug-in. I tested the generated mbtiles file using mbviewer ...
1
vote
2answers
104 views

Entity (point) is not show in 3D mode of Cesium?

I've added an entity: var debris = cesiumViewer.entities.add({ position : { value : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883, 1000) , referenceFrame : Cesium.ReferenceFrame.FIXED ...
0
votes
0answers
62 views

Error in loading terrain files (.terrain)

I can't load the terrain file to the cesium. Now I will describe how I did it step by step. Hope this will help you find out where I went wrong. STEPS: Basically, I am following the tutorial in this ...
2
votes
1answer
803 views

What is difference between b3dm and gltf?

What is difference between b3dm and gltf ? When to use b3dm and when to prefer gltf over b3dm ?
1
vote
1answer
733 views

Cesium - Camera.computeViewRectangle to get current view bounds

I'm trying to get custom west-south-east-north bounds in Cesium's HelloWorld.html example, using Camera.computeViewRectangle, as suggested in this answer and its elaboration. Perhaps I misunderstand ...
0
votes
0answers
306 views

Automatically visualize SHP/KML and save an image

I have several thousand kml(or .shp, I have both for each trail) files that represent popular hiking trails throughout the world and I would like to save an image of each of those files rendered on ...
1
vote
0answers
178 views

Different basemaps in OL-Cesium side-by-side example

I have an application that has two maps that are linked: a normal map on the left and a globe on the right. The application is based on the example olcesium side-by-side example. I would like to use ...
0
votes
1answer
88 views

Setting Up Cesium in wamp64

I wanted to clarify with all of you whether I am setting up Cesium correctly in wampserver using Windows 7 64 bit. The Reason on why I want use wampserver is because I want to access data from the sql ...
0
votes
1answer
220 views

Change the scene mode in Cesium every interval

I have a task which I want to change the scene mode in Cesium every 1 mins. For example, let say be default the scene mode is 3D. after 1 mins, it will change to 2D mode and then anohter. I used ...
0
votes
1answer
219 views

Cesium CZML file for billboard with trailing line

I am looking for some tips on creating a CZML file that has uses a billboard to track a pedestrian walking over a terrain (and has a few custom properties for each time sample). About 18K samples. My ...
1
vote
0answers
96 views

The line is too high from the source to the destination point in Cesium

In Cesium, I created an animation line which travels from the source to the destination point. I created 3 entities which are source, destination point and animation line. When I run the html file, ...
0
votes
0answers
147 views

the line is not in a smooth curve in cesium when creating an animation line from the source to the destination [duplicate]

I have a task which I want to create an animation line from the source to the destination. I made 3 entities which are the source point, destination point and animation line. The source is created by ...
0
votes
1answer
158 views

Timeline and clockview model did not appear in cesiumjs

I have performed coding to the particular html file and it contain the code to access the wms layers from the Geoserver. However, when I run the html file, I am not able to see a clock view model and ...
3
votes
1answer
138 views

Error when pushing maps to baselayer picker in cesium?

I want to learn on how to create a baselayer picker and push maps to the baselayer picker in Cesium. The maps which I am going to push into the baselayer picker are accessed directly from the ...
3
votes
1answer
426 views

How to synchronize two maps?

I have my main map using projection EPSG:4326. Now I try to add a 3D view using ol-cesium. The goal is to create a side-by-side map that will show a flat map and a 3D view map (like this). But I can'...
1
vote
1answer
69 views

Adding a mouse / touch helper to Qgis2threejs plugin

Could the Qgis2threejs plugin have a mouse / touch helper window added to the output display? Saw this one on a Cesium display and thinking a similar helper on Qgis2threejs would make the tool more ...
1
vote
0answers
299 views

Generate 3D terrain Model at Runtime dynamically

I need to subset terrain in Cesium and make the output exportable in any of the common formats like WRL, OBJ etc. I have found one such example here. I have been searching the web for days but ...
1
vote
0answers
121 views

How to import .lyr files into Cesium?

I have an application that is able to import .lyr files into a Cesium map if they are bundled with all the required associated files in a zip file. The application treats the bundled files in the ....
0
votes
0answers
39 views

Adding WMS layer to geoserver so that I can access WMS layer to Cesium [duplicate]

I was asked to set up local map server so I setup the geoserver with apache tomcat but I searched various website on how to add WMS map data to geoserver so that I can access it on the Cesium globe. ...
3
votes
1answer
629 views

Cesium vs WebGL Earth JS

I read about WebGL Earth that it uses under the hood the great CesiumJS project for the rendering of the data. But exactly, for a developer, what are main differences between CesiumJS and WebGL Earth ...
2
votes
1answer
310 views

Cesium and Geoserver SRS Optimization

I have a Cesium program that makes WMS calls to geoserver layers loaded from a postgis table. From what I know Cesium can only use ESPG:4326, but my postgis table and thus geoserver layer are in ESPG:...
3
votes
1answer
291 views

How to use Cesiumjs without bingmap api key

Can I use cesiumjs without bingmap api key. I need to create a viewer which should use my own wms layer and osm. Further i want to use it as a platform for geospatial analysis on my spatial data. As i ...
3
votes
1answer
638 views

How to transform Linestring to Polyline?

I have GeoJson file with roads data as Linestrings. I want to load it in Cesium Sandcastle and make a custom line styles. In order to do so, lines have to be Polylines, not Linestrings. Is there a way ...
1
vote
1answer
727 views

Add a Label to the Polygon in Cesium

How can I add a label to the entity (ex. Polygon) at the specify location: This is how I tried to do it: (entity.polygon = true) static addLabel(entity) { entity.myLabel = new Cesium....
1
vote
0answers
80 views

Cesium, how to persist baselayer selected by user?

For Cesium, I would like to know how to persist the baselayer selected by user? For example, if a user selected "Mapbox Streets", how can we detect it was selected and persist it, so that the same "...
0
votes
2answers
176 views

panning cesium 2D map having asia as center without zooming

Using cesium it is possible to pan the 2D map having Asia as the center? Example as shown in the image.
1
vote
1answer
594 views

Dynamic GeoJSON on Cesium

I am trying to visualize live data that is updated every 5 seconds coming from a GeoJSON layer served by GeoServer. What is the best way to do this on Cesium? I saw that the GeoJsonDatasources in ...
1
vote
1answer
427 views

Ol-Cesium CZML Display

My goal is to add CZML to my ol-cesium application. I have created an application using the ol-cesium-v1.27 get started instructions: ol3d = new olcs.OLCesium({map: map}); // map is ...
1
vote
0answers
189 views

Find object through search box with Cesium Js

I am using Cesium and I would like to do a very simple operation. I would like to find an object which I created by typing its name in the search bar on the top right corner. Let's consider for ...
0
votes
0answers
767 views

Mapbox Vector Tiles in OL-Cesium

I'm trying to achieve a visualization similar to Mapbox GL JS (c.f. Mapbox Vector Tiles from Geoserver 2.11 in Mapbox GL JS), i.e. with pitch and bearing. I'm using the latest OL-Cesium version for ...
5
votes
1answer
658 views

OpenLayers 3 - Cesium (ol is not defined)

I am trying to get Cesium working in my OpenLayers 3 application. I am using ol3-cesium-v1.7 from: https://github.com/openlayers/ol-cesium/releases My application was using OpenLayers 3.82. I ...
1
vote
0answers
293 views

Cesium camera.setView to rectangle clipping the rectangle

My application allows users to add GeoJSON objects to a cesium map. If the GeoJSON has a bbox, it will set the view to the bounding box: const destination = Cesium.Rectangle.fromDegrees( bbox[0],...
1
vote
0answers
604 views

Import 3d buildings into Cesium

I have many buildings in CityGML format. Currently cesium does not parse citygml. I tried Geojson and KML formats as in Cesium official tutorials using Sandcastle. In geojson buildings can be seen ...
0
votes
0answers
385 views

Cesium how to adjust GeoJsonDataSource z-coordinate value

I tried adding the geojson to the scene using var dataSource = Cesium.GeoJsonDataSource.load('../Scene/museum/shpfile/yxl.geojson',{ fill: Cesium.Color.PINK.withAlpha(0.5), clampToGround: ...
2
votes
1answer
2k views

Cesium load geometry as GeoJSON

I am trying to add a building geometry as GeoJSON to Cesium virtual globe. But the 3d building geometry is seen 2D polygon. Here is a picture from GeoJSON file and Cesium. As can be seen GeoJSON file ...
1
vote
1answer
435 views

Cesium : Primitive geometry hides label

I was trying to add a label and a primitive over the same area like so: var viewer = new Cesium.Viewer('cesiumContainer'); var scene = viewer.scene; var instance = new Cesium.GeometryInstance({ ...
1
vote
1answer
502 views

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

I tried to connect CesiumJS to ArcGIS by using ArcGisImageServerTerrainProvider. This works OK if I have a map in simple format BUT: ArcGIS 10 now supplies data in LERC compression and Cesium can't ...