# Problems loading pnts-Files

**URL:** <https://community.cesium.com/t/problems-loading-pnts-files/6360>\
**Category:** CesiumJS\
**Created:** [December 12, 2017, 6:40pm UTC](https://community.cesium.com/t/problems-loading-pnts-files/6360 "2017-12-12T18:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [December 12, 2017, 6:40pm UTC](https://community.cesium.com/t/problems-loading-pnts-files/6360/1 "2017-12-12T18:40:09Z")

</div>

1. A concise explanation of the problem you're experiencing.

the pointcloud isn't loaded and displayed

I use a tomcat-app server . I see that the json-file is parsed but I don't see a call to the pnts-files. also the jprg-files are loaded.

There isn't any error message in tomcat/google chrome developer console.

in the saNADCASTLE THE DATA IS DISPLAYED

mimetype is set in the tomcat server

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

I use the identical code from the sandcastle 3d-tile photogrammetry and 3d-tilespoint-cloud in my app

var structureTileset2 = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url : ‘[https://beta.cesium.com/api/assets/1458?access\_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxYmJiNTAxOC1lOTg5LTQzN2EtODg1OC0zMWJjM2IxNGNlYmMiLCJpZCI6NDQsImFzc2V0cyI6WzE0NThdLCJpYXQiOjE0OTkyNjM4MjB9.1WKijRa-ILkmG6utrhDWX6rDgasjD7dZv-G5ZyCmkKg](https://beta.cesium.com/api/assets/1458?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxYmJiNTAxOC1lOTg5LTQzN2EtODg1OC0zMWJjM2IxNGNlYmMiLCJpZCI6NDQsImFzc2V0cyI6WzE0NThdLCJpYXQiOjE0OTkyNjM4MjB9.1WKijRa-ILkmG6utrhDWX6rDgasjD7dZv-G5ZyCmkKg)’  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}));  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;showStructure2 = true;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;structureTileset2.readyPromise.then(function() {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var boundingSphere = structureTileset2.boundingSphere;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.camera.viewBoundingSphere(boundingSphere, new Cesium.HeadingPitchRange(0.0, -0.5, boundingSphere.radius));  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}).otherwise(function(error) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw(error);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I would display the pointcloud data

4. The Cesium version you're using, your operating system and browser.  
1-40, Google Chrome

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [December 13, 2017, 2:04am UTC](https://community.cesium.com/t/problems-loading-pnts-files/6360/2 "2017-12-13T02:04:12Z")

</div>

Does the ready promise resolve?

I know that those files are served as gzipped but the browser should be responsible for decoding. You aren’t serving the tileset yourself, right?

Sorry… I’m not too familiar with tomcat.

---

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [December 13, 2017, 8:30am UTC](https://community.cesium.com/t/problems-loading-pnts-files/6360/3 "2017-12-13T08:30:37Z")

</div>

Hi Sean,

I tried both serving the test-data myself (from the Specs-Directory) and trying to load from your server (for the church-pointcloud example). Both doesn't work.

I wondered because the self-hosted sandcastle works. I used the  
CesiumViewer.js in the Apps/CesiumViewer Directory and put the above code-snippet in it and it doesn't work. Do I need any dependencies (require) for the pointcloud-data ?

Rüdiger

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [December 15, 2017, 3:34am UTC](https://community.cesium.com/t/problems-loading-pnts-files/6360/4 "2017-12-15T03:34:42Z")

</div>

No dependencies are required.

I tried running Cesium within a local tomcat server myself and didn’t have any problems loading the tileset. I downloaded Tomcat 8.5.24, the Cesium 1.40 release, and then edited Apps/Hello World.html with the code you pasted above.

I’m not really sure what to suggest - if the server isn’t hosted locally there may be some other issue I’m not aware of.
