[mapguide-commits] r5896 - trunk/MgDev/Web/src/schemareport

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jun 1 08:27:08 EDT 2011


Author: jng
Date: 2011-06-01 05:27:07 -0700 (Wed, 01 Jun 2011)
New Revision: 5896

Modified:
   trunk/MgDev/Web/src/schemareport/displayschema.php
   trunk/MgDev/Web/src/schemareport/displayschema.xsl
   trunk/MgDev/Web/src/schemareport/stringconstants.php
Log:
#1568: Show spatial context association beside the geometry property information. Patch provided by Zac Spitzer

Modified: trunk/MgDev/Web/src/schemareport/displayschema.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschema.php	2011-06-01 12:18:28 UTC (rev 5895)
+++ trunk/MgDev/Web/src/schemareport/displayschema.php	2011-06-01 12:27:07 UTC (rev 5896)
@@ -116,6 +116,7 @@
                 $proc->setParameter('', 'stringHasElevation', XslStrings::HasElevation);
                 $proc->setParameter('', 'stringNoGeometry', XslStrings::NoGeometry);
                 $proc->setParameter('', 'stringNoData', XslStrings::NoData);
+                $proc->setParameter('', 'stringSrsName', XslStrings::SrsName);
 
                 $html = $proc->transformToXML($xml_object);
 

Modified: trunk/MgDev/Web/src/schemareport/displayschema.xsl
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschema.xsl	2011-06-01 12:18:28 UTC (rev 5895)
+++ trunk/MgDev/Web/src/schemareport/displayschema.xsl	2011-06-01 12:27:07 UTC (rev 5896)
@@ -21,6 +21,7 @@
 <xsl:param name="stringHasElevation"/>
 <xsl:param name="stringNoGeometry"/>
 <xsl:param name="stringNoData"/>
+<xsl:param name="stringSrsName"/>
 
 
 <xsl:template match="/">
@@ -120,6 +121,7 @@
                                 <tr><td class="heading"><xsl:value-of select="$stringPropertyType"/></td></tr>
                                 <tr><td class="heading"><xsl:value-of select="$stringHasMeasures"/></td></tr>
                                 <tr><td class="heading"><xsl:value-of select="$stringHasElevation"/></td></tr>
+                                <tr><td class="heading"><xsl:value-of select="$stringSrsName"/></td></tr>
                                 </table>
                             </td>
                             <!--apply template to elements-->
@@ -182,6 +184,7 @@
                     <tr><td><xsl:value-of select="@fdo:geometricTypes"/></td></tr>
                     <tr><td><xsl:value-of select="@fdo:hasMeasure"/></td></tr>
                     <tr><td><xsl:value-of select="@fdo:hasElevation"/></td></tr>
+                    <tr><td><xsl:value-of select="@fdo:srsName"/></td></tr>
                     </table>
                 </td>
             </xsl:if>

Modified: trunk/MgDev/Web/src/schemareport/stringconstants.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/stringconstants.php	2011-06-01 12:18:28 UTC (rev 5895)
+++ trunk/MgDev/Web/src/schemareport/stringconstants.php	2011-06-01 12:27:07 UTC (rev 5896)
@@ -115,6 +115,7 @@
     const HasElevation = 'Has Elevation';
     const NoGeometry = 'No Geometry';
     const NoData = 'No Data';
+    const SrsName = 'Srs Name';
 }
 
 ?>



More information about the mapguide-commits mailing list