Uses of Class
org.openstreetmap.josm.data.osm.Relation
-
Packages that use Relation Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.mapmode Provides the classes for JOSMmap modes
.org.openstreetmap.josm.actions.relation Provides the classes for JOSM actions that work withrelations
.org.openstreetmap.josm.actions.upload Provides the classes for JOSMupload action
.org.openstreetmap.josm.command Provides the classes for JOSM commands allowing to modify an OSM data set.org.openstreetmap.josm.command.conflict Provides commands for handling conflicts.org.openstreetmap.josm.data Provides the classes for JOSM managed data.org.openstreetmap.josm.data.correction Provides the classes for JOSM data correction.org.openstreetmap.josm.data.osm Provides the classes for OSM data:Primitives
:Node
,Way
,Relation
Users
Tags
Changesets
Utilities classesorg.openstreetmap.josm.data.osm.event Provides the classes for OSM dataset events.org.openstreetmap.josm.data.osm.history Provides the classes for OSM primitiveshistory
(edition revisions).org.openstreetmap.josm.data.osm.visitor Provides the classes for performing actions on OSM primitives using Visitor design pattern.org.openstreetmap.josm.data.osm.visitor.paint Provides the classes for painting (rendering) OSM primitives on the map.org.openstreetmap.josm.data.osm.visitor.paint.relations Provides the classes for painting and cachingMultipolygon
relations.org.openstreetmap.josm.data.validation Provides the classes for JOSM data validation.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.data.validation.util Provides utilities classes for JOSM data validation.org.openstreetmap.josm.gui.conflict.pair.relation Provides the classes for displaying conflicts in OSM primitive relation memberships.org.openstreetmap.josm.gui.conflict.tags Provides the classes for resolving conflicts between OSM tags.org.openstreetmap.josm.gui.dialogs Provides three kinds of dialogs: Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI Changeset dialog based on a standalone implementation, dedicated to OSM changesets management Extended dialogs for everything elseorg.openstreetmap.josm.gui.dialogs.properties Toggle dialog allowing to display/edit tags and relation memberships of currently selected OSM objects.org.openstreetmap.josm.gui.dialogs.relation Toggle dialog allowing to display currently loaded relations and perform operations on them.org.openstreetmap.josm.gui.dialogs.relation.actions Provides the classes for relation editor actions.org.openstreetmap.josm.gui.dialogs.relation.sort Provides the classes for sorting relations.org.openstreetmap.josm.gui.history Provides GUI classes for handling history of OSM objects.org.openstreetmap.josm.gui.layer Provides classes for handling the different kinds of map layers.org.openstreetmap.josm.gui.layer.validation Provides classes for handling validation layer.org.openstreetmap.josm.gui.tagging.ac Provides GUI classes for handling autocompletion of tags.org.openstreetmap.josm.gui.util Provides GUI utility classes.org.openstreetmap.josm.io Provides the classes for JOSM input/output support.org.openstreetmap.josm.tools Provides the classes for various utilities and tools called from all other packages. -
-
Uses of Relation in org.openstreetmap.josm.actions
Fields in org.openstreetmap.josm.actions declared as Relation Modifier and Type Field Description private Relation
CreateMultipolygonAction.CreateUpdateMultipolygonTask. multipolygonRelation
Relation
JoinAreasAction.RelationRole. rel
Fields in org.openstreetmap.josm.actions with type parameters of type Relation Modifier and Type Field Description private List<Relation>
JoinAreasAction. addedRelations
Methods in org.openstreetmap.josm.actions that return Relation Modifier and Type Method Description private static Relation
CreateMultipolygonAction. getSelectedMultipolygonRelation(Collection<Way> selectedWays, Collection<Relation> selectedRelations)
Methods in org.openstreetmap.josm.actions that return types with arguments of type Relation Modifier and Type Method Description protected Set<Relation>
UnGlueAction. calcAffectedRelations(Collection<Way> ways)
static Pair<SequenceCommand,Relation>
CreateMultipolygonAction. createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
static Pair<Relation,Relation>
CreateMultipolygonAction. createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif)
static Pair<Relation,Relation>
CreateMultipolygonAction. createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif)
private static Pair<Relation,Relation>
CreateMultipolygonAction. mergeRelationsMembers(Relation old, Relation calculated)
Merge members of multipolygon relation.private static Pair<Relation,Relation>
CreateMultipolygonAction. mergeRelationsMembers(Relation old, Relation calculated)
Merge members of multipolygon relation.static Pair<Relation,Relation>
CreateMultipolygonAction. updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
static Pair<Relation,Relation>
CreateMultipolygonAction. updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
Methods in org.openstreetmap.josm.actions with parameters of type Relation Modifier and Type Method Description static Pair<SequenceCommand,Relation>
CreateMultipolygonAction. createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
private static boolean
UnGlueAction. isRelationAffected(Relation r, Set<Node> affectedNodes, Collection<Way> ways)
private static Pair<Relation,Relation>
CreateMultipolygonAction. mergeRelationsMembers(Relation old, Relation calculated)
Merge members of multipolygon relation.static List<Command>
CreateMultipolygonAction. removeTagsFromWaysIfNeeded(Relation relation)
This method removes tags/value pairs from inner and outer ways and put them on relation if necessary.static Pair<Relation,Relation>
CreateMultipolygonAction. updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
void
UploadSelectionAction.UploadHullBuilder. visit(Relation r)
Method parameters in org.openstreetmap.josm.actions with type arguments of type Relation Modifier and Type Method Description static boolean
DeleteAction. confirmRelationDeletion(Collection<Relation> relations)
Confirm before deleting a relation, as it is a common newbie error.private void
JoinAreasAction. fixRelations(List<JoinAreasAction.RelationRole> rels, Way outer, JoinAreasAction.RelationRole ownMultipol, Set<Relation> relationsToDelete)
Adds the previously removed relations again to the outer way.Constructors in org.openstreetmap.josm.actions with parameters of type Relation Constructor Description CreateUpdateMultipolygonTask(Collection<Way> selectedWays, Relation multipolygonRelation)
RelationRole(Relation rel, String role)
-
Uses of Relation in org.openstreetmap.josm.actions.mapmode
Methods in org.openstreetmap.josm.actions.mapmode with parameters of type Relation Modifier and Type Method Description static void
DeleteAction. deleteRelation(OsmDataLayer layer, Relation toDelete)
Deletes the relation in the context of the given layer.Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type Relation Modifier and Type Method Description static void
DeleteAction. deleteRelations(OsmDataLayer layer, Collection<Relation> toDelete)
Deletes the relations in the context of the given layer. -
Uses of Relation in org.openstreetmap.josm.actions.relation
Fields in org.openstreetmap.josm.actions.relation declared as Relation Modifier and Type Field Description private Relation
RecentRelationsAction.RecentRelationsMenuItem. relation
Fields in org.openstreetmap.josm.actions.relation with type parameters of type Relation Modifier and Type Field Description protected Collection<Relation>
ExportRelationToGpxAction. relations
Primitives this action works onMethods in org.openstreetmap.josm.actions.relation that return Relation Modifier and Type Method Description static Relation
RecentRelationsAction. getLastRelation()
Returns the last relation.Methods in org.openstreetmap.josm.actions.relation that return types with arguments of type Relation Modifier and Type Method Description static List<Relation>
RecentRelationsAction. getRecentRelationsOnActiveLayer()
Returns the list of recent relations on active layer.Methods in org.openstreetmap.josm.actions.relation with parameters of type Relation Modifier and Type Method Description private static boolean
DuplicateRelationAction. confirmRelationDuplicate(Relation relation)
static void
DuplicateRelationAction. duplicateRelationAndLaunchEditor(Relation original)
Duplicates the given relation and launches the relation editor for the created copy.static Set<RelationMember>
EditRelationAction. getMembersForCurrentSelection(Relation r)
Returns the set of currently selected relation members for the given relation.static boolean
RecentRelationsAction. isRelationListable(Relation relation)
Determines if the given relation is listable in last relations.static void
EditRelationAction. launchEditor(Relation toEdit)
Launches relation editor for the given relation.Method parameters in org.openstreetmap.josm.actions.relation with type arguments of type Relation Modifier and Type Method Description protected void
DeleteRelationsAction. deleteRelation(Collection<Relation> toDelete)
Constructors in org.openstreetmap.josm.actions.relation with parameters of type Relation Constructor Description RecentRelationsMenuItem(Relation relation)
Constructor parameters in org.openstreetmap.josm.actions.relation with type arguments of type Relation Constructor Description RecentRelationsPopupMenu(List<Relation> recentRelations, KeyStroke keystroke)
Constructs a newRecentRelationsPopupMenu
. -
Uses of Relation in org.openstreetmap.josm.actions.upload
Method parameters in org.openstreetmap.josm.actions.upload with type arguments of type Relation Modifier and Type Method Description protected JPanel
RelationUploadOrderHook. buildWarningPanel(List<Relation> dep)
builds the panel which warns users about a cyclic dependency -
Uses of Relation in org.openstreetmap.josm.command
Fields in org.openstreetmap.josm.command declared as Relation Modifier and Type Field Description private Relation
ChangeMembersCommand. relation
private Relation
ChangeRelationMemberRoleCommand. relation
private Relation
SplitWayCommand.RelationAnalysis. relation
(package private) Relation
SplitWayCommand.RelationInformation. relation
Methods in org.openstreetmap.josm.command that return Relation Modifier and Type Method Description (package private) Relation
SplitWayCommand.RelationAnalysis. getRelation()
Methods in org.openstreetmap.josm.command with parameters of type Relation Modifier and Type Method Description (package private) static List<? extends OsmPrimitive>
SplitWayCommand. findVias(Relation r, String type)
private static boolean
PurgeCommand. hasOnlyIncompleteMembers(Relation r, Collection<OsmPrimitive> toPurge, Collection<? extends OsmPrimitive> moreToPurge)
private static SplitWayCommand.RelationInformation
SplitWayCommand. treatAsRestriction(Relation r, RelationMember rm, Relation c, Collection<Way> newWays, Way way, List<Node> changedWayNodes)
void
Command.CloneVisitor. visit(Relation e)
Method parameters in org.openstreetmap.josm.command with type arguments of type Relation Modifier and Type Method Description boolean
DeleteCommand.DeletionCallback. confirmRelationDeletion(Collection<Relation> relations)
Confirm before deleting a relation, as it is a common newbie error.Constructors in org.openstreetmap.josm.command with parameters of type Relation Constructor Description ChangeMembersCommand(DataSet data, Relation relation, List<RelationMember> newMembers)
Constructs a newChangeMembersCommand
in the context of a given data set.ChangeMembersCommand(Relation relation, List<RelationMember> newMembers)
Constructs a newChangeMembersCommand
in the context ofr
data set.ChangeRelationMemberRoleCommand(DataSet dataSet, Relation relation, int position, String newRole)
Constructs a newChangeRelationMemberRoleCommand
.ChangeRelationMemberRoleCommand(Relation relation, int position, String newRole)
Constructs a newChangeRelationMemberRoleCommand
.RelationAnalysis(Relation relation, RelationMember relationMember, SplitWayCommand.Direction direction, Set<Way> neededIncompleteMembers)
-
Uses of Relation in org.openstreetmap.josm.command.conflict
Fields in org.openstreetmap.josm.command.conflict with type parameters of type Relation Modifier and Type Field Description private Conflict<Relation>
RelationMemberConflictResolverCommand. conflict
the conflict to resolve -
Uses of Relation in org.openstreetmap.josm.data
Fields in org.openstreetmap.josm.data with type parameters of type Relation Modifier and Type Field Description private Map<Relation,Set<Relation>>
APIDataSet.RelationUploadDependencyGraph. children
private Map<Relation,Set<Relation>>
APIDataSet.RelationUploadDependencyGraph. children
private Collection<Relation>
APIDataSet.RelationUploadDependencyGraph. relations
private List<Relation>
APIDataSet.RelationUploadDependencyGraph. uploadOrder
private Set<Relation>
APIDataSet.RelationUploadDependencyGraph. visited
Methods in org.openstreetmap.josm.data that return types with arguments of type Relation Modifier and Type Method Description List<Relation>
APIDataSet.RelationUploadDependencyGraph. computeUploadOrder(boolean reverse)
protected List<Relation>
APIDataSet. filterRelationsNotReferringToNewRelations(Collection<Relation> relations)
Replies the subset of relations inrelations
which are not referring to any new relationSet<Relation>
APIDataSet.RelationUploadDependencyGraph. getChildren(Relation relation)
Methods in org.openstreetmap.josm.data with parameters of type Relation Modifier and Type Method Description void
APIDataSet.RelationUploadDependencyGraph. addDependency(Relation relation, Relation child)
Set<Relation>
APIDataSet.RelationUploadDependencyGraph. getChildren(Relation relation)
protected void
APIDataSet.RelationUploadDependencyGraph. visit(Stack<Relation> path, Relation current)
Method parameters in org.openstreetmap.josm.data with type arguments of type Relation Modifier and Type Method Description void
APIDataSet.RelationUploadDependencyGraph. build(Collection<Relation> relations)
protected List<Relation>
APIDataSet. filterRelationsNotReferringToNewRelations(Collection<Relation> relations)
Replies the subset of relations inrelations
which are not referring to any new relationprotected void
APIDataSet.RelationUploadDependencyGraph. visit(Stack<Relation> path, Relation current)
Constructor parameters in org.openstreetmap.josm.data with type arguments of type Relation Constructor Description RelationUploadDependencyGraph(Collection<Relation> relations, boolean newOrUndeleted)
-
Uses of Relation in org.openstreetmap.josm.data.correction
Fields in org.openstreetmap.josm.data.correction declared as Relation Modifier and Type Field Description Relation
RoleCorrection. relation
OSM relationConstructors in org.openstreetmap.josm.data.correction with parameters of type Relation Constructor Description RoleCorrection(Relation relation, int position, RelationMember member, String newRole)
Constructs a newRoleCorrection
. -
Uses of Relation in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm declared as Relation Modifier and Type Field Description private Relation
RelationToChildReference. parent
Fields in org.openstreetmap.josm.data.osm with type parameters of type Relation Modifier and Type Field Description private List<Relation>
CyclicUploadDependencyException. cycle
private QuadBucketPrimitiveStore<Node,Way,Relation>
DataSet. store
Methods in org.openstreetmap.josm.data.osm that return Relation Modifier and Type Method Description Relation
RelationToChildReference. getParent()
Get the parent relationRelation
RelationMember. getRelation()
Returns the relation member as a relation.private static Relation
OsmUtils. newRelation(LatLon around, boolean enforceLocation)
Methods in org.openstreetmap.josm.data.osm that return types with arguments of type Relation Modifier and Type Method Description List<Relation>
CyclicUploadDependencyException. getCyclicUploadDependency()
Gets the cyclestatic Set<Relation>
OsmPrimitive. getParentRelations(Collection<? extends OsmPrimitive> primitives)
Replies the set of referring relationsCollection<Relation>
DataSet. getRelations()
List<Relation>
DataSet. searchRelations(BBox bbox)
Set<Relation>
DataSet. unlinkPrimitiveFromRelations(OsmPrimitive primitive)
removes all references from relations in this dataset to this primitiveMethods in org.openstreetmap.josm.data.osm with parameters of type Relation Modifier and Type Method Description boolean
DataSet. containsRelation(Relation r)
Determines if the given relation can be retrieved in the data set through its bounding box.(package private) void
DataSet. fireRelationMembersChanged(Relation r)
protected String
CyclicUploadDependencyException. formatRelation(Relation r)
static Pair<List<MultipolygonBuilder.JoinedPolygon>,List<MultipolygonBuilder.JoinedPolygon>>
MultipolygonBuilder. joinWays(Relation multipolygon)
Joins the givenmultipolygon
to a pair of outer and inner multipolygon rings.private void
DataSetMerger. mergeRelationMembers(Relation source)
Merges the relation members of a source relation onto the corresponding target relation.Constructors in org.openstreetmap.josm.data.osm with parameters of type Relation Constructor Description Relation(Relation clone)
Create an identical clone of the argument (including the id) and links members to it.Relation(Relation clone, boolean clearMetadata)
Constructs an identical clone of the argument and links members to it.Relation(Relation clone, boolean clearMetadata, boolean copyMembers)
Constructs an identical clone of the argument and links members to it.RelationToChildReference(Relation parent, int position, String role, OsmPrimitive child)
Create a newRelationToChildReference
RelationToChildReference(Relation parent, int position, RelationMember member)
Create a newRelationToChildReference
Constructor parameters in org.openstreetmap.josm.data.osm with type arguments of type Relation Constructor Description CyclicUploadDependencyException(Stack<Relation> cycle)
Creates a newCyclicUploadDependencyException
-
Uses of Relation in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as Relation Modifier and Type Field Description private Relation
RelationMembersChangedEvent. relation
Methods in org.openstreetmap.josm.data.osm.event that return Relation Modifier and Type Method Description Relation
RelationMembersChangedEvent. getRelation()
Returns the relation affected by the change.Constructors in org.openstreetmap.josm.data.osm.event with parameters of type Relation Constructor Description RelationMembersChangedEvent(DataSet dataSet, Relation relation)
Constructs a newRelationMembersChangedEvent
. -
Uses of Relation in org.openstreetmap.josm.data.osm.history
Constructors in org.openstreetmap.josm.data.osm.history with parameters of type Relation Constructor Description HistoryRelation(Relation r)
Constructs a newHistoryRelation
from an existingRelation
. -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor
Methods in org.openstreetmap.josm.data.osm.visitor with parameters of type Relation Modifier and Type Method Description protected void
MergeSourceBuildingVisitor. rememberRelation(Relation r)
Remembers a relation in the hullprotected void
MergeSourceBuildingVisitor. rememberRelationPartial(Relation r)
void
AllNodesVisitor. visit(Relation e)
Relations may have any number of nodes.void
BoundingXYVisitor. visit(Relation r)
void
MergeSourceBuildingVisitor. visit(Relation r)
void
OsmPrimitiveVisitor. visit(Relation r)
Visiting call for relations. -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor.paint
Methods in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type Relation Modifier and Type Method Description void
StyledMapRenderer. drawArea(Relation r, Color color, MapImage fillImage, Float extent, Float extentThreshold, boolean disabled)
Draws a multipolygon area. -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor.paint.relations
Fields in org.openstreetmap.josm.data.osm.visitor.paint.relations with type parameters of type Relation Modifier and Type Field Description private Map<DataSet,Map<Relation,Multipolygon>>
MultipolygonCache. cache
Methods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type Relation Modifier and Type Method Description private Collection<Map<Relation,Multipolygon>>
MultipolygonCache. getMapsFor(DataSet ds)
private Collection<Map<Relation,Multipolygon>>
MultipolygonCache. updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event, Collection<? extends OsmPrimitive> primitives, DataSet ds, Collection<Map<Relation,Multipolygon>> initialMaps)
Methods in org.openstreetmap.josm.data.osm.visitor.paint.relations with parameters of type Relation Modifier and Type Method Description private static void
MultipolygonCache. dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation,Multipolygon>> maps)
Multipolygon
MultipolygonCache. get(Relation r)
Gets a multipolygon from cache.Multipolygon
MultipolygonCache. get(Relation r, boolean forceRefresh)
Gets a multipolygon from cache.private void
Multipolygon. load(Relation r)
private static void
MultipolygonCache. processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation,Multipolygon>> maps)
private static void
MultipolygonCache. removeMultipolygonFrom(Relation r, Collection<Map<Relation,Multipolygon>> maps)
Method parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type Relation Modifier and Type Method Description private static void
MultipolygonCache. dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation,Multipolygon>> maps)
private static void
MultipolygonCache. processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation,Multipolygon>> maps)
private static void
MultipolygonCache. removeMultipolygonFrom(Relation r, Collection<Map<Relation,Multipolygon>> maps)
Constructors in org.openstreetmap.josm.data.osm.visitor.paint.relations with parameters of type Relation Constructor Description Multipolygon(Relation r)
Constructs a newMultipolygon
from a relation. -
Uses of Relation in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation with parameters of type Relation Modifier and Type Method Description void
Test.TagTest. visit(Relation r)
void
Test. visit(Relation r)
-
Uses of Relation in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests declared as Relation Modifier and Type Field Description private Relation
MultipolygonTest. createdRelation
set when used to build a multipolygon relationFields in org.openstreetmap.josm.data.validation.tests with type parameters of type Relation Modifier and Type Field Description private List<List<Relation>>
RelationChecker. loops
Methods in org.openstreetmap.josm.data.validation.tests that return Relation Modifier and Type Method Description Relation
MultipolygonTest. makeFromWays(Collection<Way> ways)
Create a multipolygon relation from the given ways and test it.Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type Relation Modifier and Type Method Description static List<Relation>
RelationChecker. checkAddMember(Relation parent, Relation child)
Check if adding one relation to another would produce a circular dependency.protected List<Relation>
Addresses. getAndCheckAssociatedStreets(OsmPrimitive p)
Methods in org.openstreetmap.josm.data.validation.tests with parameters of type Relation Modifier and Type Method Description private void
MultipolygonTest. addRepeatedMemberError(Relation r, List<OsmPrimitive> repeatedMembers, int errorCode, String msg)
private static Map<Roles.Role,String>
RelationChecker. buildAllRoles(Relation n)
private static Map<String,RelationChecker.RoleInfo>
RelationChecker. buildRoleInfoMap(Relation n)
static List<Relation>
RelationChecker. checkAddMember(Relation parent, Relation child)
Check if adding one relation to another would produce a circular dependency.private boolean
ConnectivityRelations. checkForBadRole(Relation relation)
Check if the roles of the relation are appropriateprivate void
ConnectivityRelations. checkForImpliedConnectivity(Relation relation, Map<String,Integer> roleLanes, Map<Integer,Map<Integer,Boolean>> connTagLanes)
Check the relation to see if the connectivity described is already implied by other dataprivate Map<String,Integer>
ConnectivityRelations. checkForInconsistentLanes(Relation relation, Map<Integer,Map<Integer,Boolean>> connTagLanes)
Compare lane tags of members to values in theconnectivity
tag of the relationprivate static boolean
ConnectivityRelations. checkForIntersectionAtMembers(Relation relation)
Check to see if there is an intersection present at the via memberprivate static boolean
ConnectivityRelations. checkForMissingRole(Relation relation)
Check if the relation contains all necessary rolesprivate void
MultipolygonTest. checkGeometryAndRoles(Relation r, Multipolygon polygon)
Various geometry-related checks:MultipolygonTest.NON_CLOSED_WAY
: Multipolygon is not closedMultipolygonTest.INNER_WAY_OUTSIDE
: Multipolygon inner way is outsideMultipolygonTest.CROSSING_WAYS
: Intersection between multipolygon waysprivate void
TurnrestrictionTest. checkIfConnected(Relation r, Way previous, Way current, String msg, int code)
private void
Addresses. checkIfObsolete(Relation r)
Check if an associatedStreet Relation is obsolete.private void
RelationChecker. checkLoop(Relation r)
Check if a given relation is part of a circular dependency loop.private void
RelationChecker. checkLoop(Relation parent, List<Relation> path)
private boolean
RelationChecker. checkMemberExpressionAndType(Map<Roles.Role,String> allroles, RelationMember member, Relation n)
get all role definition for specified key and check, if some definition matchesprivate boolean
MultipolygonTest. checkMembersAndRoles(Relation r, List<TestError> tmpErrors)
Check for:MultipolygonTest.WRONG_MEMBER_ROLE
: No useful role for multipolygon memberMultipolygonTest.WRONG_MEMBER_TYPE
: Non-Way in multipolygonprivate static boolean
ConnectivityRelations. checkMemberTagsForImpliedConnectivity(Relation relation, Map<String,Integer> roleLanes)
Check the relation to see if the connectivity described is already implied by the relation members' tagsprivate void
MultipolygonTest. checkOrSetRoles(Relation r, List<Multipolygon.PolyData> allPolygons, Map<Long,RelationMember> wayMap, Set<Node> sharedNodes)
Calculate the nesting levels of the polygon rings and check if calculated role matchesprivate void
TagChecker. checkOuterWaysOfRelation(Relation rel)
Check if an outer way of the relation has the same tag as the relation.private void
MultipolygonTest. checkPolygonForSelfIntersection(Relation r, Multipolygon.PolyData pd)
Check if a polygon ring is self-intersecting when the ring was build from multiple ways.private void
MultipolygonTest. checkPolygonsForSharedNodes(Relation r, Multipolygon.PolyData pd1, Multipolygon.PolyData pd2, Set<Node> allSharedNodes)
private boolean
MultipolygonTest. checkRepeatedWayMembers(Relation r)
Check for:MultipolygonTest.REPEATED_MEMBER_DIFF_ROLE
: Multipolygon member repeated with different roleMultipolygonTest.REPEATED_MEMBER_SAME_ROLE
: Multipolygon member repeated with same roleprivate void
RelationChecker. checkRoleCounts(Relation n, Roles.Role r, String keyname, RelationChecker.RoleInfo ri)
private void
RelationChecker. checkRoles(Relation n, Map<Roles.Role,String> allroles, Map<String,RelationChecker.RoleInfo> map)
private void
MultipolygonTest. checkStyleConsistency(Relation r, Multipolygon polygon)
Various style-related checks:MultipolygonTest.NO_STYLE
: No area style for multipolygonMultipolygonTest.INNER_STYLE_MISMATCH
: With the currently used mappaint style the style for inner way equals the multipolygon styleMultipolygonTest.OUTER_STYLE_MISMATCH
: With the currently used mappaint style the style for outer way mismatches the area styleMultipolygonTest.OUTER_STYLE
: Area style on outer wayprivate static Collection<? extends OsmPrimitive>
MultipolygonTest. combineRelAndPrimitives(Relation r, Collection<? extends OsmPrimitive> primitives)
private static Map<List<Way>,List<WaySegment>>
MultipolygonTest. findIntersectingWays(Relation r, boolean findSharedWaySegments)
SeeCrossingWays
private Map<Multipolygon.PolyData,List<Multipolygon.PolyData>>
MultipolygonTest. findIntersectingWays(Relation r, List<Multipolygon.PolyData> innerPolygons, List<Multipolygon.PolyData> outerPolygons)
Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private void
MultipolygonTest. findIntersectingWaysIncomplete(Relation r)
Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private static void
MultipolygonTest. findIntersectionNodes(Relation r, Set<Node> sharedNodes, Set<Way> intersectionWays)
Detect intersections of multipolygon ways at nodes.private static boolean
TurnrestrictionTest. hasSupportedRestrictionTag(Relation r)
private boolean
ConnectivityRelations. mixedViaNodeAndWay(Relation relation, int viaWays, int viaNodes)
Check if the relation's roles are on appropriate objectsstatic Map<Integer,Map<Integer,Boolean>>
ConnectivityRelations. parseConnectivityTag(Relation relation)
Convert the connectivity tag into a map of valuesvoid
Addresses. visit(Relation r)
void
ConnectivityRelations. visit(Relation r)
void
CrossingWays.Boundaries. visit(Relation r)
void
DuplicateRelation. visit(Relation r)
void
MultipolygonTest. visit(Relation r)
void
PowerLines. visit(Relation r)
void
PublicTransportRouteTest. visit(Relation r)
void
RelationChecker. visit(Relation n)
void
TurnrestrictionTest. visit(Relation r)
Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type Relation Modifier and Type Method Description private void
RelationChecker. checkLoop(Relation parent, List<Relation> path)
-
Uses of Relation in org.openstreetmap.josm.data.validation.util
Methods in org.openstreetmap.josm.data.validation.util with parameters of type Relation Modifier and Type Method Description void
AggregatePrimitivesVisitor. visit(Relation r)
void
NameVisitor. visit(Relation e)
-
Uses of Relation in org.openstreetmap.josm.gui.conflict.pair.relation
Methods in org.openstreetmap.josm.gui.conflict.pair.relation with parameters of type Relation Modifier and Type Method Description void
RelationMemberListMergeModel. populate(Relation my, Relation their, Map<PrimitiveId,PrimitiveId> mergedMap)
populates the model with the relation members in relation my and their -
Uses of Relation in org.openstreetmap.josm.gui.conflict.tags
Fields in org.openstreetmap.josm.gui.conflict.tags declared as Relation Modifier and Type Field Description private Relation
RelationMemberConflictDecision. relation
Fields in org.openstreetmap.josm.gui.conflict.tags with type parameters of type Relation Modifier and Type Field Description protected Collection<Relation>
RelationMemberConflictResolverModel. relations
the collection of relations for which we manage conflictsMethods in org.openstreetmap.josm.gui.conflict.tags that return Relation Modifier and Type Method Description Relation
RelationMemberConflictDecision. getRelation()
Methods in org.openstreetmap.josm.gui.conflict.tags that return types with arguments of type Relation Modifier and Type Method Description Set<Relation>
RelationMemberConflictResolverModel. getModifiedRelations(OsmPrimitive newPrimitive)
Replies the set of relations which have to be modified according to the decisions managed by this model.Methods in org.openstreetmap.josm.gui.conflict.tags with parameters of type Relation Modifier and Type Method Description protected Command
RelationMemberConflictResolverModel. buildResolveCommand(Relation relation, OsmPrimitive newPrimitive)
protected RelationMemberConflictDecision
RelationMemberConflictResolverModel. getDecision(Relation relation, int pos)
protected boolean
RelationMemberConflictResolverModel. isChanged(Relation relation, OsmPrimitive newPrimitive)
boolean
RelationMemberConflictDecision. matches(Relation relation, int pos)
protected void
RelationMemberConflictResolverModel. populate(Relation relation, OsmPrimitive primitive)
Populates the model with the members of the relationrelation
referring toprimitive
.Method parameters in org.openstreetmap.josm.gui.conflict.tags with type arguments of type Relation Modifier and Type Method Description protected static void
CombinePrimitiveResolverDialog. informAboutRelationMembershipConflicts(Collection<? extends OsmPrimitive> primitives, Set<Relation> parentRelations)
Inform a non-expert user about what relation membership conflict resolution means.void
RelationMemberConflictResolverModel. populate(Collection<Relation> relations, Collection<? extends OsmPrimitive> memberPrimitives)
Populates the model with the relation members belonging to one of the relations inrelations
and referring to one of the primitives inmemberPrimitives
.(package private) void
RelationMemberConflictResolverModel. populate(Collection<Relation> relations, Collection<? extends OsmPrimitive> memberPrimitives, boolean fireEvent)
Populates the model with the relation members belonging to one of the relations inrelations
and referring to one of the primitives inmemberPrimitives
.Constructors in org.openstreetmap.josm.gui.conflict.tags with parameters of type Relation Constructor Description RelationMemberConflictDecision(Relation relation, int pos)
-
Uses of Relation in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs with type parameters of type Relation Modifier and Type Field Description private Set<Relation>
ConflictDialog.ConflictPainter. visited
Methods in org.openstreetmap.josm.gui.dialogs with parameters of type Relation Modifier and Type Method Description void
RelationListDialog. selectRelation(Relation relation)
Selects the relationrelation
in the list of relations.void
ConflictDialog.ConflictPainter. visit(Relation e)
-
Uses of Relation in org.openstreetmap.josm.gui.dialogs.properties
Methods in org.openstreetmap.josm.gui.dialogs.properties with parameters of type Relation Modifier and Type Method Description (package private) static void
RelationRoleEditor. editRole(Relation relation, PropertiesDialog.MemberInfo memberInfo)
Shows an {input dialog in order to quickly change the roles of the selected members. -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation
Fields in org.openstreetmap.josm.gui.dialogs.relation declared as Relation Modifier and Type Field Description private Relation
ChildRelationBrowser.DownloadAllChildrenTask. relation
private Relation
MemberRoleCellEditor. relation
private Relation
MemberTableModel. relation
private Relation
ReferringRelationsBrowserModel. relation
the relationRelation
RelationDialogManager.DialogContext. relation
private Relation
RelationEditor. relation
The relation that this editor is working on.private Relation
RelationTree.RelationLoader. relation
private Relation
RelationEditor. relationSnapshot
The version of the relation when editing is started.private Relation
RelationTreeModel. root
the root relationFields in org.openstreetmap.josm.gui.dialogs.relation with type parameters of type Relation Modifier and Type Field Description private Set<Relation>
DownloadRelationMemberTask. parents
private JList<Relation>
ReferringRelationsBrowser. referrers
the list of relationsprivate List<Relation>
ReferringRelationsBrowserModel. referrers
private Set<Relation>
ChildRelationBrowser.DownloadRelationSetTask. relations
private Collection<Relation>
DownloadRelationTask. relations
Methods in org.openstreetmap.josm.gui.dialogs.relation that return Relation Modifier and Type Method Description Relation
ReferringRelationsBrowserModel. getElementAt(int index)
Relation
IRelationEditor. getRelation()
Replies the currently edited relationRelation
ReferringRelationsBrowserModel. getRelation()
Returns the relation.Relation
RelationEditor. getRelation()
protected Relation
RelationTreeModel. getRelationChildByIdx(Relation parent, int idx)
Replies the i-th child of type relation for a particular relationparent
.Relation
IRelationEditor. getRelationSnapshot()
Replies the state of the edited relation when the editor has been launched.Relation
RelationEditor. getRelationSnapshot()
Methods in org.openstreetmap.josm.gui.dialogs.relation with parameters of type Relation Modifier and Type Method Description static Command
GenericRelationEditor. addPrimitivesToRelation(Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd)
Adds primitives to a given relation.void
MemberTableModel. applyToRelation(Relation relation)
Applies this member model to the given relation.protected static void
GenericRelationEditor. cleanSelfReferences(MemberTableModel memberTableModel, Relation relation)
checks whether the current relation has members referring to itself.void
RelationDialogManager. close(OsmDataLayer layer, Relation relation)
Closes the editor open for a specific layer and a specific relation.static RelationEditor
RelationEditor. getEditor(OsmDataLayer layer, Relation r, Collection<RelationMember> selectedMembers)
This is a factory method that creates an appropriate RelationEditor instance suitable for editing the relation that was passed in as an argument.RelationEditor
RelationDialogManager. getEditorForRelation(OsmDataLayer layer, Relation relation)
Replies the editor for the relation managed by layer.protected int
RelationTreeModel. getIndexForRelationChild(Relation parent, Relation child)
Replies the index of a particularchild
with respect to itsparent
.protected int
RelationTreeModel. getNumRelationChildren(Relation parent)
Replies the number of children of type relation for a particular relationparent
protected Relation
RelationTreeModel. getRelationChildByIdx(Relation parent, int idx)
Replies the i-th child of type relation for a particular relationparent
.boolean
MemberTableModel. hasSameMembersAs(Relation relation)
Determines if this model has the same members as the given relation.boolean
RelationDialogManager. isOpenInEditor(OsmDataLayer layer, Relation relation)
Replies true if there is an open relation editor for the relation managed by the given layer.protected boolean
ReferringRelationsBrowserModel. isReferringRelation(Relation parent)
void
ChildRelationBrowser. populate(Relation r)
populates the browser with a relationvoid
MemberTableModel. populate(Relation relation)
Populates this model from the given relation.void
RelationTreeModel. populate(Relation root)
Populates the model with a root relationprivate void
GenericRelationEditor. populateModels(Relation relation)
protected void
ChildRelationBrowser.DownloadTask. refreshView(Relation relation)
void
RelationDialogManager. register(OsmDataLayer layer, Relation relation, RelationEditor editor)
Register the relation editor for a relation managed by aOsmDataLayer
.protected void
RelationTreeCellRenderer. renderValue(Relation relation)
renders the textual value.void
IRelationEditor. setRelation(Relation relation)
Sets the currently edited relation.void
ReferringRelationsBrowserModel. setRelation(Relation relation)
Sets the relation.void
RelationEditor. setRelation(Relation relation)
protected void
RelationEditor. setRelationSnapshot(Relation snapshot)
void
RelationDialogManager. updateContext(OsmDataLayer layer, Relation relation, RelationEditor editor)
protected void
ChildRelationBrowser.DownloadAllChildrenTask. warnBecauseOfDeletedRelation(Relation r)
warns the user if a relation couldn't be loaded because it was deleted on the server (the server replied a HTTP code 410)Method parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type Relation Modifier and Type Method Description void
ReferringRelationsBrowserModel. populate(List<Relation> parents)
Populates the model with parent referrers.static void
GenericRelationEditor. warnOfCircularReferences(OsmPrimitive primitive, List<Relation> loop)
Warn about circular references.Constructors in org.openstreetmap.josm.gui.dialogs.relation with parameters of type Relation Constructor Description ChildRelationBrowser(OsmDataLayer layer, Relation root)
constructorDialogContext(OsmDataLayer layer, Relation relation)
DownloadAllChildrenTask(Dialog parent, Relation r)
DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer)
DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer, Dialog dialog)
GenericRelationEditor(OsmDataLayer layer, Relation relation, Collection<RelationMember> selectedMembers)
Creates a new relation editor for the given relation.MemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation)
Constructs a newMemberRoleCellEditor
.MemberTable(OsmDataLayer layer, Relation relation, MemberTableModel model)
constructor for relation member tableMemberTableColumnModel(AutoCompletionManager autoCompletionManager, Relation relation)
Constructs a newMemberTableColumnModel
.MemberTableModel(Relation relation, OsmDataLayer layer, TaggingPresetHandler presetHandler)
constructorReferringRelationsBrowserModel(Relation relation)
Constructs a newReferringRelationsBrowserModel
.RelationEditor(OsmDataLayer layer, Relation relation)
Creates a new relation editorRelationLoader(Dialog dialog, Relation relation, TreePath path)
Constructor parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type Relation Constructor Description DownloadRelationMemberTask(Collection<Relation> parents, Collection<OsmPrimitive> children, OsmDataLayer curLayer)
Creates a download task for downloading the child primitiveschildren
for all parent relations inparents
.DownloadRelationSetTask(Dialog parent, Set<Relation> relations)
DownloadRelationTask(Collection<Relation> relations, OsmDataLayer layer)
Creates the download task -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation.actions
Methods in org.openstreetmap.josm.gui.dialogs.relation.actions with parameters of type Relation Modifier and Type Method Description protected Collection<RelationMember>
EditAction. getMembersForCurrentSelection(Relation r)
-
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation.sort
Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with parameters of type Relation Modifier and Type Method Description private WayConnectionType
WayConnectionTypeCalculator. computeNextWayConnection(Relation r, List<WayConnectionType> con, WayConnectionType lastWct, int i, RelationMember m)
private static boolean
WayConnectionTypeCalculator. isOnewayIgnored(Relation r)
private boolean
WayConnectionTypeCalculator. isSuperRoute(Relation r)
List<WayConnectionType>
WayConnectionTypeCalculator. updateLinks(Relation r, List<RelationMember> members)
refresh the cache of member WayConnectionTypesprivate WayConnectionType
WayConnectionTypeCalculator. updateLinksFor(Relation r, List<WayConnectionType> con, WayConnectionType lastWct, int i)
-
Uses of Relation in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history with parameters of type Relation Modifier and Type Method Description void
HistoryBrowserModel.HistoryPrimitiveBuilder. visit(Relation r)
-
Uses of Relation in org.openstreetmap.josm.gui.layer
Fields in org.openstreetmap.josm.gui.layer with type parameters of type Relation Modifier and Type Field Description private Map<Relation,Void>
OsmDataLayer. recentRelations
List of recent relationsMethods in org.openstreetmap.josm.gui.layer that return types with arguments of type Relation Modifier and Type Method Description List<Relation>
OsmDataLayer. getRecentRelations()
Returns list of recently closed relations or null if none.Methods in org.openstreetmap.josm.gui.layer with parameters of type Relation Modifier and Type Method Description void
OsmDataLayer. removeRecentRelation(Relation relation)
Remove relation from list of recent relations.void
OsmDataLayer. setRecentRelation(Relation relation)
Adds recently closed relation.void
OsmDataLayer.DataCountVisitor. visit(Relation r)
-
Uses of Relation in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type Relation Modifier and Type Method Description void
PaintVisitor. visit(Relation r)
-
Uses of Relation in org.openstreetmap.josm.gui.tagging.ac
Methods in org.openstreetmap.josm.gui.tagging.ac with parameters of type Relation Modifier and Type Method Description protected void
AutoCompletionManager. cacheRelationMemberRoles(Relation relation)
Caches all member roles of the relationrelation
void
AutoCompletionManager. populateWithMemberRoles(AutoCompletionList list, Relation r)
Populates theAutoCompletionList
with the roles used in this relation plus the ones defined in its applicable presets, if any. -
Uses of Relation in org.openstreetmap.josm.gui.util
Method parameters in org.openstreetmap.josm.gui.util with type arguments of type Relation Modifier and Type Method Description private boolean
HighlightHelper. setHighlight(OsmPrimitive p, boolean flag, Set<Relation> seenRelations)
-
Uses of Relation in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io that return Relation Modifier and Type Method Description protected Relation
AbstractReader. parseRelation(AbstractReader.CommonReader commonReader, AbstractReader.RelationReader relationReader)
protected Relation
OsmReader. parseRelation()
Methods in org.openstreetmap.josm.io with parameters of type Relation Modifier and Type Method Description protected MultiFetchServerObjectReader
MultiFetchServerObjectReader. appendRelation(Relation relation)
appends aRelation
id to the list of ids which will be fetched from the server.void
GeoJSONWriter.GeometryPrimitiveVisitor. visit(Relation r)
Method parameters in org.openstreetmap.josm.io with type arguments of type Relation Modifier and Type Method Description void
OsmWriter. writeRelations(Collection<Relation> relations)
Writes the given relations sorted by id -
Uses of Relation in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools with parameters of type Relation Modifier and Type Method Description static List<IPrimitive>
Geometry. filterInsideMultipolygon(Collection<IPrimitive> primitives, Relation multiPolygon)
Find all primitives in the given collection which are inside the given multipolygon.static Area
Geometry. getAreaLatLon(Relation multipolygon)
Returns the Area of a polygon, from the multipolygon relation.static boolean
Geometry. isNodeInsideMultiPolygon(INode node, Relation multiPolygon, Predicate<Way> isOuterWayAMatch)
Tests if thenode
is inside the multipolygonmultiPolygon
.static boolean
Geometry. isPolygonInsideMultiPolygon(List<? extends INode> nodes, Relation multiPolygon, Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed bynodes
is inside the multipolygonmultiPolygon
.static double
Geometry. multipolygonArea(Relation multipolygon)
Returns area of a multipolygon in square meters.Constructors in org.openstreetmap.josm.tools with parameters of type Relation Constructor Description DefaultGeoProperty(Relation multipolygon)
Create DefaultGeoProperty based on a multipolygon relation.
-