From: jsimomaa Date: Mon, 22 Apr 2019 17:56:25 +0000 (+0300) Subject: Do not copy elevation to target but use existing elevation X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F2860%2F1;p=simantics%2Fdistrict.git Do not copy elevation to target but use existing elevation gitlab #43 APROS-15307 Change-Id: I3cbc97ec442d7dda453093b1dd370413339e5437 --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/contributions/PasteDistrictVertexHandler.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/contributions/PasteDistrictVertexHandler.java index 0ad64469..c9aa0f3c 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/contributions/PasteDistrictVertexHandler.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/contributions/PasteDistrictVertexHandler.java @@ -276,7 +276,7 @@ public class PasteDistrictVertexHandler { private static Resource attributeMappingToVertexAttribute(ReadGraph graph, DistrictNetworkResource DN, Resource attribute) throws DatabaseException { Resource attr = null; if (attribute.equals(DN.Mapping_VertexMapping_ElevationAttribute)) - attr = DN.Vertex_HasElevation; + attr = null; // ignore elevation as well else if (attribute.equals(DN.Mapping_VertexMapping_AddressAttribute)) attr = DN.Vertex_HasAddress; else if (attribute.equals(DN.Mapping_VertexMapping_DeltaPressureAttribute))