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 and Description |
---|
WFSConverter() |
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) |
public static DatasetVectorInfo convert(FeatureType featureType, java.lang.String datasourceName)
Convert the FeatureType
(element type) object into DatasetInfo
(data set) object.
featureType
- Source Feature class Object.datasourceName
- The name of the data source to which the converted dataset object belongs.public static java.lang.String getTypeName(javax.xml.namespace.QName name)
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
).
capabilities
- WFS service delivery capability object.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.
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.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.
propertyType
- The feature attribute type defined in the WFS implementation.