Export point/center altitude/coordinates as props
This commit is contained in:
parent
2ddf34822b
commit
115d0893f4
|
@ -54,6 +54,7 @@ function convertPoint(cgPoint, projection, featureProps) {
|
|||
},
|
||||
properties: {
|
||||
...featureProps,
|
||||
landxmlAltitude: pointCoords[2],
|
||||
}
|
||||
};
|
||||
}
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue