Coder Social home page Coder Social logo

tomleelive / 3dgisking-cesiumjs3dtileserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3dgisking/cesiumjs3dtileserver

0.0 0.0 0.0 91.24 MB

Home Page: https://cesiumgis.com/

License: MIT License

JavaScript 0.94% PHP 16.60% CSS 0.16% HTML 82.30%

3dgisking-cesiumjs3dtileserver's Introduction

3DTileServer

Sometimes we need to host 3dtile in our server. It can be implemented by simple node js express server. But you can notice that 3dtilset contains nested folders with thousands of small files.

It is critical if you plan to download and upload 3d tile.

One solution is to use sqlite format which Cesium introduce.

This is a simple 3dtile server based on sqlite format 3dtileset. Server is based on CodeIgniter-3.1.10

Important

1 First, You should make sqlite format 3dtileset.

  How to make sqlite 3d tileset?
  
  https://medium.com/@wugis1219/how-to-make-sqlite-database-from-cesium-3d-tile-file-system-9e22b94cd0f8

2 Then copy it and paste asset folder.

3 If your tileset have more deep level, then add routing rules in application/config/routes.php

4 You can remove index.php in tileset.json URL by using rewrite Rule

Example

var viewer = new Cesium.Viewer('cesiumContainer');

url = "http://localhost/3DTileServer/index.php/asset/11294/tileset.json";
//url = "http://localhost/3DTileServer/asset/11294/tileset.json";

var tileset = new Cesium.Cesium3DTileset({
  url: url
});

viewer.scene.primitives.add(tileset);
viewer.zoomTo(tileset);  

Hi, Enjoy my code.

I am finding a long term GIS project. This is my working experience. Feel free to get in touch to chat about partnership.

3dgisking-cesiumjs3dtileserver's People

Contributors

3dgisking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.