public class FeatureServiceHelper extends Object
| Constructor and Description |
|---|
FeatureServiceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addServiceLayerToTheTree(de.cismet.cismap.commons.featureservice.AbstractFeatureService service)
DOCUMENT ME!
|
static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> |
cloneFeatureServiceAttributes(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> attributes)
DOCUMENT ME!
|
static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> |
createGeometryOnlyFeatureServiceAttributes(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> attributes)
DOCUMENT ME!
|
static de.cismet.cismap.commons.featureservice.H2FeatureService |
createNewService(ArrayList<ArrayList> attributes,
String tableName,
List<de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> featureServiceAttributes)
Creates a new H2FeatureService.
|
static de.cismet.cismap.commons.featureservice.H2FeatureService |
createNewService(Component c,
List<de.cismet.cismap.commons.features.FeatureServiceFeature> features,
String tableName,
List<de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> newFeatureServiceAttributes,
List<String> attributeOrder)
Creates a new service with the given name, that contains the given features.
|
static de.cismet.cismap.commons.featureservice.H2FeatureService |
createNewService(Component c,
List<de.cismet.cismap.commons.features.FeatureServiceFeature> features,
String tableName,
List<String> attributeOrder)
Creates a new service with the given name, that contains the given features.
|
static List<String> |
getAllFieldNames(de.cismet.cismap.commons.featureservice.AbstractFeatureService service,
Class<?> cl)
determines all field name of the given service with the given type.
|
static List<de.cismet.cismap.commons.featureservice.AbstractFeatureService> |
getCidsLayerServicesFromTree(String metaClass)
DOCUMENT ME!
|
static List<de.cismet.cismap.commons.features.FeatureServiceFeature> |
getFeatures(de.cismet.cismap.commons.featureservice.AbstractFeatureService service,
boolean onlySelected)
Determines the features of the given service.
|
static com.vividsolutions.jts.index.strtree.STRtree |
getFeatureTree(List<de.cismet.cismap.commons.features.FeatureServiceFeature> features)
Creates a STR tree of with the given features.
|
static List<de.cismet.cismap.commons.features.FeatureServiceFeature> |
getSelectedCidsLayerFeatures(String metaClass)
Provides all selected features of the given service.
|
static List<de.cismet.cismap.commons.features.FeatureServiceFeature> |
getSelectedFeatures(de.cismet.cismap.commons.featureservice.AbstractFeatureService featureService)
Provides all selected features of the given service.
|
static List<de.cismet.cismap.commons.featureservice.AbstractFeatureService> |
getServices(String[] geometryType)
creates a list with all services fromm the curent mapping model, that provides the given geometry type.
|
static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> |
getSuitableFeatureServiceAttribute(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> serviceAttr,
Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> targetServiceAttr,
List<String> targetAttributeOrder,
List<String> newKeys)
Creates a FeatureServiceAttribute map with the attribute, that should be used, if features with the given
attribute maps should be merged.
|
static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> |
getSuitableMergeFeatureServiceAttribute(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> serviceAttr,
Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> targetServiceAttr)
Creates a FeatureServiceAttribute map with the attributes, which should be used, if features with the given
attribute maps should be merged.
|
static boolean |
isAllOrNoneFeaturesSelected(de.cismet.cismap.commons.featureservice.AbstractFeatureService featureService)
Provides all selected features of the given service.
|
static de.cismet.cismap.commons.features.FeatureServiceFeature |
mergeFeatures(de.cismet.cismap.commons.features.FeatureServiceFeature primaryFeature,
de.cismet.cismap.commons.features.FeatureServiceFeature secondaryFeature,
de.cismet.cismap.commons.featureservice.LayerProperties newLayerProperties,
List<String> secondaryFeatureProperties,
String distanceField)
Merges the given features to a new one.
|
public static de.cismet.cismap.commons.features.FeatureServiceFeature mergeFeatures(de.cismet.cismap.commons.features.FeatureServiceFeature primaryFeature,
de.cismet.cismap.commons.features.FeatureServiceFeature secondaryFeature,
de.cismet.cismap.commons.featureservice.LayerProperties newLayerProperties,
List<String> secondaryFeatureProperties,
String distanceField)
primaryFeature - the first feature to mergesecondaryFeature - the second feature to mergenewLayerProperties - The layer properties for the resulted featuressecondaryFeatureProperties - only the properties of this list will be used from the secondary featuredistanceField - The name of the distance property. If this parameter is an empty string, the
distance will not be setpublic static com.vividsolutions.jts.index.strtree.STRtree getFeatureTree(List<de.cismet.cismap.commons.features.FeatureServiceFeature> features)
features - the features, which should be added to the reepublic static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> getSuitableFeatureServiceAttribute(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> serviceAttr, Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> targetServiceAttr, List<String> targetAttributeOrder, List<String> newKeys)
serviceAttr - the service attributes of the primary servicetargetServiceAttr - the service attributes of the secondary servicetargetAttributeOrder - contains the attributes of the targetService in the right ordernewKeys - all feature attributes of the secondary service will be added to this listpublic static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> getSuitableMergeFeatureServiceAttribute(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> serviceAttr, Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> targetServiceAttr)
serviceAttr - the service attributes of the primary servicetargetServiceAttr - the service attributes of the secondary servicepublic static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> createGeometryOnlyFeatureServiceAttributes(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> attributes)
attributes - DOCUMENT ME!public static Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> cloneFeatureServiceAttributes(Map<String,de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> attributes)
attributes - DOCUMENT ME!public static List<String> getAllFieldNames(de.cismet.cismap.commons.featureservice.AbstractFeatureService service, Class<?> cl)
service - DOCUMENT ME!cl - the allowed type or null for all typespublic static List<de.cismet.cismap.commons.features.FeatureServiceFeature> getFeatures(de.cismet.cismap.commons.featureservice.AbstractFeatureService service, boolean onlySelected) throws Exception
service - the features of this service will be returnedonlySelected - returns only the selected features of the services, iff this parameter is trueException - DOCUMENT ME!public static List<de.cismet.cismap.commons.features.FeatureServiceFeature> getSelectedFeatures(de.cismet.cismap.commons.featureservice.AbstractFeatureService featureService)
featureService - service the service, the selected features should be returned forpublic static boolean isAllOrNoneFeaturesSelected(de.cismet.cismap.commons.featureservice.AbstractFeatureService featureService)
featureService - service the service, the selected features should be returned forpublic static List<de.cismet.cismap.commons.features.FeatureServiceFeature> getSelectedCidsLayerFeatures(String metaClass)
metaClass - featureService service the service, the selected features should be returned forpublic static List<de.cismet.cismap.commons.featureservice.AbstractFeatureService> getServices(String[] geometryType)
geometryType - the geometry type of the service, or null, if all geometry types are allowedpublic static List<de.cismet.cismap.commons.featureservice.AbstractFeatureService> getCidsLayerServicesFromTree(String metaClass)
metaClass - DOCUMENT ME!public static void addServiceLayerToTheTree(de.cismet.cismap.commons.featureservice.AbstractFeatureService service)
service - DOCUMENT ME!public static de.cismet.cismap.commons.featureservice.H2FeatureService createNewService(Component c, List<de.cismet.cismap.commons.features.FeatureServiceFeature> features, String tableName, List<String> attributeOrder) throws Exception
c - the parent is required to justify the probably required message dialogfeatures - the features to add to te servicetableName - the name of the new serviceattributeOrder - the attribute order of the new service, or null, if the order does not careException - DOCUMENT ME!public static de.cismet.cismap.commons.featureservice.H2FeatureService createNewService(Component c, List<de.cismet.cismap.commons.features.FeatureServiceFeature> features, String tableName, List<de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> newFeatureServiceAttributes, List<String> attributeOrder) throws Exception
c - the parent is required to justify the probably required message dialogfeatures - the features to add to te servicetableName - the name of the new servicenewFeatureServiceAttributes - DOCUMENT ME!attributeOrder - the attribute order of the new service, or null, if the order does not careException - DOCUMENT ME!public static de.cismet.cismap.commons.featureservice.H2FeatureService createNewService(ArrayList<ArrayList> attributes, String tableName, List<de.cismet.cismap.commons.featureservice.FeatureServiceAttribute> featureServiceAttributes) throws Exception
attributes - the attributes of the featurestableName - the table namefeatureServiceAttributes - the feature service attributes (describes the attributes)Exception - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.