Cesium Cloud Service

foreword

All industries know that cloud is the future or the current trend, but Google is the only one that truly provides geographic information cloud services. However, today I actually found that Cesium provides cloud services. You are not mistaken, it was the open source 3D Render frame. This article briefly introduces it.

1. Cesium ion

Cesium is an excellent open source 3D map rendering engine, there is no doubt about this, but Cesium sent me an email a few days ago, and I have been too busy to take care of it. I opened it today and took a look: Oh, this guy has A framework turned into a cloud service provider!

The implementation method is through this ion, while keeping its original rendering engine unchanged, it provides 5G storage space for each user, users can upload their own data (image or 3D data), Cesium will use this data After being cut and stored in the space, users can share and recall this data in an extremely simple way. Cesium also provides several default imagery data and 1 surface data for each user. See ( https://cesium.com/ion/info/welcome ) for details.

The front-end calling method is basically unchanged (upgrade Cesium to the latest version first), and it is also very convenient to call cloud data, as follows:


viewer.imageryLayers.addImageryProvider(
    new Cesium.IonImageryProvider({ assetId: 2 })
);

That is, you only need to change the assetId number. Of course, you need to create a Cesium account first, get the Access Token, and add it at the beginning of js:

Cesium.Ion.defaultAccessToken = 'your/ion/access/token';

2. Inspiration

This thing doesn't seem so magical, but I personally think it provides some inspiration for us to build a spatial data cloud .

The previous data center (space) construction plan was also mainly based on data, but we did not sort out the relationship between data and services. Either use tiles as a service to provide tile api to the outside world, so that others can call tile data through this rule. Neither of the above two methods abstracts data into convenient services, so the concept of data cloud is just a data storage warehouse, which has no essential change compared to the traditional method, but only increases storage capacity and security. And Cesium ion encapsulates the tile data, we no longer need to care about how the underlying tiles are formed, and as a user, you don't need to know how the data is processed, just upload the data, and the system will automatically return a number after processing. , users can use this data everywhere with this number, which is a real data cloud.

3. Summary

This article briefly introduces Cesium ion, and briefly analyzes its enlightenment for building spatial data cloud.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325682702&siteId=291194637