|
@@ -8,7 +8,7 @@
|
|
|
<xsl:output indent="yes"/>
|
|
<xsl:output indent="yes"/>
|
|
|
<xsl:strip-space elements="*"/>
|
|
<xsl:strip-space elements="*"/>
|
|
|
|
|
|
|
|
- <xsl:variable name="test"/>
|
|
|
|
|
|
|
+ <xsl:variable name="joins2ways_z_ID_Way" select="doc('joins2ways_z_ID_Way.xml')"/>
|
|
|
|
|
|
|
|
<!--//match edge_joins_filled_paths-->
|
|
<!--//match edge_joins_filled_paths-->
|
|
|
|
|
|
|
@@ -53,7 +53,11 @@
|
|
|
<xsl:template name="dumb_frequency">
|
|
<xsl:template name="dumb_frequency">
|
|
|
<xsl:param name="Count"/>
|
|
<xsl:param name="Count"/>
|
|
|
<xsl:param name="distance"/>
|
|
<xsl:param name="distance"/>
|
|
|
|
|
+ <xsl:param name="ID_Point_count"/>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
|
|
+ <xsl:when test="$ID_Point_count=0">
|
|
|
|
|
+ <xsl:value-of select="0"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
<!--<xsl:when test="$Count<2">
|
|
<!--<xsl:when test="$Count<2">
|
|
|
<xsl:value-of select="2"/>
|
|
<xsl:value-of select="2"/>
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
@@ -76,34 +80,33 @@
|
|
|
<xsl:value-of select="20"/>
|
|
<xsl:value-of select="20"/>
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="PE_candidates_dump">
|
|
<xsl:template name="PE_candidates_dump">
|
|
|
<xsl:param name="edge_paths_with_PE" required="yes"/>
|
|
<xsl:param name="edge_paths_with_PE" required="yes"/>
|
|
|
<xsl:param name="dumb_frequency" select="20"/>
|
|
<xsl:param name="dumb_frequency" select="20"/>
|
|
|
|
|
+ <xsl:param name="clients_xpoint_count"/> <!--Ile jest na trasie punktow klienckich -->
|
|
|
<!--<PE_candidates_dump>-->
|
|
<!--<PE_candidates_dump>-->
|
|
|
<xsl:attribute name="desc" select="'brakuje ominiecia punktow ways tylko do przylaczy i analizy dlugosci'"/>
|
|
<xsl:attribute name="desc" select="'brakuje ominiecia punktow ways tylko do przylaczy i analizy dlugosci'"/>
|
|
|
<xsl:for-each select="$edge_paths_with_PE/LINESTRING">
|
|
<xsl:for-each select="$edge_paths_with_PE/LINESTRING">
|
|
|
<LINESTRING>
|
|
<LINESTRING>
|
|
|
<xsl:variable name="Count" select="@Count"/>
|
|
<xsl:variable name="Count" select="@Count"/>
|
|
|
|
|
+ <xsl:variable name="ID_Point_count" select="@ID_Point_count"/>
|
|
|
<xsl:variable name="ID_Way" select="@ID_Way"/>
|
|
<xsl:variable name="ID_Way" select="@ID_Way"/>
|
|
|
<xsl:variable name="distance" select="@distance"/>
|
|
<xsl:variable name="distance" select="@distance"/>
|
|
|
<xsl:variable name="dumb_frequency">
|
|
<xsl:variable name="dumb_frequency">
|
|
|
<xsl:call-template name="dumb_frequency">
|
|
<xsl:call-template name="dumb_frequency">
|
|
|
<xsl:with-param name="Count" select="$Count"/>
|
|
<xsl:with-param name="Count" select="$Count"/>
|
|
|
|
|
+ <xsl:with-param name="ID_Point_count" select="$ID_Point_count"/>
|
|
|
<xsl:with-param name="distance" select="$distance"/>
|
|
<xsl:with-param name="distance" select="$distance"/>
|
|
|
</xsl:call-template>
|
|
</xsl:call-template>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:attribute name="ID_Way" select="$ID_Way"/>
|
|
<xsl:attribute name="ID_Way" select="$ID_Way"/>
|
|
|
<xsl:copy-of select="@*"/>
|
|
<xsl:copy-of select="@*"/>
|
|
|
-
|
|
|
|
|
<xsl:attribute name="dumb_frequency" select="$dumb_frequency"/>
|
|
<xsl:attribute name="dumb_frequency" select="$dumb_frequency"/>
|
|
|
-
|
|
|
|
|
<xsl:for-each select="bp:Path_Point">
|
|
<xsl:for-each select="bp:Path_Point">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
- <xsl:when test="@Pos mod $dumb_frequency = 0">
|
|
|
|
|
|
|
+ <xsl:when test="(@Pos mod $dumb_frequency = 0 ) and $dumb_frequency >0">
|
|
|
<xsl:copy-of select="."/>
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
@@ -119,6 +122,7 @@
|
|
|
<xsl:when test="asText">
|
|
<xsl:when test="asText">
|
|
|
<LINESTRING>
|
|
<LINESTRING>
|
|
|
<xsl:attribute name="ID_Way" select="@id"/>
|
|
<xsl:attribute name="ID_Way" select="@id"/>
|
|
|
|
|
+ <xsl:attribute name="ID_Point_count" select="count($joins2ways_z_ID_Way/joins2ways_z_ID_Way/item[@ID_Way=current()/@id and @ID_Point])"/>
|
|
|
<xsl:attribute name="distance" select="distance/text()"/>
|
|
<xsl:attribute name="distance" select="distance/text()"/>
|
|
|
<xsl:apply-templates/>
|
|
<xsl:apply-templates/>
|
|
|
</LINESTRING>
|
|
</LINESTRING>
|