public class UGCDataProvider extends java.lang.Object implements DataProvider, GridValueCapabilities, GetFeatureSupportDynamicProj, Disposable, ProviderContextAware, BatchEditCapability, AttachmentCapabilities, FeatureMetadataCapabilities, CoordTransferCapabilities
SuperMap data service provider.
UGCDataProvider provides services related to SuperMap data and encapsulates all the GIS functions related to SuperMap data.
Modifier and Type | Class and Description |
---|---|
class |
UGCDataProvider.DelayInnerUGCDataProvider |
Modifier and Type | Field and Description |
---|---|
protected UGCDataProviderSetting |
setting |
protected com.supermap.services.providers.IWorkspace |
workspace |
Constructor and Description |
---|
UGCDataProvider()
The default constructor.
|
UGCDataProvider(UGCDataProviderSetting providerSetting)
Constructs a UGCDataProvider object based on the configuration information of a SuperMap data service provider.
|
Modifier and Type | Method and Description |
---|---|
AttachmentInfo |
addAttachment(java.lang.String datasourceName, java.lang.String datasetName, int featureId, Attachment attachment)
Related to the attachment for feature.
|
EditResult |
addFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Adds a set of features of the same type to a specified dataset.
|
void |
batchAddFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Adds elements in batch, the performance is higher than the addFeatures interface when adding massive features.
|
protected void |
checkExcludedFieldsInDatasources(ExcludedFieldsInDatasource[] excludedFieldsInDatasources)
Checks for duplicate excluded fields, ie., the excluded fields of the same dataset in the same datasource are set multiple times.
|
protected static void |
checkParameterNull(java.lang.Object obj, java.lang.String parameterName)
Checks whether the parameter is null.
|
boolean |
clearFeatures(java.lang.String datasourceName, java.lang.String datasetName)
Clears the features in a specified dataset.
|
boolean |
containsDataset(java.lang.String datasourceName, java.lang.String datasetName)
Determines whether a specified datasource contains a specified dataset.
|
java.util.List<Geometry> |
coordtransfer(Geometry[] geometry, PrjCoordSys sourcePrjCoorSys, PrjCoordSys targetPrjCoordSys)
According to the target coordinate system, converting the collection object coordinate system
|
boolean |
copyDataset(java.lang.String srcDatasourceName, java.lang.String srcDatasetName, java.lang.String destDatasourceName, java.lang.String destDatasetName)
Copies a replication of a specified dataset.
|
boolean |
createDataset(java.lang.String datasourceName, DatasetInfo datasetInfo)
Creates a new dataset in a specified datasource according to the dataset information.
|
boolean |
deleteAttachment(java.lang.String datasourceName, java.lang.String datasetName, int featureId, int id)
Delete the attachment related to feature.
|
boolean |
deleteDataset(java.lang.String datasourceName, java.lang.String datasetName)
Removes the specified dataset in the specified datasource.
|
EditResult |
deleteFeatures(java.lang.String datasourceName, QueryParameter parameters)
Deletes features by SQL.
|
EditResult |
deleteFeatures(java.lang.String datasourceName, java.lang.String datasetName, int[] ids)
Deletes features in a specified dataset according to the specified IDs.
|
void |
dispose()
Releases the resources used by a SuperMap data service provider, i.e., releases the workspace.
|
Attachment |
getAttachement(java.lang.String datasourceName, java.lang.String datasetName, int featureId, int id)
Gets the attachment data according to the attachment ID.
|
java.util.List<AttachmentInfo> |
getAttachmentInfos(java.lang.String datasourceName, java.lang.String datasetName, int featureId)
Gets the attachment info list related to feature.
|
DatasetInfo |
getDatasetInfo(java.lang.String datasourceName, java.lang.String datasetName)
Gets the information of a specified dataset in a given datasource.
|
java.util.List<DatasetInfo> |
getDatasetInfos(java.lang.String datasourceName)
Gets information about all the datasets in a specified datasource.
|
java.util.List<java.lang.String> |
getDatasetNames(java.lang.String datasourceName)
Gets all dataset names for the current data source.
|
DatasourceInfo |
getDatasourceInfo(java.lang.String datasourceName)
Gets information about a specified datasource.
|
java.util.List<DatasourceInfo> |
getDatasourceInfos()
Gets information about all the datasources corresponding to the current data service provider.
|
java.util.List<DomainInfo> |
getDomainInfos(java.lang.String datasourceName, java.lang.String datasetName)
Gets the domain info of the specified dataset.
|
GetFeatureResult |
getFeature(GetFeatureParameters parameters)
Query and return the feature results.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, QueryParameter queryParam)
Gets features by a SQL query condition.
|
protected java.util.List<Feature> |
getFeature(java.lang.String datasourceName, QueryParameter queryParam, GeometryType networkType)
Gets all the field info of the specified dataset.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, QueryParameter queryParam, int maxFeatures)
Gets features by a SQL query condition.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, QueryParameter queryParam, int maxFeatures, PrjCoordSys targetPrj)
Gets features by a SQL query condition.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, double distance, java.lang.String attributeFilter, java.lang.String[] fields)
Gets the features that fall within a buffer of a specified geometric object and meet a certain attribute filter condition.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, SpatialQueryMode spatialQueryMode, java.lang.String attributeFilter, java.lang.String[] fields)
Gets features by performing spatial query.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, SpatialQueryMode spatialQueryMode, java.lang.String attributeFilter, java.lang.String[] fields, PrjCoordSys targetPrj)
Gets features by performing spatial query.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, int[] ids, java.lang.String[] fields)
Gets features with specified IDs in a specified dataset.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, int[] ids, java.lang.String[] fields, int fromIndex, int toIndex)
Gets the feature in the specified data set according to the specified feature ID in the way of supporting paging.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, Rectangle2D bounds, java.lang.String attributeFilter, java.lang.String[] fields)
Gets the features that fall within a specified space and meet a certain attribute filter condition.
|
java.util.List<Feature> |
getFeature(java.lang.String datasourceName, java.lang.String datasetName, Rectangle2D bounds, java.lang.String attributeFilter, java.lang.String[] fields, PrjCoordSys targetPrj)
Gets the features that fall within a specified space and meet a certain attribute filter condition.
|
FeatureMetadata |
getFeatureMetadata(java.lang.String datasourceName, java.lang.String datasetName, int featureId)
Gets the feature meta info.
|
java.util.List<FieldInfo> |
getFieldInfos(java.lang.String datasourceName, java.lang.String datasetName)
Get all the field info of the specified dataset.
|
GridValue |
getGridValue(java.lang.String datasourceName, java.lang.String datasetName, Point2D point2d)
Gets grid value according to the coordinate position.
|
GridValues |
getGridValues(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry)
Gets the grid value matrix within a specified rectangle.
|
ImageValue |
getImageValue(java.lang.String datasourceName, java.lang.String datasetName, Point2D point2d)
Gets pixel value according to the coordinate position.
|
ImageValues |
getImageValues(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry)
Gets the grid value matrix within a specified rectangle.
|
com.supermap.services.providers.UGCDataProvider.InnerUGCDataProviderFactory |
getInnerUGCDataProviderFactory() |
java.lang.String |
getProviderName() |
static com.supermap.data.Geometry |
getUGOGeometryForEdit(com.supermap.data.Geometry oldGeometry, Geometry newGeometry)
Deprecated.
Call
CommontypesConversion#getUGOGeometry method to finish converting directly, don't need to use this method. To avoid errors, using this method temporarily. |
protected void |
init(UGCDataProviderSetting providerSetting) |
void |
pauseForRefreshWorkspace()
Prevents the request to refresh the workspace.
|
void |
refreshWorkspace()
Refreshes the workspace.
|
void |
refreshWorkspaceFinished()
Continues the request after finishing refreshing the workspace.
|
boolean |
renameDataset(java.lang.String datasourceName, java.lang.String oldName, java.lang.String newName)
Modifies the name of a specified dataset.
|
void |
setInnerUGCDataProviderFactory(com.supermap.services.providers.UGCDataProvider.InnerUGCDataProviderFactory innerUGCDataProviderFactory) |
void |
setProviderContext(ProviderContext context)
Sets the service provider context.
|
void |
setProviderName(java.lang.String providerName) |
double |
statistic(java.lang.String datasourceName, java.lang.String datasetName, int fieldIndex, StatisticMode statisticMode)
Calculates statistics on a specified field of a dataset based on a specified statistical mode.
|
double |
statistic(java.lang.String datasourceName, java.lang.String datasetName, java.lang.String fieldName, StatisticMode statisticMode)
Calculates statistics on a specified field of a dataset based on a specified statistical mode.
|
boolean |
supportAttachments(java.lang.String datasourceName, java.lang.String datasetName)
Whether the dataset attachment is enable.
|
boolean |
supportFeatureMetadatas(java.lang.String datasourceName, java.lang.String datasetName)
Whether this dataset feature supports the metadata info.
|
void |
updateDatasetInfo(java.lang.String datasourceName, java.lang.String datasetName, DatasetInfo newDatasetInfo)
Updates information about a specified dataset in a given datasource.
|
void |
updateDatasourceInfo(java.lang.String datasourceName, DatasourceInfo newDatasourceInfo)
Updates the original datasource info with new datasource info.
|
EditResult |
updateFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Updates features in a specified dataset.
|
void |
updateFieldInfos(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<FieldInfo> newFieldInfos)
Updates the field information in a specified dataset.
|
protected com.supermap.services.providers.IWorkspace workspace
protected UGCDataProviderSetting setting
public UGCDataProvider()
public UGCDataProvider(UGCDataProviderSetting providerSetting)
Constructs a UGCDataProvider object based on the configuration information of a SuperMap data service provider.
providerSettingSuperMap
- The configuration information of data service provider.protected static void checkParameterNull(java.lang.Object obj, java.lang.String parameterName)
Checks whether the parameter is null.
The IllegalArgumentException will be thrown if parameterName is null.
objThe
- type of the parameter to be checked.parameterNameThe
- name of the parameter to be checked.public EditResult addFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Adds a set of features of the same type to a specified dataset.
Every dataset in SuperMap has a type (DatasetType
). A dataset can be a point, a line, or a region dataset. The features in a dataset are of the same type with the dataset. For instance, the features stored in a point dataset must be point features. Therefore, a feature added to a dataset must be of the same type with that dataset.
addFeatures
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.targetFeaturesThe
- list of features to be added. The features must be of the same type.public void batchAddFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Adds elements in batch, the performance is higher than the addFeatures interface when adding massive features. But the result doesn't show the detailed failure messages, such as the IDs of the features that are added failed.
batchAddFeatures
in interface BatchEditCapability
datasourceName
-datasetName
-targetFeatures
-public boolean clearFeatures(java.lang.String datasourceName, java.lang.String datasetName)
Clears the features in a specified dataset.
clearFeatures
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.public boolean containsDataset(java.lang.String datasourceName, java.lang.String datasetName)
Determines whether a specified datasource contains a specified dataset.
containsDataset
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.public boolean copyDataset(java.lang.String srcDatasourceName, java.lang.String srcDatasetName, java.lang.String destDatasourceName, java.lang.String destDatasetName)
Copies a replication of a specified dataset.
Copies a replication of a specified dataset from specified datasource to target datasource and saves it with a specified name.
copyDataset
in interface DataProvider
srcDatasourceNameThe
- name of the source datasource.srcDatasetNameThe
- name of the source dataset.destDatasourceNameThe
- target datasource name.destDatasetNameThe
- target dataset name.public boolean createDataset(java.lang.String datasourceName, DatasetInfo datasetInfo)
Creates a new dataset in a specified datasource according to the dataset information.
createDataset
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetInfoThe
- dataset information.public boolean deleteDataset(java.lang.String datasourceName, java.lang.String datasetName)
Removes the specified dataset in the specified datasource.
deleteDataset
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.public EditResult deleteFeatures(java.lang.String datasourceName, java.lang.String datasetName, int[] ids)
Deletes features in a specified dataset according to the specified IDs.
deleteFeatures
in interface DataProvider
datasourceNameThe
- target datasource name.datasetNameThe
- target dataset name.idsThe
- IDs of the features to be deleted.public EditResult deleteFeatures(java.lang.String datasourceName, QueryParameter parameters)
Deletes features by SQL.
deleteFeatures
in interface DataProvider
datasourceName
-parameters
-public DatasetInfo getDatasetInfo(java.lang.String datasourceName, java.lang.String datasetName)
Gets the information of a specified dataset in a given datasource.
getDatasetInfo
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.public java.util.List<DatasetInfo> getDatasetInfos(java.lang.String datasourceName)
Gets information about all the datasets in a specified datasource.
getDatasetInfos
in interface DataProvider
datasourceNameThe
- list of datasource names.public DatasourceInfo getDatasourceInfo(java.lang.String datasourceName)
Gets information about a specified datasource.
getDatasourceInfo
in interface DataProvider
datasourceNameThe
- list of datasource names.public java.util.List<DatasourceInfo> getDatasourceInfos()
Gets information about all the datasources corresponding to the current data service provider.
getDatasourceInfos
in interface DataProvider
public java.util.List<DomainInfo> getDomainInfos(java.lang.String datasourceName, java.lang.String datasetName)
Gets the domain info of the specified dataset.
getDomainInfos
in interface DataProvider
datasourceNameThe
- datasource name.datasetNameThe
- dataset name.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, int[] ids, java.lang.String[] fields)
Gets features with specified IDs in a specified dataset.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.idsThe
- feature IDs.fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, int[] ids, java.lang.String[] fields, int fromIndex, int toIndex)
DataProvider
Gets the feature in the specified data set according to the specified feature ID in the way of supporting paging.
getFeature
in interface DataProvider
datasourceName
- the name of the datasource.datasetName
- the dataset name.ids
- Feature ID.fields
- An array of fields to be returned. When the parameter is null, all fields are returned.fromIndex
- The minimum index number for the result of the pagingtoIndex
- The maximum index number for the result of the pagingpublic java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, double distance, java.lang.String attributeFilter, java.lang.String[] fields)
Gets the features that fall within a buffer of a specified geometric object and meet a certain attribute filter condition.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.geometryThe
- geometric object.distanceThe
- buffer distance and the unit is the coordUnit of current dataset.attributeFilterThe
- attribute filter condition. For example, fieldValue < 100, name like '%Hotel%'fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, Rectangle2D bounds, java.lang.String attributeFilter, java.lang.String[] fields)
Gets the features that fall within a specified space and meet a certain attribute filter condition.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.boundsThe
- specified query bounds.attributeFilterThe
- attribute filter condition. For example, fieldValue < 100, name like '%Hotel%'fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, Rectangle2D bounds, java.lang.String attributeFilter, java.lang.String[] fields, PrjCoordSys targetPrj)
Gets the features that fall within a specified space and meet a certain attribute filter condition.
getFeature
in interface GetFeatureSupportDynamicProj
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.boundsThe
- specified query bounds.attributeFilterThe
- attribute filter condition. For example, fieldValue < 100, name like '%Hotel%'fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.targetPrjThe
- coordinate system of target geometries.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, SpatialQueryMode spatialQueryMode, java.lang.String attributeFilter, java.lang.String[] fields)
Gets features by performing spatial query.
That is., obtaining the features that have the specific spatial query mode with the specified geometry object and satisfy the specified attribute filter condition.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.geometryThe
- geometric object.spatialQueryModeThe
- spatial query mode.attributeFilterThe
- attribute filter condition. For example, fieldValue < 100, name like '%Hotel%'fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.public java.util.List<Feature> getFeature(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry, SpatialQueryMode spatialQueryMode, java.lang.String attributeFilter, java.lang.String[] fields, PrjCoordSys targetPrj)
Gets features by performing spatial query.
That is., obtaining the features that have the specific spatial query mode with the specified geometry object and satisfy the specified attribute filter condition.
getFeature
in interface GetFeatureSupportDynamicProj
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.geometryThe
- geometric object.spatialQueryModeThe
- spatial query mode.attributeFilterThe
- attribute filter condition. For example, fieldValue < 100, name like '%Hotel%'fieldsThe
- array of fields to be returned. All the fields are returned if this parameter is null.targetPrjThe
- coordinate system of the geometries to be returned.public java.util.List<Feature> getFeature(java.lang.String datasourceName, QueryParameter queryParam, int maxFeatures)
Gets features by a SQL query condition.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.queryParamQuery
- parameter.maxFeaturesThe
- maximum features to be returned.public java.util.List<Feature> getFeature(java.lang.String datasourceName, QueryParameter queryParam, int maxFeatures, PrjCoordSys targetPrj)
Gets features by a SQL query condition.
getFeature
in interface GetFeatureSupportDynamicProj
datasourceNameThe
- list of datasource names.queryParamQuery
- parameter.maxFeaturesThe
- maximum features to be returned.public java.util.List<Feature> getFeature(java.lang.String datasourceName, QueryParameter queryParam)
Gets features by a SQL query condition.
getFeature
in interface DataProvider
datasourceNameThe
- list of datasource names.queryParamQuery
- parameter.public GetFeatureResult getFeature(GetFeatureParameters parameters)
DataProvider
Query and return the feature results.
getFeature
in interface DataProvider
parameters
- Is the encapsulation of other getFeature parameters.public GridValue getGridValue(java.lang.String datasourceName, java.lang.String datasetName, Point2D point2d)
Gets grid value according to the coordinate position.
getGridValue
in interface GridValueCapabilities
datasourceName
-datasetName
-point2d
-public ImageValue getImageValue(java.lang.String datasourceName, java.lang.String datasetName, Point2D point2d)
Gets pixel value according to the coordinate position.
getImageValue
in interface GridValueCapabilities
datasourceName
-datasetName
-point2d
-index
-public GridValues getGridValues(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry)
Gets the grid value matrix within a specified rectangle.
getGridValues
in interface GridValueCapabilities
datasourceName
-datasetName
-point2d
-public ImageValues getImageValues(java.lang.String datasourceName, java.lang.String datasetName, Geometry geometry)
Gets the grid value matrix within a specified rectangle.
getImageValues
in interface GridValueCapabilities
datasourceName
-datasetName
-point2d
-index
-public java.util.List<FieldInfo> getFieldInfos(java.lang.String datasourceName, java.lang.String datasetName)
Get all the field info of the specified dataset.
getFieldInfos
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.public boolean renameDataset(java.lang.String datasourceName, java.lang.String oldName, java.lang.String newName)
Modifies the name of a specified dataset.
renameDataset
in interface DataProvider
datasourceNameThe
- list of datasource names.oldNameThe
- name of the dataset to be modified.newNameNew
- name.public double statistic(java.lang.String datasourceName, java.lang.String datasetName, int fieldIndex, StatisticMode statisticMode)
Calculates statistics on a specified field of a dataset based on a specified statistical mode.
statistic
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.fieldIndexThe
- field index.statisticModeThe
- statistical mode.public double statistic(java.lang.String datasourceName, java.lang.String datasetName, java.lang.String fieldName, StatisticMode statisticMode)
Calculates statistics on a specified field of a dataset based on a specified statistical mode.
statistic
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.fieldNameThe
- name of the specified field.statisticModeThe
- statistical mode.public void updateDatasetInfo(java.lang.String datasourceName, java.lang.String datasetName, DatasetInfo newDatasetInfo)
Updates information about a specified dataset in a given datasource.
updateDatasetInfo
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- name of the dataset to be updated.newDatasetInfoThe
- dataset information.public void updateDatasourceInfo(java.lang.String datasourceName, DatasourceInfo newDatasourceInfo)
Updates the original datasource info with new datasource info.
updateDatasourceInfo
in interface DataProvider
datasourceNameThe
- list of datasource names.newDatasourceInfoThe
- new datasource info.public EditResult updateFeatures(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<Feature> targetFeatures)
Updates features in a specified dataset.
targetFeatures is used to set the expected features after update, of which the IDs should be identical with the IDs of the features to be updated. The update process is finding out the feature to be updated with the ID from the targetFeatures first, then updating the source feature with the targetFeature.
updateFeatures
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.targetFeaturesThe
- list of new features whose IDs are the same with those of the features to be updated.public void updateFieldInfos(java.lang.String datasourceName, java.lang.String datasetName, java.util.List<FieldInfo> newFieldInfos)
Updates the field information in a specified dataset.
A field can be added, deleted, or modified by using this method.All the fields (except the SuperMap system fields) in a dataset are replaced with new fields.
If SuperMap data are used, the alias of the SuperMap system fields cannot be updated.
updateFieldInfos
in interface DataProvider
datasourceNameThe
- list of datasource names.datasetNameThe
- dataset name.newFieldInfosThe
- new field information. If SuperMap data are used, the SuperMap system fields cannot be included in this information list.public void dispose()
Releases the resources used by a SuperMap data service provider, i.e., releases the workspace.
dispose
in interface Disposable
public void setProviderContext(ProviderContext context)
Sets the service provider context.
setProviderContext
in interface ProviderContextAware
contextThe
- service provider context.protected void init(UGCDataProviderSetting providerSetting)
protected void checkExcludedFieldsInDatasources(ExcludedFieldsInDatasource[] excludedFieldsInDatasources)
Checks for duplicate excluded fields, ie., the excluded fields of the same dataset in the same datasource are set multiple times.
excludedFieldsInDatasources
-protected java.util.List<Feature> getFeature(java.lang.String datasourceName, QueryParameter queryParam, GeometryType networkType)
Gets all the field info of the specified dataset.
datasourceNameThe
- list of datasource names.queryParamQuery
- parameter.networkTypeThe
- feature type in the network dataset .public void pauseForRefreshWorkspace()
Prevents the request to refresh the workspace.
public void refreshWorkspaceFinished()
Continues the request after finishing refreshing the workspace.
public void refreshWorkspace()
Refreshes the workspace.
public java.util.List<AttachmentInfo> getAttachmentInfos(java.lang.String datasourceName, java.lang.String datasetName, int featureId)
AttachmentCapabilities
Gets the attachment info list related to feature.
getAttachmentInfos
in interface AttachmentCapabilities
featureId
- Feature ID.public Attachment getAttachement(java.lang.String datasourceName, java.lang.String datasetName, int featureId, int id)
AttachmentCapabilities
Gets the attachment data according to the attachment ID.
getAttachement
in interface AttachmentCapabilities
id
- Attachment IDpublic AttachmentInfo addAttachment(java.lang.String datasourceName, java.lang.String datasetName, int featureId, Attachment attachment)
AttachmentCapabilities
Related to the attachment for feature.
addAttachment
in interface AttachmentCapabilities
featureId
- Feature ID.attachment
- Attachment content.public boolean supportAttachments(java.lang.String datasourceName, java.lang.String datasetName)
AttachmentCapabilities
Whether the dataset attachment is enable.
supportAttachments
in interface AttachmentCapabilities
public boolean deleteAttachment(java.lang.String datasourceName, java.lang.String datasetName, int featureId, int id)
AttachmentCapabilities
Delete the attachment related to feature.
deleteAttachment
in interface AttachmentCapabilities
public boolean supportFeatureMetadatas(java.lang.String datasourceName, java.lang.String datasetName)
FeatureMetadataCapabilities
Whether this dataset feature supports the metadata info.
supportFeatureMetadatas
in interface FeatureMetadataCapabilities
public FeatureMetadata getFeatureMetadata(java.lang.String datasourceName, java.lang.String datasetName, int featureId)
FeatureMetadataCapabilities
Gets the feature meta info.
getFeatureMetadata
in interface FeatureMetadataCapabilities
@Deprecated public static com.supermap.data.Geometry getUGOGeometryForEdit(com.supermap.data.Geometry oldGeometry, Geometry newGeometry)
CommontypesConversion#getUGOGeometry
method to finish converting directly, don't need to use this method. To avoid errors, using this method temporarily.Gets the UGO geometry needed to be updated.
oldGeometryThe
- original UGO geometry.newGeometryThe
- geometry to be updated.public java.lang.String getProviderName()
public void setProviderName(java.lang.String providerName)
public com.supermap.services.providers.UGCDataProvider.InnerUGCDataProviderFactory getInnerUGCDataProviderFactory()
public void setInnerUGCDataProviderFactory(com.supermap.services.providers.UGCDataProvider.InnerUGCDataProviderFactory innerUGCDataProviderFactory)
public java.util.List<java.lang.String> getDatasetNames(java.lang.String datasourceName)
DataProvider
Gets all dataset names for the current data source.
getDatasetNames
in interface DataProvider
datasourceName
- the data source name.public java.util.List<Geometry> coordtransfer(Geometry[] geometry, PrjCoordSys sourcePrjCoorSys, PrjCoordSys targetPrjCoordSys)
CoordTransferCapabilities
According to the target coordinate system, converting the collection object coordinate system
coordtransfer
in interface CoordTransferCapabilities