Class WFSConverter
- java.lang.Object
-
- com.supermap.services.providers.wfs.convert.WFSConverter
-
public final class WFSConverter extends java.lang.ObjectWFS 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 theFeatureCollectionthe feature member set that defined in the WFS service implementation)object to theFeatureobject list.static DatasetVectorInfoconvert(FeatureType featureType, java.lang.String datasourceName)Convert theFeatureType(element type) object intoDatasetInfo(data set) object.static FieldTypeconvert(PropertyType propertyType)ConvertPropertyType(the feature attribute type defined in the WFS implementation) object to theFieldTypeobject.static DatasourceInfoconvert(WFSCapabilities capabilities)Convert the object of WFS service provides the ability to a data source object.static java.lang.StringgetTypeName(javax.xml.namespace.QName name)
-
-
-
Method Detail
-
convert
public static DatasetVectorInfo convert(FeatureType featureType, java.lang.String datasourceName)
Convert the
FeatureType(element type) object intoDatasetInfo(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
FeatureCollectionthe feature member set that defined in the WFS service implementation)object to theFeatureobject 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 theFieldTypeobject.Note: The
PropertyTypeobject 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.
-
-