getAssociationsWithEnvelope method
- Envelope extent, {
- UtilityAssociationType? type,
Returns a list of all UtilityAssociation objects (with their geometry) of type UtilityAssociationType present in the geodatabase for a given Envelope.
Containment associations are not returned because no geometric relationship is defined between a container and its contents; consider using UtilityNetwork.getAssociations instead. The method does not return a complete picture of connectivity; features that are connected by geometric coincidence are not returned. Note that the list returned can contain associations that have not yet been validated and are therefore not yet included in the topological index.
Parameters:
extent— The Envelope that defines the area for which associations to return.type— The UtilityAssociationType of associations to return.
Return Value: A list of all the UtilityAssociation objects (with their geometry) of the specified type if available. Otherwise, an empty list is returned.