Package com.geodesk.feature
Interface Relation
A
Feature that represents a grouping of related features or a
complex polygon.-
Method Summary
Modifier and TypeMethodDescriptionReturns the nodes that are members of this `Relation`.Returns the nodes of this `Relation` that match the given query.Returns the relations that are members of this `Relation`.Returns the sub-relations of this `Relation` that match the given query.Returns the roles that are assigned to members of this `Relation`.Features<?>members()Returns the members of this `Relation`.Features<?>Returns the members of this `Relation` that match the given query.Returns the ways that are members of this `Relation`.memberWays(String q) Returns the ways of this `Relation` that match the given query.Methods inherited from interface com.geodesk.feature.Feature
area, belongsTo, belongsToRelation, booleanValue, bounds, hasTag, hasTag, id, intValue, isArea, lat, length, lon, parentRelations, role, stringValue, tag, tags, toGeometry, type, x, yMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
members
Features<?> members()Returns the members of this `Relation`.- Returns:
- a collection of features that belong to this relation, or an empty collection if this relation has no members
-
members
Returns the members of this `Relation` that match the given query.- Parameters:
q- a query in GOQL format- Returns:
- a collection of member features that match the given query (may be empty)
-
memberNodes
Returns the nodes that are members of this `Relation`.- Returns:
- a collection of nodes that belong to this relation, or an empty collection if this relation has no nodes as members
-
memberNodes
Returns the nodes of this `Relation` that match the given query.- Parameters:
q- a query in GOQL format- Returns:
- a collection of member nodes that match the given query (may be empty)
-
memberWays
Returns the ways that are members of this `Relation`.- Returns:
- a collection of ways that belong to this relation, or an empty collection if this relation has no ways as members
-
memberWays
Returns the ways of this `Relation` that match the given query.- Parameters:
q- a query in GOQL format- Returns:
- a collection of member ways that match the given query (may be empty)
-
memberRelations
Returns the relations that are members of this `Relation`.- Returns:
- a collection of relations that belong to this relation, or an empty collection if this relation has no sub-relations as members
-
memberRelations
Returns the sub-relations of this `Relation` that match the given query.- Parameters:
q- a query in GOQL format- Returns:
- a collection of sub-relations that match the given query (may be empty)
-
memberRoles
Returns the roles that are assigned to members of this `Relation`.- Returns:
- a set of strings of the roles used in this relation, or an empty set if the relations has no members, or none have been assigned a role
-