|
|
@@ -18,6 +18,8 @@
|
|
|
<xsl:param name="joins2ways_z_ID_Way.xml" select="'joins2ways_z_ID_Way.xml'"/>
|
|
|
<xsl:variable name="joins2ways_z_ID_Way" select="doc($joins2ways_z_ID_Way.xml)"/>
|
|
|
|
|
|
+ <xsl:param name="edge_joins_filled_paths" select="'edge_joins_filled_paths'"/> <!-- katalog do zapisywania sciezek -->
|
|
|
+
|
|
|
<xsl:param name="debug" /> <!-- set 1 to debug -->
|
|
|
|
|
|
<xsl:output indent="yes"/>
|
|
|
@@ -180,7 +182,7 @@
|
|
|
<!--<asText_XMl>
|
|
|
<xsl:copy-of select="$LineString"/>
|
|
|
</asText_XMl>-->
|
|
|
- <xsl:result-document href="edge_joins_filled_paths/edge_joins_filled_paths.{$ID_Way}.xml">
|
|
|
+ <xsl:result-document href="{$edge_joins_filled_paths}/edge_joins_filled_paths.{$ID_Way}.xml">
|
|
|
<edge_joins_filled_paths_xml>
|
|
|
<xsl:attribute name="id" select="$ID_Way"/>
|
|
|
<xsl:attribute name="Points_cnt" select="count($LineString/LineString/Points)"/>
|
|
|
@@ -235,12 +237,23 @@
|
|
|
|
|
|
<xsl:variable name="X" select="@Way_X2"/>
|
|
|
<xsl:variable name="Y" select="@Way_Y2"/>
|
|
|
+
|
|
|
+ <xsl:for-each select="$ways2joins/ways2joins/item[@id= current()/@id]/item"> <!-- musi byc wczesniej bo atrybut sie nie doda drugi raz-->
|
|
|
+ <xsl:for-each select="$joins_asText_xml/joins_asText_xml/item[@id= current()/text()]/bp:Path_Point">
|
|
|
+ <xsl:if test="@X=$X and @Y=$Y">
|
|
|
+ <xsl:variable name="ID_Join" select="parent::node()/@id"/>
|
|
|
+ <xsl:attribute name="ID_Join" select="$ID_Join"/>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+
|
|
|
+
|
|
|
<xsl:for-each select="$ways2joins/ways2joins/item[@id= current()/@id]/item">
|
|
|
<xsl:for-each select="$joins_asText_xml/joins_asText_xml/item[@id= current()/text()]/bp:Path_Point">
|
|
|
<xsl:if test="@X=$X and @Y=$Y">
|
|
|
|
|
|
<xsl:variable name="ID_Join" select="parent::node()/@id"/>
|
|
|
- <xsl:attribute name="ID_Join" select="$ID_Join"/>
|
|
|
+ <!--<xsl:attribute name="ID_Join" select="$ID_Join"/>-->
|
|
|
<!-- punkty podpiete -->
|
|
|
<xsl:copy-of select="$joins2ways_z_ID_Way/joins2ways_z_ID_Way/item[@id=$ID_Join]/Points"/>
|
|
|
<!-- wyszukanie drog wychodzacych innych niz nasza z punktu -->
|