Questions tagged [cesium]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Adding Models dynamically to fit the polygons size Cesium JS

I am trying to add 3D glb models to fit the parcel/geom size of the polygon. What i wish to do is that the model should sit within the boundary of the polygon and fit to the polygon size. I have a ...
0
votes
0answers
17 views

Draw a line in Cesium?

Is it possible to draw a line in Cesium with only the following parameters: Start point Lat/Long Start point altitude Line course Line Slope Line length I am trying to depict an approach path for an ...
4
votes
1answer
23 views

Plotting great circle lines in Cesium (just getting started)?

How does one plot Great circle lines in Cesium (3D, not 2D) using the WGS84 ellipsoid? I found something like this in another thread but I'm having trouble applying it to my application (simply ...
1
vote
1answer
21 views

Cesium projection system

I am using the following code var earthPosition = viewer.scene.pickPosition(event.position); the earthPosition object is as follows Cartesian3 :{ x: -2356447.208926279 y: -3743919.310632037 z: ...
3
votes
2answers
74 views

Using GeoWebCache as offline layer server?

I'm trying to use a Geoserver external WMS service in a offline environment. First I put my own geoserver online and configure a WMS store pointig to the desired source. Next I publish the desired ...
-2
votes
0answers
37 views

Saving or exporting entities to GeoJSON? [duplicate]

How can I do export all entities to GeoJSON to load them again later? I need to save the map state.
0
votes
0answers
20 views

Interpolating polyline in Cesium?

I have a line on map ( actualy is a polyline ) and need to move the camera or an entity model along it. The examples I've seen uses only path with czml but I need something more simple like divide ...
1
vote
0answers
23 views

My point cloud orientation is very wrong

I'm trying to load a cloud point using Cesium and Entwine. This is my code until now: First I convert a LAS file to EPT using this tutorial but need to convert projection to EPSG:4978. entwine ...
0
votes
0answers
22 views

Displaying rtmp live stream video in Cesium?

I would like to display an rtmp stream video in Cesium. I created an entity and used the <video> element as its material. When I use video stored locally (in .mp4 format) it worked fine, but ...
1
vote
1answer
44 views

My 3D polygons are being drawn below terrain

I'm importing a JSON file with polygons but I can't put them at the terrain ground level. They insist to be below the terrain. I've created my own terrain server using DEM SRTM and the docker tumgis/...
3
votes
1answer
156 views

Converting Entity to GeoJSON with Cesium

I know there is a way to load entities from a GeoJSON using GeoJsonDataSource but is there any way to do the opposite: get any entity as a GeoJSON representation? My goal is to use Turf.JS with ...
0
votes
0answers
56 views

Calculate the area of a polygon with Cesium

I'm trying to build a tool to simply calculate an area using Cesium. My first try and best bet is this code: function measureArea() { var tooltip = document.getElementById("ToolTip"); var ...
3
votes
1answer
54 views

Drawing camera lines until frustum rectangle using Cesium?

I'm trying to draw a nice polygon like this to create my own sensor since we must to pay to have one from Cesium. My goal is to make realtime viewshed analysis. For now I'm just making some tests. I ...
0
votes
0answers
30 views

GeoJSON Polygons floating over the ground when extruded

I'm loading a GeoJSON from a file. When I use it as plain polygons, it fits on the ground perfectly (well, just over the MWS layer from same source that draw same polygons), but when I extrude the ...
1
vote
0answers
32 views

How to draw a Polyline using a Cartesian array?

I need to draw a polyline using the mouse click. All examples I've found only show the polyline positions using a Cesium.Cartesian3.fromDegreesArray: var glowingLine = viewer.entities.add({ name ...
1
vote
0answers
33 views

Getting real north direction or real heading?

I try to get the north direction in a Cesium globe but it seems to always point to the viewer perspective. Follow the compass instrument on top of the map: This image I'm pointing (correctly?) to ...
1
vote
2answers
22 views

How can I get back my Entity from a Primitive and change its color?

I put an Entity (Rectangle) on the map: var greenRectangle = viewer.entities.add({ name : 'The Area', rectangle : { coordinates : rectangleSelector, material : Cesium.Color....
0
votes
1answer
36 views

how to create a city map

I would like to create a map of a small zone in Cesium. It would be a 3d map, with some building appearing with real size like this => https://cesiumjs.org/NewYork/ I have searched about how to do ...
3
votes
1answer
130 views

Drawing polygon using mouse click in Cesium?

I need to draw a polygon dynamically using my mouse. I can do this very easy in OpenLayers but I'm very new in Cesium and can't find any tutorials to do it. Many examples only show how to create a ...
0
votes
1answer
80 views

Cesium and KML altitude

I have the following KML file which is a cube: </Placemark> <Style id="3Dobject"> <PolyStyle> <color>7fff5500</color> <outline>1</outline&...
0
votes
0answers
21 views

Converting Cesium3DTileset into LAS or LAZ files

I got the json file and five .b3dm model files from this SandCastle example: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=3D%20Tiles%20Adjust%20Height.html I want to convert them into .LAS ...
0
votes
0answers
37 views

How to obtain value from input tag in '3D Globe Panel for Grafana' plugin

I am attempting to slightly modify a Grafana plugin that is located here: https://github.com/satellogic/grafana-3d-globe-panel In essence, I need to create some additional fields in the editor.html ...
2
votes
0answers
45 views

WGS84 to MSL and opposite

I am using Cesium to create point in a map. The point will be then flyable with a drone. I have the following problem, 1) The user set a point altitude to 20 meters in a 2D flat map. 2) The point ...
0
votes
0answers
120 views

How to convert Lat, Lon, Alt to ECEF and EPSG 4979?

I am programmatically generating data to use in Cesium's 3D Tile System. The data I have is in (Latitude, Longitude, Altitude) format. To display the data in Cesium, I have to first define a region to ...
1
vote
0answers
55 views

What would cause a Cesium 3D-Tiles tileset to not even request it's content?

I am generating an I3DM through Python. I know that the I3DM is probably ok, since the 3d-tiles-tools allow me to extract the binary GLTF file from it. However, when I go to render the tileset in ...
0
votes
1answer
35 views

Understanding gap in Cesiumjs bar chart?

I use Cesiumjs to create a bar chart. I don't understand why there is a gap in the bar? Code Link var viewer = new Cesium.Viewer('cesiumContainer'); viewer.scene.globe....
1
vote
1answer
28 views

Attach the bar's bottom to a location in 3D Cesium

I have the code below on web site cesiumjs. Is there any way that I can fix the bar's bottom at the location (37.786805,-122.45475) on the Earth's surface? The bar here looks like its bottom moves ...
2
votes
1answer
127 views

Using “Show” property in Cesium to turn on and off layers doesn't reflect on viewer

I am visualizing a geoJSON datasource in Cesium. I have tied it to a checkbox to modify the "show" property in order to turn it on and off after it is added to the viewer (not adding/removing the ...
2
votes
0answers
112 views

Drawing 3D flight path in Cesium?

I've been trying to draw 3D flight path in Cesium without any success. I followed the answer from Drawing flying/moving line on Cesium? However, this only renders a segment of flight path floating in ...
2
votes
1answer
223 views

I can't see my WMS layer on Cesium Globe scene

After insert a WMS layer in my Cesium, I can see in my browser that the images are comming from Geoserver but they are not visible in the globe. Here is the code ( commented lines are because I'm ...
1
vote
1answer
194 views

Load data from URL to update Billboard position Cesium

I am trying to update the position of a billboard every second in Cesium. The issue is I cannot pass the updating points to the billboard coordinates. I am using jQuery to load the data. This is what ...
2
votes
0answers
127 views

Conversion of Fbx or Obj to Cesium Tiling [closed]

I have a an OBJ File and a FBX File of very large size (OBJ = 25GB & FBX = 6GB) I'm looking for a way to convert either of them into Cesium Tile Format. I have tried using Pix4D software which is ...
4
votes
0answers
175 views

Can you use WFS services in a front-end Cesium app?

I am using Web Map Services (WMS) in Cesium Apps .WebMapTileServiceImageryProvider .WebMapServiceImageryProvider However I cannot find any Cesium official reference to WFS or WFS-T services which I ...
0
votes
0answers
36 views

Adding 3D GML file in OpenLayers

I have a GML file which has Z values associated. Is there a sample to show this GML file with 3D in OpenLayers?
1
vote
0answers
157 views

Cannot access Terrain Server for Cesium

I'm trying to follow a series of tutorials: visualizing-terrains-with-cesium-ii visualizing-terrains-with-cesium Some other useful posts here: Unable to serve Cesium Terrain files error-in-...
1
vote
0answers
303 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
1answer
284 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
608 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
111 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
92 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
103 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. ...
2
votes
1answer
511 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
321 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', { ...
3
votes
1answer
503 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
396 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,...
3
votes
0answers
184 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
635 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
216 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 ...
5
votes
1answer
2k 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 ?
2
votes
1answer
2k 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 ...