Export point/center altitude/coordinates as props

This commit is contained in:
wpetit 2021-01-25 16:55:20 +01:00
parent 2ddf34822b
commit 115d0893f4
2 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ function convertPoint(cgPoint, projection, featureProps) {
},
properties: {
...featureProps,
landxmlAltitude: pointCoords[2],
}
};
}

View File

@ -155,6 +155,10 @@ function convertStructs(pipeNetwork, projection, baseProps, opts) {
let center = [seq[1], seq[0], seq[2]];
center = proj4(projection, 'WGS84', center);
featureProps.landxmlCenterLongitude = center[0];
featureProps.landxmlCenterLatitude = center[1];
featureProps.landxmlCenterAltitude = center[2];
let geometry;
if (rectStructNode) {