Browse Source

no terminate - blad drog joins 6440 nie nalezy do prawidlowej drogi 943 tylko do 582

a.binder 9 years ago
parent
commit
2e9c65c090

+ 4 - 4
SE/dev/php-cli/edge_joins_filled_paths_make.xsl

@@ -242,7 +242,7 @@
                             <xsl:attribute name="len" select="@len"/>
                             <xsl:attribute name="len" select="@len"/>
                             <xsl:if test="$debug">
                             <xsl:if test="$debug">
                                 <xsl:message>Try to say @Way_X1:<xsl:value-of select="@Way_X1"/>; @Way_X2:<xsl:value-of select="@Way_X2"/>; $Cur_X1:<xsl:value-of select="$Cur_X1"/>; </xsl:message>
                                 <xsl:message>Try to say @Way_X1:<xsl:value-of select="@Way_X1"/>; @Way_X2:<xsl:value-of select="@Way_X2"/>; $Cur_X1:<xsl:value-of select="$Cur_X1"/>; </xsl:message>
-                                <xsl:message>PlaceWay: 1=1;2=2  count()=<xsl:value-of select="count(.)"/>; lenX:<xsl:value-of select=" round(abs(number(@Way_X1) - number($Cur_X1)) * 1000)"/>; zerowa droga dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>;</xsl:message>
+                                <xsl:message>PlaceWay: 1=1;2=2  count()=<xsl:value-of select="count(.)"/>; lenX:<xsl:value-of select=" round(abs(number(@Way_X1) - number($Cur_X1)) * 1000)"/>; zerowa droga dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>;$not_id_prev=<xsl:value-of select="$not_id_prev"/>;</xsl:message>
                             </xsl:if>
                             </xsl:if>
                             <xsl:attribute name="not_id_prev" select="$not_id"/>
                             <xsl:attribute name="not_id_prev" select="$not_id"/>
                             <xsl:variable name="X" select="@Way_X2"/>
                             <xsl:variable name="X" select="@Way_X2"/>
@@ -294,7 +294,7 @@
                             </xsl:if>-->
                             </xsl:if>-->
                                     <xsl:if test="$debug">
                                     <xsl:if test="$debug">
                                         <xsl:message>Try to say @Way_X1:<xsl:value-of select="@Way_X1"/>; @Way_X2:<xsl:value-of select="@Way_X2"/>; $Cur_X1:<xsl:value-of select="$Cur_X1"/>; </xsl:message>
                                         <xsl:message>Try to say @Way_X1:<xsl:value-of select="@Way_X1"/>; @Way_X2:<xsl:value-of select="@Way_X2"/>; $Cur_X1:<xsl:value-of select="$Cur_X1"/>; </xsl:message>
-                                        <xsl:message>PlaceWay:  1=1 count()=<xsl:value-of select="count(.)"/>; number(@Way_X2)<xsl:value-of select="@Way_X2"/>  lenX:<xsl:value-of select=" round(number(@Way_X2) - number($Cur_X1) * 100) "/>; dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>;</xsl:message>
+                                        <xsl:message>PlaceWay:  1=1 count()=<xsl:value-of select="count(.)"/>; number(@Way_X2)<xsl:value-of select="@Way_X2"/>  lenX:<xsl:value-of select=" round(number(@Way_X2) - number($Cur_X1) * 100) "/>; dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>;$not_id_prev=<xsl:value-of select="$not_id_prev"/>;</xsl:message>
                                     </xsl:if>
                                     </xsl:if>
                                 </xsl:otherwise>
                                 </xsl:otherwise>
                             </xsl:choose>
                             </xsl:choose>
@@ -378,8 +378,8 @@
         <xsl:choose>
         <xsl:choose>
             <xsl:when test="$loop &gt; 100000">
             <xsl:when test="$loop &gt; 100000">
                 <loop_limit>
                 <loop_limit>
-                    <xsl:message terminate="yes">
-                        Loop limit dla PlaceWay: 1=2  dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>
+                    <xsl:message terminate="no">
+                       !!!!!!!!!!!!!!!! Loop limit dla PlaceWay: 1=2  dla $Cur_X1=<xsl:value-of select="$Cur_X1"/>; $Cur_Y1=<xsl:value-of select="$Cur_Y1"/> @id=<xsl:value-of select="@id"/>; $not_id=<xsl:value-of select="$not_id"/>
                     </xsl:message>
                     </xsl:message>
                 </loop_limit>
                 </loop_limit>
                 
                 

+ 9 - 0
SE/dev/php-cli/ways_as_Text_z_ID_xml.xsl

@@ -16,6 +16,11 @@
    <!-- <xsl:param name="ways2joins.xml"  select="'ways2joins.xml'"/>
    <!-- <xsl:param name="ways2joins.xml"  select="'ways2joins.xml'"/>
     <xsl:variable name="ways2joins" select="doc($ways2joins.xml)"/>
     <xsl:variable name="ways2joins" select="doc($ways2joins.xml)"/>
     -->
     -->
+    <!-- trzeba dorobic aby wskazac czy koniec drogi jest z tego samego WAYa /joinsa , 
+        czyli biore droge sprawdzam do jakiego jest joina, biore joina i sprawdzam do jakiego jest waya
+        , sprawdzam jakie inne waye sa z tym joinem , szukam 
+        
+    -->
     
     
     <xsl:output indent="yes"/>
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
     <xsl:strip-space elements="*"/>
@@ -46,4 +51,8 @@
         </xsl:variable>
         </xsl:variable>
         <xsl:apply-templates select="$asText"/>
         <xsl:apply-templates select="$asText"/>
     </xsl:template>
     </xsl:template>
+    
+    
+ 
+    
 </xsl:stylesheet>
 </xsl:stylesheet>