fix pettier

This commit is contained in:
mike-000
2020-06-17 16:59:56 +01:00
committed by GitHub
parent 1685913a55
commit 74b74e2478

View File

@@ -176,7 +176,10 @@ class Geometry extends BaseObject {
if (this.extentRevision_ != this.getRevision()) { if (this.extentRevision_ != this.getRevision()) {
this.extent_ = this.computeExtent(this.extent_); this.extent_ = this.computeExtent(this.extent_);
if ( if (
!containsExtent([-Infinity, -Infinity, Infinity, Infinity], this.extent_) !containsExtent(
[-Infinity, -Infinity, Infinity, Infinity],
this.extent_
)
) { ) {
this.extent_ = createEmpty(); this.extent_ = createEmpty();
} }