com.supermap.services.providers.wfs.convert

Class WFSConverter

  • java.lang.Object
    • com.supermap.services.providers.wfs.convert.WFSConverter


  • public final class WFSConverter
    extends java.lang.Object
    

    WFS Basic Type Converter.

    Converts the basic types defined in the WFS implementation to the generic GIS object types for SuperMap iSever.

    • Constructor Summary

      Constructors 
      Constructor and Description
      WFSConverter() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.util.List<Feature> convert(FeatureCollection fc, FeatureIDMapping idMapping, java.util.Map<java.lang.String,java.lang.String> propertyNameToFieldName, java.lang.String[] fields)
      Convert the FeatureCollection the feature member set that defined in the WFS service implementation)object to the Feature object list.
      static DatasetVectorInfo convert(FeatureType featureType, java.lang.String datasourceName)
      Convert the FeatureType (element type) object into DatasetInfo (data set) object.
      static FieldType convert(PropertyType propertyType)
      Convert PropertyType (the feature attribute type defined in the WFS implementation) object to the FieldType object.
      static DatasourceInfo convert(WFSCapabilities capabilities)
      Convert the object of WFS service provides the ability to a data source object.
      static java.lang.String getTypeName(javax.xml.namespace.QName name) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WFSConverter

        public WFSConverter()
        
    • Method Detail

      • convert

        public static DatasetVectorInfo convert(FeatureType featureType,
                                java.lang.String datasourceName)
        

        Convert the FeatureType (element type) object into DatasetInfo (data set) object.

        Parameters:
        featureType - Source Feature class Object.
        datasourceName - The name of the data source to which the converted dataset object belongs.
        Returns:
        SuperMap iSever Generic dataset object.
      • getTypeName

        public static java.lang.String getTypeName(javax.xml.namespace.QName name)
        
      • convert

        public static DatasourceInfo convert(WFSCapabilities capabilities)
        

        Convert the object of WFS service provides the ability to a data source object.

        Extract the object of the information build data source from the & lt; Service & gt node of the GetCapabilities operation result. The name of the result data source is the name of the WFS service, corresponding to the <Name> sub-node under the <Service> node; the result data source is described as a summary of the WFS service, corresponding to the & lt; Abstract & gt sub-node under the & lt; Service & gt; node; the engine type of the resulting data source is the OGC engine (# OGC).

        Parameters:
        capabilities - WFS service delivery capability object.
        Returns:
        Data source object.
      • convert

        public static java.util.List<Feature> convert(FeatureCollection fc,
                                      FeatureIDMapping idMapping,
                                      java.util.Map<java.lang.String,java.lang.String> propertyNameToFieldName,
                                      java.lang.String[] fields)
        

        Convert the FeatureCollection the feature member set that defined in the WFS service implementation)object to the Feature object list.

        Parameters:
        fc - A set of feature members defined in the WFS service implementation.
        The - idMapping FeatureID converter is used to convert feature IDs in WFS and feature IDs in SuperMap iServer.
        Returns:
        SuperMap iSever Generic feature list.
      • convert

        public static FieldType convert(PropertyType propertyType)
        

        Convert PropertyType (the feature attribute type defined in the WFS implementation) object to the FieldType object.

        Note: The PropertyType object to be converted must be the http://www.w3.org/2001/XMLSchema namespace.

        Parameters:
        propertyType - The feature attribute type defined in the WFS implementation.
        Returns:
        SuperMap iSever The generic field type.