EPT: ticks->span. connormanning/entwine#151.
This commit is contained in:
parent
65f6eb19ce
commit
ea3f3b635c
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user