public interface FeatureIDMapping
FeatureID converter.
In SuperMap iServer, the feature ID is represented by an integer, and in WFS, the feature ID is represented by a string, so when the WFSDataProvider implement, you need to convert the feature ID.
In the implementation of different WFS service, the element ID conversion rules are different, so when access to a WFS service, users need to provide a FeatureID Converter for establishing a mapping between the feature ID and the integer of the WFS service.
Modifier and Type | Method and Description |
---|---|
int |
feautureID2Int(java.lang.String featureTypeName, java.lang.String wfsFeatureID)
Converts the FeatureID of the WFS service that specifies the feature type to an integer.
|
java.lang.String[] |
ints2WFSFeatureIDs(java.lang.String featureTypeName, int[] featureIDs)
Converts an array of feature IDs represented by integers to a feature ID array (string representation) in WFS that specifies the feature class.
|
int feautureID2Int(java.lang.String featureTypeName, java.lang.String wfsFeatureID)
Converts the FeatureID of the WFS service that specifies the feature type to an integer.
You need to convert the feature that you get from the WFS service to a feature in SuperMap iServer, which converts object FeatureMember
to object Feature
. In this process, the conversion of the feature ID parameter requires the interface to be called. This interface ensures that the conversion result for feature IDs in different WFS must be different for the same feature type. If the parameters are the same, the result of each conversion should be consistent.
featureTypeName
- The specified feature type name.wfsFeatureID
- The feature ID in WFS.java.lang.String[] ints2WFSFeatureIDs(java.lang.String featureTypeName, int[] featureIDs)
Converts an array of feature IDs represented by integers to a feature ID array (string representation) in WFS that specifies the feature class.
when execute through the ID query and build WFS feature query parameters in the WFS services, you need to convert the ID query parameters in SuperMap iServer to WFS Feature query parameters. In the process, the conversion of the feature ID parameter requires the interface to be called.
featureTypeName
- The specified feature class name.FeatureIDs
- An array of feature IDs in SuperMap iServer.