This commit is contained in:
Connor Manning 2018-12-14 13:18:34 -06:00
parent 65f6eb19ce
commit ea3f3b635c
3 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
{
"bounds" :
"bounds" :
[
-7,
-1,
@ -8,7 +8,7 @@
9,
4
],
"boundsConforming" :
"boundsConforming" :
[
-5,
1,
@ -20,7 +20,7 @@
"dataType" : "binary",
"hierarchyType" : "json",
"points" : 341989,
"schema" :
"schema" :
[
{
"name" : "X",
@ -109,9 +109,9 @@
"type" : "unsigned"
}
],
"srs" :
"span" : 256,
"srs" :
{
},
"ticks" : 256,
"version" : "0.0.0"
}
}

View File

@ -1,5 +1,5 @@
{
"bounds" :
"bounds" :
[
-7,
-1,
@ -8,7 +8,7 @@
9,
4
],
"boundsConforming" :
"boundsConforming" :
[
-5,
1,
@ -20,7 +20,7 @@
"dataType" : "laszip",
"hierarchyType" : "json",
"points" : 341989,
"schema" :
"schema" :
[
{
"name" : "X",
@ -109,9 +109,9 @@
"type" : "unsigned"
}
],
"srs" :
"span" : 256,
"srs" :
{
},
"ticks" : 256,
"version" : "0.0.0"
}
}

View File

@ -42,7 +42,7 @@ export class PointCloudEptGeometry {
this.type = 'ept';
this.schema = schema;
this.ticks = info.ticks;
this.span = info.span;
this.boundingBox = U.toBox3(bounds);
this.tightBoundingBox = U.toBox3(boundsConforming);
this.offset = U.toVector3([0, 0, 0]);
@ -64,7 +64,7 @@ export class PointCloudEptGeometry {
this.pointAttributes = 'LAZ';
this.spacing =
(this.boundingBox.max.x - this.boundingBox.min.x) / this.ticks;
(this.boundingBox.max.x - this.boundingBox.min.x) / this.span;
let hierarchyType = info.hierarchyType || 'json';