# Per point attributes in cesiumjs

**URL:** <https://community.cesium.com/t/per-point-attributes-in-cesiumjs/7795>\
**Category:** CesiumJS\
**Created:** [December 12, 2018, 6:02am UTC](https://community.cesium.com/t/per-point-attributes-in-cesiumjs/7795 "2018-12-12T06:02:04Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![leo.ferrer.2006](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@leo.ferrer.2006](https://community.cesium.com/u/leo.ferrer.2006)\
**Post date:** [April 8, 2019, 5:20pm UTC](https://community.cesium.com/t/per-point-attributes-in-cesiumjs/7795/8 "2019-04-08T17:20:15Z")

</div>

If you check the first part of your .pnts file (either with head or with your browser's dev tools) you can see something like: "pntsè,ì+X{"BATCH\_ID":{"byteOffset":..." which indicates that each point has a BATCH ID. Now if you look at the Batch Table of your file, (which in the case of this file that was made with the point-cloud-tiler binary is at the very end) you will find this string: '{"Classification":{"byteOffset":0,"componentType":"UNSIGNED\_BYTE","type":"SCALAR"}}'.

Unfortunately it does not seem like CesiumJS supports styleable properties that are defined via batches: [https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/PointCloud.js#L458](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/PointCloud.js#L458) so what is written above does not work for this type of files (which may or may not be your case).

---

_[View the full topic](https://community.cesium.com/t/per-point-attributes-in-cesiumjs/7795)._
