|
|
@@ -12,6 +12,7 @@
|
|
|
<xsl:variable name="PE_candidates_dump" select="doc('edge_paths_with_PE.xml')"/>
|
|
|
<xsl:variable name="joins_asText" select="doc('joins_asText.xml')"/>
|
|
|
<xsl:variable name="edge_joins_filled_paths" select="doc('edge_joins_filled_paths.xml') "/>
|
|
|
+ <xsl:variable name="points2joins" select="doc('points2joins.xml')"/>
|
|
|
|
|
|
<!-- <joins_asText>
|
|
|
<item id="0">POINT (18.7909 51.701067999083)</item>-->
|
|
|
@@ -33,16 +34,20 @@
|
|
|
<!-- jedziemy po joins2ways_z_ID_Way, sprawdzamy czy jest dla niego PE_candidates_dump , jak tak, to szukamy jego PE i liczymy sciezke
|
|
|
lub probujemy rysowac zawsze od konca drogi-->
|
|
|
|
|
|
- <!-- trzeba sprawdzic czy join jest klientem - czy tylko PE! -->
|
|
|
|
|
|
<xsl:for-each select="item">
|
|
|
+ <xsl:variable name="ID_Way" select="@ID_Way"/>
|
|
|
+ <xsl:variable name="Joins" select="@id"/>
|
|
|
<xsl:choose>
|
|
|
+ <!-- trzeba sprawdzic czy join jest klientem - czy tylko PE! -->
|
|
|
+ <xsl:when test="not($points2joins/points2joins/item/text()=$Joins)">
|
|
|
+ <not_candidate><xsl:attribute name="descr" select="'this is probably join from way'"/></not_candidate>
|
|
|
+ </xsl:when>
|
|
|
<xsl:when test="$PE_candidates_dump/PE_candidates_dump/LINESTRING[@ID_Way=current()/@ID_Way]">
|
|
|
<cable_to_PE_to_be_calculated>
|
|
|
<xsl:attribute name="ID_Way" select="@ID_Way"/>
|
|
|
<xsl:attribute name="Joins" select="@id"/>
|
|
|
- <xsl:variable name="ID_Way" select="@ID_Way"/>
|
|
|
- <xsl:variable name="Joins" select="@id"/>
|
|
|
+
|
|
|
|
|
|
<!-- idziemy po drodze, -->
|
|
|
<xsl:variable name="Join_X" select="$joins_asText_Path_Point/joins_asText/item[@id=$Joins]/As_POINT_to_xml/@X"/>
|