Skip to content

Commit

Permalink
update cesium App
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay0000 committed Oct 7, 2022
1 parent a750d2f commit 02d6fd5
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
23 changes: 21 additions & 2 deletions LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Copyright 2017-2022 Cesium GS, Inc.

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -178,15 +180,15 @@
APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2017 Analytical Graphics, Inc. and Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -199,3 +201,20 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Third-Party Code
================

This project includes the following third-party code.

### Cesium

http://cesiumjs.org/

Copyright 2011-2022 Cesium Contributors

> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Run the application using the following command from terminal:
python bin/eosimapp.py
```

CesiumJs is used for producing 3D animations. Please see the 'Cesium App' for details on updating access token and the link to the Cesium script.
### Troubleshooting
In some cases, *runtime* errors involving the numpy package such as the one below may ensue:
```
Expand Down Expand Up @@ -60,7 +61,7 @@ export BROWSER="/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"
```

## Cesium App
The Cesium JavaScript app is based on the showcased example of Cesium features in the *cesium-workshop* repository. It is contained in the `.\cesium_app\` folder.
The Cesium JavaScript app is based on the showcased example of Cesium features in the [cesium-workshop repository](https://github.com/CesiumGS/cesium-workshop). It is contained in the `.\cesium_app\` folder.

The original `index.html` file has been modified, while the original cesium-workshop `index.html` file has been retained under the name
`workshop_index.html`.
Expand All @@ -75,6 +76,8 @@ The `simple.czml` file in `cesium_app/Source/SampleData/` is a new addition whic
**Note:** The cesium-app needs to be updated each time a new version is released by updating the `<script src=>` and the `<link href=>`
tags in the 'cesium_app/index.html` file.

**Note:** A access token must be specified in the `eosimApp.js` file. A free token can be obtained by registering at https://cesium.com

- [ ] TODO: Add facility to input user Access-token. Current version relies on the default Cesium token.

## Documentation
Expand Down
8 changes: 8 additions & 0 deletions ThirdParty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"name": "CesiumJS",
"license": ["Apache-2.0"],
"version": "1.93",
"url": "https://github.com/CesiumGS/cesium"
}
]
4 changes: 2 additions & 2 deletions cesium_app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Earth Observation Simulator</title>
<!-- The Cesium library. -->
<script src="https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.98/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.98/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<!-- Style our app. -->
<link rel="stylesheet" href="index.css" media="screen">
</head>
Expand Down
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "cesium-workshop",
"version": "1.5.0",
"description": "A simple JavaScript app with with Cesium, the open-source WebGL virtual globe and map engine.",
"homepage": "http://cesium.com",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/CesiumGS/cesium-workshop"
},
"devDependencies": {
"express": "^4.15",
"compression": "^1.6.2",
"request": "^2.79.0",
"yargs": "^8.0.1"
},
"engines": {
"node": "0.10.x"
}
}

0 comments on commit 02d6fd5

Please sign in to comment.