Skip to content

Commit

Permalink
refactor: review2
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Feb 7, 2024
1 parent 99079f2 commit 4dc1dbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Converter/Feature2Mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function featureToPoint(feature, options) {
coord.copy(localCoord)
.applyMatrix4(context.collection.matrixWorld);
if (coord.crs == 'EPSG:4978') {
// altitude convertion from geocentered to elevation (from ground)
coord.as('EPSG:4326', coord);
}

Expand Down Expand Up @@ -295,6 +296,7 @@ function featureToLine(feature, options) {
coord.copy(localCoord)
.applyMatrix4(context.collection.matrixWorld);
if (coord.crs == 'EPSG:4978') {
// altitude convertion from geocentered to elevation (from ground)
coord.as('EPSG:4326', coord);
}

Expand Down Expand Up @@ -367,6 +369,7 @@ function featureToPolygon(feature, options) {
coord.copy(localCoord)
.applyMatrix4(context.collection.matrixWorld);
if (coord.crs == 'EPSG:4978') {
// altitude convertion from geocentered to elevation (from ground)
coord.as('EPSG:4326', coord);
}

Expand Down Expand Up @@ -459,6 +462,7 @@ function featureToExtrudedPolygon(feature, options) {
coord.copy(localCoord)
.applyMatrix4(context.collection.matrixWorld);
if (coord.crs == 'EPSG:4978') {
// altitude convertion from geocentered to elevation (from ground)
coord.as('EPSG:4326', coord);
}

Expand Down

0 comments on commit 4dc1dbf

Please sign in to comment.