public interface NFEFeatureIOService extends NFEIOService
Modifier and Type | Method and Description |
---|---|
JGeometry |
calculatePersistedNetworkMBR()
Returns the minimum bounding rectangle of the model network.
|
java.util.List<java.lang.Long> |
findFeaturesIds(NFESearchParams searchParams)
Searches features based on the specified parameters.
|
java.util.List<NFEFeature> |
getChildFeatures(NFEFeature nfeFeature)
Returns the child features of the specified feature.
|
JGeometry |
getMBRForNodes(java.lang.String geoColumn, java.lang.String table, java.util.List<java.lang.Long> nodeIds, java.lang.String workspace)
Returns the minimum bounding rectangle of the specified nodes.
|
java.util.List<java.lang.Long> |
getRelatedLinkIdsForFeature(NFEFeatureLayer featureLayer, java.lang.Long featureId)
Returns the links identifiers of the links related by the specified feature.
|
java.util.List<java.lang.Long> |
getRelatedNodeIdsForFeature(NFEFeatureLayer featureLayer, java.lang.Long featureId)
Returns the nodes identifiers of the nodes related by the specified feature.
|
java.util.List<java.lang.Long> |
getRelatedNodesIdsForLink(java.lang.Long linkId)
Returns the start and end nodes identifiers of the specified link.
|
void |
importNetworkElementsAsFeatures(java.lang.String srcNetworkName, long linesFeatureLayerId, long linesFeatureClassId, long nodesFeatureLayerId, long nodesFeatureClassId)
Imports all the links and nodes from the specified network to the current model in the database, translating them into line and point features respectively.
|
NFEFeature |
loadFeature(long featureLayerId, long featureId)
Loads the feature, network elements, feature elements and rules instances related to the specified feature.
|
void |
loadFeatureLayersContent(java.awt.geom.Area queryArea, java.util.Collection<java.lang.Long> featLayerIds)
Loads the network elements, feature elements, features and rules instances that interact spatially with the specified area.
|
java.util.Collection<NFEFeature> |
loadLinkFeatures(long linkId)
Loads into the Model the link and the features associated to the link.
|
java.util.Collection<NFEFeature> |
loadNodeFeatures(long nodeId)
Loads into the Model the node and the features associated to the node.
|
void |
saveModelContent()
Saves the feature layers network elements, feature elements, features and rules instances that were created, modified or deleted.
|
void |
saveModelContent(java.sql.Connection conn)
Saves the feature layers network elements, feature elements, features and rules instances that were created, modified or deleted, the specified connection will NOT be closed, rollback or commited.
|
void |
updateAttributeForFeatures(NFEFeatureLayer nfeFeatureLayer, java.lang.Long featureClassId, java.lang.String attributeName, java.lang.String newValue, java.lang.String oldValue)
Updates the features attributes from the old value to the new value.
|
getDataSource, getModel, getServiceProvider, setDataSource, setModel
void loadFeatureLayersContent(java.awt.geom.Area queryArea, java.util.Collection<java.lang.Long> featLayerIds) throws NFEIOException
queryArea
- area to load the feature layers contentfeatLayerIds
- identifiers of the feature layers to load the contentNFEIOException
- if an NFE error occurs.void saveModelContent() throws NFEIOException
NFEIOException
- if an NFE error occurs.void saveModelContent(java.sql.Connection conn) throws NFEIOException
conn
- ConnectionNFEIOException
- if an NFE error occurs.java.util.List<java.lang.Long> findFeaturesIds(NFESearchParams searchParams) throws NFEIOException
searchParams
- search parametersNFEIOException
- if an NFE error occurs.java.util.List<java.lang.Long> getRelatedNodeIdsForFeature(NFEFeatureLayer featureLayer, java.lang.Long featureId) throws NFEIOException
featureLayer
- feature layerfeatureId
- feature idNFEIOException
- if an NFE error occurs.java.util.List<java.lang.Long> getRelatedLinkIdsForFeature(NFEFeatureLayer featureLayer, java.lang.Long featureId) throws NFEIOException
featureLayer
- feature layerfeatureId
- feature idNFEIOException
- if an NFE error occurs.java.util.List<NFEFeature> getChildFeatures(NFEFeature nfeFeature) throws NFEIOException
nfeFeature
- feature parentNFEIOException
- if an NFE error occurs.java.util.List<java.lang.Long> getRelatedNodesIdsForLink(java.lang.Long linkId) throws NFEIOException
linkId
- link idNFEIOException
- if an NFE error occurs.JGeometry getMBRForNodes(java.lang.String geoColumn, java.lang.String table, java.util.List<java.lang.Long> nodeIds, java.lang.String workspace) throws NFEIOException
geoColumn
- geometry column name in nodes tabletable
- nodes tablenodeIds
- nodes identifiersworkspace
- workspace that will be used by the connection, if null the current workspace will be usedNFEIOException
- if an NFE error occurs.void updateAttributeForFeatures(NFEFeatureLayer nfeFeatureLayer, java.lang.Long featureClassId, java.lang.String attributeName, java.lang.String newValue, java.lang.String oldValue) throws NFEIOException
nfeFeatureLayer
- feature layerfeatureClassId
- feature class identifierattributeName
- attribute namenewValue
- new valueoldValue
- old valueNFEIOException
- if an NFE error occurs.NFEFeature loadFeature(long featureLayerId, long featureId) throws NFEIOException
featureLayerId
- feature layer identifier of the feature to loadfeatureId
- feature identifierNFEIOException
- if an NFE error occurs.void importNetworkElementsAsFeatures(java.lang.String srcNetworkName, long linesFeatureLayerId, long linesFeatureClassId, long nodesFeatureLayerId, long nodesFeatureClassId) throws NFEIOException
srcNetworkName
- network name to be importedlinesFeatureLayerId
- translating line features' feature layer idlinesFeatureClassId
- translating line features' feature class idnodesFeatureLayerId
- translating node features' feature layer idnodesFeatureClassId
- translating node features' feature class idNFEIOException
- if an NFE error occurs.JGeometry calculatePersistedNetworkMBR() throws NFEIOException
NFEIOException
- if an NFE error occurs.java.util.Collection<NFEFeature> loadNodeFeatures(long nodeId) throws NFEIOException
nodeId
- id of the node to be loaded along with its featuresNFEIOException
java.util.Collection<NFEFeature> loadLinkFeatures(long linkId) throws NFEIOException
linkId
- id of the link to be loaded along with its featuresNFEIOException