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,RelationUsersTagsChangesetsUtilities 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 cachingMultipolygonrelations.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 RelationCreateMultipolygonAction.CreateUpdateMultipolygonTask. multipolygonRelationRelationJoinAreasAction.RelationRole. relFields in org.openstreetmap.josm.actions with type parameters of type Relation Modifier and Type Field Description private java.util.List<Relation>JoinAreasAction. addedRelationsMethods in org.openstreetmap.josm.actions that return Relation Modifier and Type Method Description private static RelationCreateMultipolygonAction. getSelectedMultipolygonRelation(java.util.Collection<Way> selectedWays, java.util.Collection<Relation> selectedRelations)Methods in org.openstreetmap.josm.actions that return types with arguments of type Relation Modifier and Type Method Description protected java.util.Set<Relation>UnGlueAction. calcAffectedRelations(java.util.Collection<Way> ways)static Pair<SequenceCommand,Relation>CreateMultipolygonAction. createMultipolygonCommand(java.util.Collection<Way> selectedWays, Relation selectedMultipolygonRelation)static Pair<Relation,Relation>CreateMultipolygonAction. createMultipolygonRelation(java.util.Collection<Way> selectedWays, boolean showNotif)static Pair<Relation,Relation>CreateMultipolygonAction. createMultipolygonRelation(java.util.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(java.util.Collection<Way> selectedWays, Relation selectedMultipolygonRelation)static Pair<Relation,Relation>CreateMultipolygonAction. updateMultipolygonRelation(java.util.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(java.util.Collection<Way> selectedWays, Relation selectedMultipolygonRelation)private static booleanUnGlueAction. isRelationAffected(Relation r, java.util.Set<Node> affectedNodes, java.util.Collection<Way> ways)private static Pair<Relation,Relation>CreateMultipolygonAction. mergeRelationsMembers(Relation old, Relation calculated)Merge members of multipolygon relation.static java.util.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(java.util.Collection<Way> selectedWays, Relation selectedMultipolygonRelation)voidUploadSelectionAction.UploadHullBuilder. visit(Relation r)Method parameters in org.openstreetmap.josm.actions with type arguments of type Relation Modifier and Type Method Description static booleanDeleteAction. confirmRelationDeletion(java.util.Collection<Relation> relations)Confirm before deleting a relation, as it is a common newbie error.private voidJoinAreasAction. fixRelations(java.util.List<JoinAreasAction.RelationRole> rels, Way outer, JoinAreasAction.RelationRole ownMultipol, java.util.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(java.util.Collection<Way> selectedWays, Relation multipolygonRelation)RelationRole(Relation rel, java.lang.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 voidDeleteAction. 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 voidDeleteAction. deleteRelations(OsmDataLayer layer, java.util.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 RelationRecentRelationsAction.RecentRelationsMenuItem. relationFields in org.openstreetmap.josm.actions.relation with type parameters of type Relation Modifier and Type Field Description protected java.util.Collection<Relation>ExportRelationToGpxAction. relationsPrimitives this action works onMethods in org.openstreetmap.josm.actions.relation that return Relation Modifier and Type Method Description static RelationRecentRelationsAction. 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 java.util.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 booleanDuplicateRelationAction. confirmRelationDuplicate(Relation relation)static voidDuplicateRelationAction. duplicateRelationAndLaunchEditor(Relation original)Duplicates the given relation and launches the relation editor for the created copy.static java.util.Set<RelationMember>EditRelationAction. getMembersForCurrentSelection(Relation r)Returns the set of currently selected relation members for the given relation.static booleanRecentRelationsAction. isRelationListable(Relation relation)Determines if the given relation is listable in last relations.static voidEditRelationAction. 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 voidDeleteRelationsAction. deleteRelation(java.util.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(java.util.List<Relation> recentRelations, javax.swing.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 javax.swing.JPanelRelationUploadOrderHook. buildWarningPanel(java.util.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 RelationChangeMembersCommand. relationprivate RelationChangeRelationMemberRoleCommand. relationprivate RelationSplitWayCommand.RelationAnalysis. relation(package private) RelationSplitWayCommand.RelationInformation. relationMethods in org.openstreetmap.josm.command that return Relation Modifier and Type Method Description (package private) RelationSplitWayCommand.RelationAnalysis. getRelation()Methods in org.openstreetmap.josm.command with parameters of type Relation Modifier and Type Method Description private static voidSplitWayCommand. addSortedWays(int position, int indexOfWayToKeep, SplitWayCommand.Direction direction, java.util.List<Way> newWays, Relation relation)Add ways in a sorted manner(package private) static java.util.List<? extends OsmPrimitive>SplitWayCommand. findVias(Relation r, java.lang.String type)private static booleanPurgeCommand. hasOnlyIncompleteMembers(Relation r, java.util.Collection<OsmPrimitive> toPurge, java.util.Collection<? extends OsmPrimitive> moreToPurge)private static booleanSplitWayCommand. needToReverseSplit(int position, int indexOfWayToKeep, Relation relation, java.util.List<Way> newWays)This is only strictly necessary when we are splitting a route where it starts to loop back.private static SplitWayCommand.RelationInformationSplitWayCommand. treatAsRestriction(Relation r, RelationMember rm, Relation c, java.util.Collection<Way> newWays, Way way, java.util.List<Node> changedWayNodes)voidCommand.CloneVisitor. visit(Relation e)Method parameters in org.openstreetmap.josm.command with type arguments of type Relation Modifier and Type Method Description booleanDeleteCommand.DeletionCallback. confirmRelationDeletion(java.util.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, java.util.List<RelationMember> newMembers)Constructs a newChangeMembersCommandin the context of a given data set.ChangeMembersCommand(Relation relation, java.util.List<RelationMember> newMembers)Constructs a newChangeMembersCommandin the context ofrdata set.ChangeRelationMemberRoleCommand(DataSet dataSet, Relation relation, int position, java.lang.String newRole)Constructs a newChangeRelationMemberRoleCommand.ChangeRelationMemberRoleCommand(Relation relation, int position, java.lang.String newRole)Constructs a newChangeRelationMemberRoleCommand.RelationAnalysis(Relation relation, RelationMember relationMember, SplitWayCommand.Direction direction, java.util.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. conflictthe 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 java.util.Map<Relation,java.util.Set<Relation>>APIDataSet.RelationUploadDependencyGraph. childrenprivate java.util.Map<Relation,java.util.Set<Relation>>APIDataSet.RelationUploadDependencyGraph. childrenprivate java.util.Collection<Relation>APIDataSet.RelationUploadDependencyGraph. relationsprivate java.util.List<Relation>APIDataSet.RelationUploadDependencyGraph. uploadOrderprivate java.util.Set<Relation>APIDataSet.RelationUploadDependencyGraph. visitedMethods in org.openstreetmap.josm.data that return types with arguments of type Relation Modifier and Type Method Description java.util.List<Relation>APIDataSet.RelationUploadDependencyGraph. computeUploadOrder(boolean reverse)protected java.util.List<Relation>APIDataSet. filterRelationsNotReferringToNewRelations(java.util.Collection<Relation> relations)Replies the subset of relations inrelationswhich are not referring to any new relationjava.util.Set<Relation>APIDataSet.RelationUploadDependencyGraph. getChildren(Relation relation)Methods in org.openstreetmap.josm.data with parameters of type Relation Modifier and Type Method Description voidAPIDataSet.RelationUploadDependencyGraph. addDependency(Relation relation, Relation child)java.util.Set<Relation>APIDataSet.RelationUploadDependencyGraph. getChildren(Relation relation)protected voidAPIDataSet.RelationUploadDependencyGraph. visit(java.util.Stack<Relation> path, Relation current)Method parameters in org.openstreetmap.josm.data with type arguments of type Relation Modifier and Type Method Description voidAPIDataSet.RelationUploadDependencyGraph. build(java.util.Collection<Relation> relations)protected java.util.List<Relation>APIDataSet. filterRelationsNotReferringToNewRelations(java.util.Collection<Relation> relations)Replies the subset of relations inrelationswhich are not referring to any new relationprotected voidAPIDataSet.RelationUploadDependencyGraph. visit(java.util.Stack<Relation> path, Relation current)Constructor parameters in org.openstreetmap.josm.data with type arguments of type Relation Constructor Description RelationUploadDependencyGraph(java.util.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 RelationRoleCorrection. relationOSM relationConstructors in org.openstreetmap.josm.data.correction with parameters of type Relation Constructor Description RoleCorrection(Relation relation, int position, RelationMember member, java.lang.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 RelationRelationToChildReference. parentFields in org.openstreetmap.josm.data.osm with type parameters of type Relation Modifier and Type Field Description private java.util.List<Relation>CyclicUploadDependencyException. cycleprivate QuadBucketPrimitiveStore<Node,Way,Relation>DataSet. storeMethods in org.openstreetmap.josm.data.osm that return Relation Modifier and Type Method Description RelationRelationToChildReference. getParent()Get the parent relationRelationRelationMember. getRelation()Returns the relation member as a relation.private static RelationOsmUtils. 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 java.util.List<Relation>CyclicUploadDependencyException. getCyclicUploadDependency()Gets the cyclestatic java.util.Set<Relation>OsmPrimitive. getParentRelations(java.util.Collection<? extends OsmPrimitive> primitives)Replies the set of referring relationsjava.util.Collection<Relation>DataSet. getRelations()java.util.List<Relation>DataSet. searchRelations(BBox bbox)java.util.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 booleanDataSet. containsRelation(Relation r)Determines if the given relation can be retrieved in the data set through its bounding box.(package private) voidDataSet. fireRelationMembersChanged(Relation r)protected java.lang.StringCyclicUploadDependencyException. formatRelation(Relation r)static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>MultipolygonBuilder. joinWays(java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>> cache, Relation multipolygon)Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>MultipolygonBuilder. joinWays(Relation multipolygon)Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.private voidDataSetMerger. 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, java.lang.String role, OsmPrimitive child)Create a newRelationToChildReferenceRelationToChildReference(Relation parent, int position, RelationMember member)Create a newRelationToChildReferenceConstructor parameters in org.openstreetmap.josm.data.osm with type arguments of type Relation Constructor Description CyclicUploadDependencyException(java.util.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 RelationRelationMembersChangedEvent. relationMethods in org.openstreetmap.josm.data.osm.event that return Relation Modifier and Type Method Description RelationRelationMembersChangedEvent. 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 newHistoryRelationfrom 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 voidMergeSourceBuildingVisitor. rememberRelation(Relation r)Remembers a relation in the hullprotected voidMergeSourceBuildingVisitor. rememberRelationPartial(Relation r)voidAllNodesVisitor. visit(Relation e)Relations may have any number of nodes.voidBoundingXYVisitor. visit(Relation r)voidMergeSourceBuildingVisitor. visit(Relation r)voidOsmPrimitiveVisitor. 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 voidStyledMapRenderer. drawArea(Relation r, java.awt.Color color, MapImage fillImage, java.lang.Float extent, java.lang.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 java.util.Map<DataSet,java.util.Map<Relation,Multipolygon>>MultipolygonCache. cacheMethods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type Relation Modifier and Type Method Description private java.util.Collection<java.util.Map<Relation,Multipolygon>>MultipolygonCache. getMapsFor(DataSet ds)private java.util.Collection<java.util.Map<Relation,Multipolygon>>MultipolygonCache. updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event, java.util.Collection<? extends OsmPrimitive> primitives, DataSet ds, java.util.Collection<java.util.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 voidMultipolygonCache. dispatchEvent(AbstractDatasetChangedEvent event, Relation r, java.util.Collection<java.util.Map<Relation,Multipolygon>> maps)MultipolygonMultipolygonCache. get(Relation r)Gets a multipolygon from cache.MultipolygonMultipolygonCache. get(Relation r, boolean forceRefresh)Gets a multipolygon from cache.private voidMultipolygon. load(Relation r)private static voidMultipolygonCache. processEvent(AbstractDatasetChangedEvent event, Relation r, java.util.Collection<java.util.Map<Relation,Multipolygon>> maps)private static voidMultipolygonCache. removeMultipolygonFrom(Relation r, java.util.Collection<java.util.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 voidMultipolygonCache. dispatchEvent(AbstractDatasetChangedEvent event, Relation r, java.util.Collection<java.util.Map<Relation,Multipolygon>> maps)private static voidMultipolygonCache. processEvent(AbstractDatasetChangedEvent event, Relation r, java.util.Collection<java.util.Map<Relation,Multipolygon>> maps)private static voidMultipolygonCache. removeMultipolygonFrom(Relation r, java.util.Collection<java.util.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 newMultipolygonfrom 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 voidTest.TagTest. visit(Relation r)voidTest. 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 RelationMultipolygonTest. createdRelationset 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 java.util.List<java.util.List<Relation>>RelationChecker. loops(package private) java.util.List<Relation>DuplicateRelation. visitedList of all initially visited testable relationsMethods in org.openstreetmap.josm.data.validation.tests that return Relation Modifier and Type Method Description RelationMultipolygonTest. makeFromWays(java.util.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 java.util.List<Relation>RelationChecker. checkAddMember(Relation parent, Relation child)Check if adding one relation to another would produce a circular dependency.protected java.util.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 voidMultipolygonTest. addRepeatedMemberError(Relation r, java.util.List<OsmPrimitive> repeatedMembers, int errorCode, java.lang.String msg)private static voidDuplicateRelation. addToRelations(MultiMap<DuplicateRelation.RelationPair,Relation> relations, Relation r, boolean forceAdd)private static java.util.Map<Roles.Role,java.lang.String>RelationChecker. buildAllRoles(Relation n)private static java.util.Map<java.lang.String,RelationChecker.RoleInfo>RelationChecker. buildRoleInfoMap(Relation n)static java.util.List<Relation>RelationChecker. checkAddMember(Relation parent, Relation child)Check if adding one relation to another would produce a circular dependency.private booleanConnectivityRelations. checkForBadRole(Relation relation)Check if the roles of the relation are appropriateprivate voidConnectivityRelations. checkForImpliedConnectivity(Relation relation, java.util.Map<java.lang.String,java.lang.Integer> roleLanes, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Boolean>> connTagLanes)Check the relation to see if the connectivity described is already implied by other dataprivate java.util.Map<java.lang.String,java.lang.Integer>ConnectivityRelations. checkForInconsistentLanes(Relation relation, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Boolean>> connTagLanes)Compare lane tags of members to values in theconnectivitytag of the relationprivate static booleanConnectivityRelations. checkForIntersectionAtMembers(Relation relation)Check to see if there is an intersection present at the via memberprivate static booleanConnectivityRelations. checkForMissingRole(Relation relation)Check if the relation contains all necessary rolesprivate voidMultipolygonTest. 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 voidTurnrestrictionTest. checkIfConnected(Relation r, Way previous, Way current, java.lang.String msg, int code)private voidAddresses. checkIfObsolete(Relation r)Check if an associatedStreet Relation is obsolete.private voidRelationChecker. checkLoop(Relation r)Check if a given relation is part of a circular dependency loop.private voidRelationChecker. checkLoop(Relation parent, java.util.List<Relation> path)private booleanRelationChecker. checkMemberExpressionAndType(java.util.Map<Roles.Role,java.lang.String> allroles, RelationMember member, Relation n)get all role definition for specified key and check, if some definition matchesprivate booleanMultipolygonTest. checkMembersAndRoles(Relation r, java.util.List<TestError> tmpErrors)Check for:MultipolygonTest.WRONG_MEMBER_ROLE: No useful role for multipolygon memberMultipolygonTest.WRONG_MEMBER_TYPE: Non-Way in multipolygonprivate static booleanConnectivityRelations. checkMemberTagsForImpliedConnectivity(Relation relation, java.util.Map<java.lang.String,java.lang.Integer> roleLanes)Check the relation to see if the connectivity described is already implied by the relation members' tagsprivate voidMultipolygonTest. checkOrSetRoles(Relation r, java.util.List<Multipolygon.PolyData> allPolygons, java.util.Map<java.lang.Long,RelationMember> wayMap, java.util.Set<Node> sharedNodes)Calculate the nesting levels of the polygon rings and check if calculated role matchesprivate voidTagChecker. checkOuterWaysOfRelation(Relation rel)Check if an outer way of the relation has the same tag as the relation.private voidMultipolygonTest. checkPolygonForSelfIntersection(Relation r, Multipolygon.PolyData pd)Check if a polygon ring is self-intersecting when the ring was build from multiple ways.private voidMultipolygonTest. checkPolygonsForSharedNodes(Relation r, Multipolygon.PolyData pd1, Multipolygon.PolyData pd2, java.util.Set<Node> allSharedNodes)private booleanMultipolygonTest. 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 voidRelationChecker. checkRoleCounts(Relation n, Roles.Role r, java.lang.String keyname, RelationChecker.RoleInfo ri)private voidRelationChecker. checkRoles(Relation n, java.util.Map<Roles.Role,java.lang.String> allroles, java.util.Map<java.lang.String,RelationChecker.RoleInfo> map)private voidMultipolygonTest. 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 java.util.Collection<? extends OsmPrimitive>MultipolygonTest. combineRelAndPrimitives(Relation r, java.util.Collection<? extends OsmPrimitive> primitives)private static java.util.Map<java.util.List<Way>,java.util.List<WaySegment>>MultipolygonTest. findIntersectingWays(Relation r, boolean findSharedWaySegments)SeeCrossingWaysprivate java.util.Map<Multipolygon.PolyData,java.util.List<Multipolygon.PolyData>>MultipolygonTest. findIntersectingWays(Relation r, java.util.List<Multipolygon.PolyData> innerPolygons, java.util.List<Multipolygon.PolyData> outerPolygons)Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private voidMultipolygonTest. findIntersectingWaysIncomplete(Relation r)Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private static voidMultipolygonTest. findIntersectionNodes(Relation r, java.util.Set<Node> sharedNodes, java.util.Set<Way> intersectionWays)Detect intersections of multipolygon ways at nodes.private static java.util.List<RelationMember>DuplicateRelation. getSortedMembers(Relation r)Order members of given relation by type, unique id, and role.private static booleanTurnrestrictionTest. hasSupportedRestrictionTag(Relation r)private static booleanDuplicateRelation. ignoredType(Relation r)private static booleanDuplicateRelation. memberOrderMatters(Relation r)private booleanConnectivityRelations. mixedViaNodeAndWay(Relation relation, int viaWays, int viaNodes)Check if the relation's roles are on appropriate objectsstatic java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Boolean>>ConnectivityRelations. parseConnectivityTag(Relation relation)Convert the connectivity tag into a map of valuesvoidAddresses. visit(Relation r)voidConnectivityRelations. visit(Relation r)voidCrossingWays.Boundaries. visit(Relation r)voidDuplicateRelation. visit(Relation r)voidMultipolygonTest. visit(Relation r)voidPowerLines. visit(Relation r)voidPublicTransportRouteTest. visit(Relation r)voidRelationChecker. visit(Relation n)voidTurnrestrictionTest. visit(Relation r)Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type Relation Modifier and Type Method Description private static voidDuplicateRelation. addToRelations(MultiMap<DuplicateRelation.RelationPair,Relation> relations, Relation r, boolean forceAdd)private voidRelationChecker. checkLoop(Relation parent, java.util.List<Relation> path)private voidDuplicateRelation. checkOrderAndTags(java.util.Set<Relation> sameMembers)Check a list of relations which are guaranteed to have the same members, possibly in different order and possibly different tags.private voidDuplicateRelation. performGeometryTest(MultiMap<DuplicateRelation.RelationPair,Relation> relations)private voidDuplicateRelation. reportDuplicateKeys(java.util.Collection<Relation> duplicated)Check collection of relations with the same keys and members, possibly in different orderprivate voidDuplicateRelation. reportDuplicateMembers(java.util.Set<Relation> duplicated)Report relations with the same member(s) in the same order, keys may be different -
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 voidAggregatePrimitivesVisitor. visit(Relation r)voidNameVisitor. 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 voidRelationMemberListMergeModel. populate(Relation my, Relation their, java.util.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 RelationRelationMemberConflictDecision. relationFields in org.openstreetmap.josm.gui.conflict.tags with type parameters of type Relation Modifier and Type Field Description protected java.util.Collection<Relation>RelationMemberConflictResolverModel. relationsthe collection of relations for which we manage conflictsMethods in org.openstreetmap.josm.gui.conflict.tags that return Relation Modifier and Type Method Description RelationRelationMemberConflictDecision. getRelation()Methods in org.openstreetmap.josm.gui.conflict.tags that return types with arguments of type Relation Modifier and Type Method Description java.util.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 CommandRelationMemberConflictResolverModel. buildResolveCommand(Relation relation, OsmPrimitive newPrimitive)protected RelationMemberConflictDecisionRelationMemberConflictResolverModel. getDecision(Relation relation, int pos)protected booleanRelationMemberConflictResolverModel. isChanged(Relation relation, OsmPrimitive newPrimitive)booleanRelationMemberConflictDecision. matches(Relation relation, int pos)protected voidRelationMemberConflictResolverModel. populate(Relation relation, OsmPrimitive primitive)Populates the model with the members of the relationrelationreferring toprimitive.Method parameters in org.openstreetmap.josm.gui.conflict.tags with type arguments of type Relation Modifier and Type Method Description protected static voidCombinePrimitiveResolverDialog. informAboutRelationMembershipConflicts(java.util.Collection<? extends OsmPrimitive> primitives, java.util.Set<Relation> parentRelations)Inform a non-expert user about what relation membership conflict resolution means.voidRelationMemberConflictResolverModel. populate(java.util.Collection<Relation> relations, java.util.Collection<? extends OsmPrimitive> memberPrimitives)Populates the model with the relation members belonging to one of the relations inrelationsand referring to one of the primitives inmemberPrimitives.(package private) voidRelationMemberConflictResolverModel. populate(java.util.Collection<Relation> relations, java.util.Collection<? extends OsmPrimitive> memberPrimitives, boolean fireEvent)Populates the model with the relation members belonging to one of the relations inrelationsand 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 java.util.List<Pair<Relation,java.lang.Boolean>>DeleteFromRelationConfirmationDialog.RelationDeleteModel. dataprivate java.util.Set<Relation>ConflictDialog.ConflictPainter. visitedMethods in org.openstreetmap.josm.gui.dialogs that return types with arguments of type Relation Modifier and Type Method Description java.util.Set<Relation>DeleteFromRelationConfirmationDialog.RelationDeleteModel. getObjectsToDelete()Gets the list of children that are currently displayed.Methods in org.openstreetmap.josm.gui.dialogs with parameters of type Relation Modifier and Type Method Description voidRelationListDialog. selectRelation(Relation relation)Selects the relationrelationin the list of relations.voidConflictDialog.ConflictPainter. visit(Relation e)Method parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type Relation Modifier and Type Method Description voidDeleteFromRelationConfirmationDialog.RelationDeleteModel. populate(java.util.Collection<Pair<Relation,java.lang.Boolean>> references)Sets the data that should be displayed in the list. -
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 voidRelationRoleEditor. 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 RelationChildRelationBrowser.DownloadAllChildrenTask. relationprivate RelationMemberRoleCellEditor. relationprivate RelationMemberTableModel. relationprivate RelationReferringRelationsBrowserModel. relationthe relationRelationRelationDialogManager.DialogContext. relationprivate RelationRelationEditor. relationThe relation that this editor is working on.private RelationRelationTree.RelationLoader. relationprivate RelationRelationEditor. relationSnapshotThe version of the relation when editing is started.private RelationRelationTreeModel. rootthe root relationFields in org.openstreetmap.josm.gui.dialogs.relation with type parameters of type Relation Modifier and Type Field Description private java.util.Set<Relation>DownloadRelationMemberTask. parentsprivate javax.swing.JList<Relation>ReferringRelationsBrowser. referrersthe list of relationsprivate java.util.List<Relation>ReferringRelationsBrowserModel. referrersprivate java.util.Set<Relation>ChildRelationBrowser.DownloadRelationSetTask. relationsprivate java.util.Collection<Relation>DownloadRelationTask. relationsMethods in org.openstreetmap.josm.gui.dialogs.relation that return Relation Modifier and Type Method Description RelationReferringRelationsBrowserModel. getElementAt(int index)RelationIRelationEditor. getRelation()Replies the currently edited relationRelationReferringRelationsBrowserModel. getRelation()Returns the relation.RelationRelationEditor. getRelation()protected RelationRelationTreeModel. getRelationChildByIdx(Relation parent, int idx)Replies the i-th child of type relation for a particular relationparent.RelationIRelationEditor. getRelationSnapshot()Replies the state of the edited relation when the editor has been launched.RelationRelationEditor. getRelationSnapshot()Methods in org.openstreetmap.josm.gui.dialogs.relation with parameters of type Relation Modifier and Type Method Description static CommandGenericRelationEditor. addPrimitivesToRelation(Relation orig, java.util.Collection<? extends OsmPrimitive> primitivesToAdd)Adds primitives to a given relation.voidMemberTableModel. applyToRelation(Relation relation)Applies this member model to the given relation.protected static voidGenericRelationEditor. cleanSelfReferences(MemberTableModel memberTableModel, Relation relation)checks whether the current relation has members referring to itself.voidRelationDialogManager. close(OsmDataLayer layer, Relation relation)Closes the editor open for a specific layer and a specific relation.static RelationEditorRelationEditor. getEditor(OsmDataLayer layer, Relation r, java.util.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.RelationEditorRelationDialogManager. getEditorForRelation(OsmDataLayer layer, Relation relation)Replies the editor for the relation managed by layer.protected intRelationTreeModel. getIndexForRelationChild(Relation parent, Relation child)Replies the index of a particularchildwith respect to itsparent.protected intRelationTreeModel. getNumRelationChildren(Relation parent)Replies the number of children of type relation for a particular relationparentprotected RelationRelationTreeModel. getRelationChildByIdx(Relation parent, int idx)Replies the i-th child of type relation for a particular relationparent.booleanMemberTableModel. hasSameMembersAs(Relation relation)Determines if this model has the same members as the given relation.booleanRelationDialogManager. isOpenInEditor(OsmDataLayer layer, Relation relation)Replies true if there is an open relation editor for the relation managed by the given layer.protected booleanReferringRelationsBrowserModel. isReferringRelation(Relation parent)voidChildRelationBrowser. populate(Relation r)populates the browser with a relationvoidMemberTableModel. populate(Relation relation)Populates this model from the given relation.voidRelationTreeModel. populate(Relation root)Populates the model with a root relationprivate voidGenericRelationEditor. populateModels(Relation relation)protected voidChildRelationBrowser.DownloadTask. refreshView(Relation relation)voidRelationDialogManager. register(OsmDataLayer layer, Relation relation, RelationEditor editor)Register the relation editor for a relation managed by aOsmDataLayer.protected voidRelationTreeCellRenderer. renderValue(Relation relation)renders the textual value.voidIRelationEditor. setRelation(Relation relation)Sets the currently edited relation.voidReferringRelationsBrowserModel. setRelation(Relation relation)Sets the relation.voidRelationEditor. setRelation(Relation relation)protected voidRelationEditor. setRelationSnapshot(Relation snapshot)voidRelationDialogManager. updateContext(OsmDataLayer layer, Relation relation, RelationEditor editor)protected voidChildRelationBrowser.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 voidReferringRelationsBrowserModel. populate(java.util.List<Relation> parents)Populates the model with parent referrers.static voidGenericRelationEditor. warnOfCircularReferences(OsmPrimitive primitive, java.util.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(java.awt.Dialog parent, Relation r)DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer)DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer, java.awt.Dialog dialog)GenericRelationEditor(OsmDataLayer layer, Relation relation, java.util.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(java.awt.Dialog dialog, Relation relation, javax.swing.tree.TreePath path)Constructor parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type Relation Constructor Description DownloadRelationMemberTask(java.util.Collection<Relation> parents, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer)Creates a download task for downloading the child primitiveschildrenfor all parent relations inparents.DownloadRelationSetTask(java.awt.Dialog parent, java.util.Set<Relation> relations)DownloadRelationTask(java.util.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 java.util.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 WayConnectionTypeWayConnectionTypeCalculator. computeNextWayConnection(Relation r, java.util.List<WayConnectionType> con, WayConnectionType lastWct, int i, RelationMember m)private static booleanWayConnectionTypeCalculator. isOnewayIgnored(Relation r)private static booleanWayConnectionTypeCalculator. isSuperRoute(Relation r)java.util.List<WayConnectionType>WayConnectionTypeCalculator. updateLinks(Relation r, java.util.List<RelationMember> members)refresh the cache of member WayConnectionTypesprivate WayConnectionTypeWayConnectionTypeCalculator. updateLinksFor(Relation r, java.util.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 voidHistoryBrowserModel.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 java.util.Map<Relation,java.lang.Void>OsmDataLayer. recentRelationsList of recent relationsMethods in org.openstreetmap.josm.gui.layer that return types with arguments of type Relation Modifier and Type Method Description java.util.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 voidOsmDataLayer. removeRecentRelation(Relation relation)Remove relation from list of recent relations.voidOsmDataLayer. setRecentRelation(Relation relation)Adds recently closed relation.voidOsmDataLayer.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 voidPaintVisitor. 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 voidAutoCompletionManager. cacheRelationMemberRoles(Relation relation)Caches all member roles of the relationrelationvoidAutoCompletionManager. populateWithMemberRoles(AutoCompletionList list, Relation r)Populates theAutoCompletionListwith 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 booleanHighlightHelper. setHighlight(OsmPrimitive p, boolean flag, java.util.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 RelationAbstractReader. parseRelation(AbstractReader.CommonReader commonReader, AbstractReader.RelationReader relationReader)protected RelationOsmReader. parseRelation()Methods in org.openstreetmap.josm.io that return types with arguments of type Relation Modifier and Type Method Description private java.util.Optional<Relation>GeoJSONReader. parseGeometryCollection(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry, boolean createRelation)private java.util.Optional<Relation>GeoJSONReader. parseMultiLineString(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry)private java.util.Optional<Relation>GeoJSONReader. parseMultiPoint(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry)private java.util.Optional<Relation>GeoJSONReader. parseMultiPolygon(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry)Methods in org.openstreetmap.josm.io with parameters of type Relation Modifier and Type Method Description protected MultiFetchServerObjectReaderMultiFetchServerObjectReader. appendRelation(Relation relation)appends aRelationid to the list of ids which will be fetched from the server.voidGeoJSONWriter.GeometryPrimitiveVisitor. visit(Relation r)private voidGeoJSONWriter.GeometryPrimitiveVisitor. visitMultiGeometry(Relation r)Visit a multi-part geometry.private voidGeoJSONWriter.GeometryPrimitiveVisitor. visitMultiLineString(Relation r)Visit a relation that is a multi line stringprivate voidGeoJSONWriter.GeometryPrimitiveVisitor. visitMultiPoints(Relation r)Visit a relation that only contains pointsprivate voidGeoJSONWriter.GeometryPrimitiveVisitor. visitMultipolygon(Relation r)Convert a multipolygon to geojsonMethod parameters in org.openstreetmap.josm.io with type arguments of type Relation Modifier and Type Method Description voidOsmWriter. writeRelations(java.util.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 java.util.List<IPrimitive>Geometry. filterInsideMultipolygon(java.util.Collection<IPrimitive> primitives, Relation multiPolygon)Find all primitives in the given collection which are inside the given multipolygon.static java.util.List<IPrimitive>Geometry. filterInsideMultipolygon(java.util.Collection<IPrimitive> primitives, Relation multiPolygon, java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>> cache)Find all primitives in the given collection which are inside the given multipolygon.static java.awt.geom.AreaGeometry. getAreaLatLon(Relation multipolygon)Returns the Area of a polygon, from the multipolygon relation.static booleanGeometry. isNodeInsideMultiPolygon(INode node, Relation multiPolygon, java.util.function.Predicate<Way> isOuterWayAMatch)Tests if thenodeis inside the multipolygonmultiPolygon.static booleanGeometry. isPolygonInsideMultiPolygon(java.util.List<? extends INode> nodes, Relation multiPolygon, java.util.function.Predicate<Way> isOuterWayAMatch)Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.static doubleGeometry. 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.
-