Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cesium-script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🐍 Python packages 📦
cesium-script
Commits
77405bc9
Commit
77405bc9
authored
1 year ago
by
Rafael Andres
Browse files
Options
Downloads
Patches
Plain Diff
SHT-476
(UC42)[cesium-viewer] Remote scene and data loading - README and documentation
parent
62756f8a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-2
23 additions, 2 deletions
README.md
with
23 additions
and
2 deletions
README.md
+
23
−
2
View file @
77405bc9
...
...
@@ -223,7 +223,7 @@ dump_file(features, 'flyby_janus.geojson')
print
(
'
done
'
)
```
##### Embedded Cesium Viewer
##### Embedded Cesium Viewer
- Display on-the-fly generated GEOJSON data
```
python
...
...
@@ -235,7 +235,7 @@ from geojson import FeatureCollection
from
geojson
import
Feature
,
Point
,
LineString
,
Polygon
body
=
'
ganymede
'
cesium_app_url
=
'
http://
10.35.116.222:90
'
cesium_app_url
=
'
http
s
://
juicesoc.esac.esa.int
'
features
=
[]
...
...
@@ -257,7 +257,28 @@ viewer_url = send_geojson_content(body, geojson.dumps(feature_collection), cesiu
IPython
.
display
.
IFrame
(
viewer_url
,
width
=
800
,
height
=
600
)
```
##### Embedded Cesium Viewer - Display on-the-fly generated CZML data
```
python
import
IPython
from
cesium_script.jupyter.connector
import
send_czml_content
from
cesium_script.czml.scene
import
generate_czml
import
spiceypy
as
sp
body
=
'
europa
'
cesium_app_url
=
'
https://juicesoc.esac.esa.int
'
sp
.
kclear
()
metakernel
=
'
juice_crema_5_1_150lb_23_1_v423_20230309_001.tm
'
sp
.
furnsh
(
metakernel
)
czml
=
generate_czml
(
'
2032-07-02T14:22:25Z
'
,
'
2032-07-02T16:22:25Z
'
,
60
,
'
Europa
'
)
viewer_url
=
send_czml_content
(
body
,
czml
.
dumps
(),
cesium_app_url
)
IPython
.
display
.
IFrame
(
viewer_url
,
width
=
1000
,
height
=
900
)
```
```
### Checking the results
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment