Class GetFeatureTestExtension

java.lang.Object
org.opengis.cite.wfs11.GetFeatureTestExtension

public class GetFeatureTestExtension extends Object
Extension functions for ctl scripts to retrieve informations which can not be retrieved by xslt/ctl.
  • Constructor Details

    • GetFeatureTestExtension

      public GetFeatureTestExtension()
  • Method Details

    • findFeatureTypeAndPropertyName

      public static Node findFeatureTypeAndPropertyName(Node wfsCapabilities) throws Exception
      Iterates about the feature types specified in the capabilities, for each feature type the schema document is requested (DescribeFeatureType). The features are requested and compared with the schema document. If a feature contains a value for a simple property (string, integer, double), this information is returned. The returned node looks like (if all informations could be found):
      
       <FeatureData>
         <FeatureType>
           <localName>AggregateGeoFeature</localName>
           <namespace>http://cite.opengeospatial.org/gmlsf</namespace>
         </FeatureType>
         <Property>
           <localName>doubleProperty</localName>
           <namespace>http://cite.opengeospatial.org/gmlsf</namespace>
         </Property>
         <value>2012.78</value>
       </FeatureData>
      
       
      Parameters:
      wfsCapabilities - the capabilities of the wfs, never null
      Returns:
      a tupel containing the value of a property specified by the feature type, the property and feature type in xml format (described above), may be null if no such tupel could be found
      Throws:
      Exception - if an error occurred