Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.mapmode |
Provides the classes for JOSM
map modes . |
org.openstreetmap.josm.actions.relation |
Provides the classes for JOSM actions that work with
relations . |
org.openstreetmap.josm.actions.upload |
Provides the classes for JOSM
upload 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.gpx |
Provides the classes for JOSM
GPX data (points, tracks, routes). |
org.openstreetmap.josm.data.osm |
Provides the classes for OSM data:
Primitives :
Node ,
Way ,
Relation
Users
Tags
Changesets
Utilities classes
|
org.openstreetmap.josm.data.osm.event |
Provides the classes for OSM dataset events.
|
org.openstreetmap.josm.data.osm.history |
Provides the classes for OSM primitives
history (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 caching
Multipolygon 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 else
|
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.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.
|
Modifier and Type | Field and Description |
---|---|
private Relation |
CreateMultipolygonAction.CreateUpdateMultipolygonTask.multipolygonRelation |
Relation |
JoinAreasAction.RelationRole.rel |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Relation> |
JoinAreasAction.addedRelations |
Modifier and Type | Method and Description |
---|---|
private static Relation |
CreateMultipolygonAction.getSelectedMultipolygonRelation(java.util.Collection<Way> selectedWays,
java.util.Collection<Relation> selectedRelations) |
Modifier and Type | Method and Description |
---|---|
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)
|
Modifier and Type | Method and Description |
---|---|
static Pair<SequenceCommand,Relation> |
CreateMultipolygonAction.createMultipolygonCommand(java.util.Collection<Way> selectedWays,
Relation selectedMultipolygonRelation)
|
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
Function was extended in reltoolbox plugin by Zverikk and copied back to the core
|
static Pair<Relation,Relation> |
CreateMultipolygonAction.updateMultipolygonRelation(java.util.Collection<Way> selectedWays,
Relation selectedMultipolygonRelation)
|
void |
UploadSelectionAction.UploadHullBuilder.visit(Relation r) |
Modifier and Type | Method and Description |
---|---|
static boolean |
DeleteAction.confirmRelationDeletion(java.util.Collection<Relation> relations)
Confirm before deleting a relation, as it is a common newbie error.
|
private void |
JoinAreasAction.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.
|
private static Relation |
CreateMultipolygonAction.getSelectedMultipolygonRelation(java.util.Collection<Way> selectedWays,
java.util.Collection<Relation> selectedRelations) |
Constructor and Description |
---|
CreateUpdateMultipolygonTask(java.util.Collection<Way> selectedWays,
Relation multipolygonRelation) |
RelationRole(Relation rel,
java.lang.String role) |
Modifier and Type | Method and Description |
---|---|
static void |
DeleteAction.deleteRelation(OsmDataLayer layer,
Relation toDelete)
Deletes the relation in the context of the given layer.
|
Modifier and Type | Method and Description |
---|---|
static void |
DeleteAction.deleteRelations(OsmDataLayer layer,
java.util.Collection<Relation> toDelete)
Deletes the relations in the context of the given layer.
|
Modifier and Type | Field and Description |
---|---|
private Relation |
RecentRelationsAction.RecentRelationsMenuItem.relation |
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<Relation> |
ExportRelationToGpxAction.relations
Primitives this action works on
|
Modifier and Type | Method and Description |
---|---|
static Relation |
RecentRelationsAction.getLastRelation()
Returns the last relation.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Relation> |
RecentRelationsAction.getRecentRelationsOnActiveLayer()
Returns the list of recent relations on active layer.
|
Modifier and Type | Method and Description |
---|---|
static void |
DuplicateRelationAction.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 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DeleteRelationsAction.deleteRelation(java.util.Collection<Relation> toDelete) |
Constructor and Description |
---|
RecentRelationsMenuItem(Relation relation) |
Constructor and Description |
---|
RecentRelationsPopupMenu(java.util.List<Relation> recentRelations,
javax.swing.KeyStroke keystroke)
Constructs a new
RecentRelationsPopupMenu . |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JPanel |
RelationUploadOrderHook.buildWarningPanel(java.util.List<Relation> dep)
builds the panel which warns users about a cyclic dependency
|
Modifier and Type | Field and Description |
---|---|
(package private) Relation |
SplitWayCommand.RelationInformation.relation |
private Relation |
ChangeRelationMemberRoleCommand.relation |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.Optional<OsmPrimitive> |
SplitWayCommand.findRelationMember(Relation r,
java.lang.String role) |
(package private) static OsmPrimitive |
SplitWayCommand.findVia(Relation r,
java.lang.String type) |
private static boolean |
PurgeCommand.hasOnlyIncompleteMembers(Relation r,
java.util.Collection<OsmPrimitive> toPurge,
java.util.Collection<? extends OsmPrimitive> moreToPurge) |
private static SplitWayCommand.RelationInformation |
SplitWayCommand.treatAsRestriction(Relation r,
RelationMember rm,
Relation c,
java.util.Collection<Way> newWays,
Way way,
Way changedWay) |
void |
Command.CloneVisitor.visit(Relation e) |
Modifier and Type | Method and Description |
---|---|
boolean |
DeleteCommand.DeletionCallback.confirmRelationDeletion(java.util.Collection<Relation> relations)
Confirm before deleting a relation, as it is a common newbie error.
|
Constructor and Description |
---|
ChangeRelationMemberRoleCommand(DataSet dataSet,
Relation relation,
int position,
java.lang.String newRole)
Constructs a new
ChangeRelationMemberRoleCommand . |
ChangeRelationMemberRoleCommand(Relation relation,
int position,
java.lang.String newRole)
Constructs a new
ChangeRelationMemberRoleCommand . |
Modifier and Type | Field and Description |
---|---|
private Conflict<Relation> |
RelationMemberConflictResolverCommand.conflict
the conflict to resolve
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Relation,java.util.Set<Relation>> |
APIDataSet.RelationUploadDependencyGraph.children |
private java.util.Map<Relation,java.util.Set<Relation>> |
APIDataSet.RelationUploadDependencyGraph.children |
private java.util.Collection<Relation> |
APIDataSet.RelationUploadDependencyGraph.relations |
private java.util.List<Relation> |
APIDataSet.RelationUploadDependencyGraph.uploadOrder |
private java.util.Set<Relation> |
APIDataSet.RelationUploadDependencyGraph.visited |
Modifier and Type | Method and 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 in
relations which are not referring to any
new relation |
java.util.Set<Relation> |
APIDataSet.RelationUploadDependencyGraph.getChildren(Relation relation) |
Modifier and Type | Method and Description |
---|---|
void |
APIDataSet.RelationUploadDependencyGraph.addDependency(Relation relation,
Relation child) |
java.util.Set<Relation> |
APIDataSet.RelationUploadDependencyGraph.getChildren(Relation relation) |
protected void |
APIDataSet.RelationUploadDependencyGraph.visit(java.util.Stack<Relation> path,
Relation current) |
Modifier and Type | Method and Description |
---|---|
void |
APIDataSet.RelationUploadDependencyGraph.build(java.util.Collection<Relation> relations) |
protected java.util.List<Relation> |
APIDataSet.filterRelationsNotReferringToNewRelations(java.util.Collection<Relation> relations)
Replies the subset of relations in
relations which are not referring to any
new relation |
protected void |
APIDataSet.RelationUploadDependencyGraph.visit(java.util.Stack<Relation> path,
Relation current) |
Constructor and Description |
---|
RelationUploadDependencyGraph(java.util.Collection<Relation> relations,
boolean newOrUndeleted) |
Modifier and Type | Field and Description |
---|---|
Relation |
RoleCorrection.relation
OSM relation
|
Constructor and Description |
---|
RoleCorrection(Relation relation,
int position,
RelationMember member,
java.lang.String newRole)
Constructs a new
RoleCorrection . |
Modifier and Type | Method and Description |
---|---|
static double |
GpxDistance.getDistanceRelation(Relation relation,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(relation, new Node(waypoint.getCoor()))
instead |
Modifier and Type | Field and Description |
---|---|
private Relation |
RelationToChildReference.parent |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Relation> |
CyclicUploadDependencyException.cycle |
private QuadBucketPrimitiveStore<Node,Way,Relation> |
DataSet.store |
Modifier and Type | Method and Description |
---|---|
Relation |
RelationToChildReference.getParent()
Get the parent relation
|
Relation |
RelationMember.getRelation()
Returns the relation member as a relation.
|
private static Relation |
OsmUtils.newRelation(LatLon around,
boolean enforceLocation) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Relation> |
CyclicUploadDependencyException.getCyclicUploadDependency()
Gets the cycle
|
static java.util.Set<Relation> |
OsmPrimitive.getParentRelations(java.util.Collection<? extends OsmPrimitive> primitives)
Replies the set of referring relations
|
java.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 primitive
|
Modifier and Type | Method and 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 java.lang.String |
CyclicUploadDependencyException.formatRelation(Relation r) |
static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>> |
MultipolygonBuilder.joinWays(Relation multipolygon)
Joins the given
multipolygon 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.
|
Constructor and Description |
---|
Relation(Relation clone)
Create an identical clone of the argument (including the id)
|
Relation(Relation clone,
boolean clearMetadata)
Constructs an identical clone of the argument.
|
RelationToChildReference(Relation parent,
int position,
RelationMember member)
Create a new
RelationToChildReference |
RelationToChildReference(Relation parent,
int position,
java.lang.String role,
OsmPrimitive child)
Create a new
RelationToChildReference |
Constructor and Description |
---|
CyclicUploadDependencyException(java.util.Stack<Relation> cycle)
Creates a new
CyclicUploadDependencyException |
Modifier and Type | Field and Description |
---|---|
private Relation |
RelationMembersChangedEvent.relation |
Modifier and Type | Method and Description |
---|---|
Relation |
RelationMembersChangedEvent.getRelation()
Returns the relation affected by the change.
|
Constructor and Description |
---|
RelationMembersChangedEvent(DataSet dataSet,
Relation relation)
Constructs a new
RelationMembersChangedEvent . |
Constructor and Description |
---|
HistoryRelation(Relation r)
Constructs a new
HistoryRelation from an existing Relation . |
Modifier and Type | Method and Description |
---|---|
protected void |
MergeSourceBuildingVisitor.rememberRelation(Relation r)
Remembers a relation in the hull
|
protected void |
MergeSourceBuildingVisitor.rememberRelationPartial(Relation r) |
void |
OsmPrimitiveVisitor.visit(Relation r)
Visiting call for relations.
|
void |
MergeSourceBuildingVisitor.visit(Relation r) |
void |
AllNodesVisitor.visit(Relation e)
Relations may have any number of nodes.
|
void |
BoundingXYVisitor.visit(Relation r) |
Modifier and Type | Method and Description |
---|---|
void |
StyledMapRenderer.drawArea(Relation r,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
java.lang.Float extentThreshold,
boolean disabled)
Draws a multipolygon area.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<DataSet,java.util.Map<Relation,Multipolygon>> |
MultipolygonCache.cache |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
private static void |
MultipolygonCache.dispatchEvent(AbstractDatasetChangedEvent event,
Relation r,
java.util.Collection<java.util.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,
java.util.Collection<java.util.Map<Relation,Multipolygon>> maps) |
private static void |
MultipolygonCache.removeMultipolygonFrom(Relation r,
java.util.Collection<java.util.Map<Relation,Multipolygon>> maps) |
Modifier and Type | Method and Description |
---|---|
private static void |
MultipolygonCache.dispatchEvent(AbstractDatasetChangedEvent event,
Relation r,
java.util.Collection<java.util.Map<Relation,Multipolygon>> maps) |
private static void |
MultipolygonCache.processEvent(AbstractDatasetChangedEvent event,
Relation r,
java.util.Collection<java.util.Map<Relation,Multipolygon>> maps) |
private static void |
MultipolygonCache.removeMultipolygonFrom(Relation r,
java.util.Collection<java.util.Map<Relation,Multipolygon>> maps) |
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) |
Constructor and Description |
---|
Multipolygon(Relation r)
Constructs a new
Multipolygon from a relation. |
Modifier and Type | Method and Description |
---|---|
void |
Test.visit(Relation r) |
void |
Test.TagTest.visit(Relation r) |
Modifier and Type | Field and Description |
---|---|
private Relation |
MultipolygonTest.createdRelation
set when used to build a multipolygon relation
|
Modifier and Type | Method and Description |
---|---|
Relation |
MultipolygonTest.makeFromWays(java.util.Collection<Way> ways)
Create a multipolygon relation from the given ways and test it.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Relation> |
Addresses.getAndCheckAssociatedStreets(OsmPrimitive p) |
Modifier and Type | Method and Description |
---|---|
private void |
MultipolygonTest.addRepeatedMemberError(Relation r,
java.util.List<OsmPrimitive> repeatedMembers,
int errorCode,
java.lang.String msg) |
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) |
private void |
MultipolygonTest.checkGeometryAndRoles(Relation r,
Multipolygon polygon)
Various geometry-related checks:
MultipolygonTest.NON_CLOSED_WAY : Multipolygon is not closed
MultipolygonTest.INNER_WAY_OUTSIDE : Multipolygon inner way is outside
MultipolygonTest.CROSSING_WAYS : Intersection between multipolygon ways
|
private void |
TurnrestrictionTest.checkIfConnected(Relation r,
Way previous,
Way current,
java.lang.String msg,
int code) |
private void |
Addresses.checkIfObsolete(Relation r)
Check if an associatedStreet Relation is obsolete.
|
private boolean |
RelationChecker.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 matches
|
private boolean |
MultipolygonTest.checkMembersAndRoles(Relation r,
java.util.List<TestError> tmpErrors)
Check for:
MultipolygonTest.WRONG_MEMBER_ROLE : No useful role for multipolygon member
MultipolygonTest.WRONG_MEMBER_TYPE : Non-Way in multipolygon
|
private void |
MultipolygonTest.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 matches
|
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,
java.util.Set<Node> allSharedNodes) |
private boolean |
MultipolygonTest.checkRepeatedWayMembers(Relation r)
Check for:
MultipolygonTest.REPEATED_MEMBER_DIFF_ROLE : Multipolygon member(s) repeated with different role
MultipolygonTest.REPEATED_MEMBER_SAME_ROLE : Multipolygon member(s) repeated with same role
|
private void |
RelationChecker.checkRoleCounts(Relation n,
Roles.Role r,
java.lang.String keyname,
RelationChecker.RoleInfo ri) |
private void |
RelationChecker.checkRoles(Relation n,
java.util.Map<Roles.Role,java.lang.String> allroles,
java.util.Map<java.lang.String,RelationChecker.RoleInfo> map) |
private void |
MultipolygonTest.checkStyleConsistency(Relation r,
Multipolygon polygon)
Various style-related checks:
MultipolygonTest.NO_STYLE_POLYGON : Multipolygon relation should be tagged with area tags and not the outer way
MultipolygonTest.INNER_STYLE_MISMATCH : With the currently used mappaint style the style for inner way equals the multipolygon style
MultipolygonTest.OUTER_STYLE_MISMATCH : Style for outer way mismatches
MultipolygonTest.OUTER_STYLE : Area style on outer way
|
private static java.util.Collection<? extends OsmPrimitive> |
MultipolygonTest.combineRelAndPrimitives(Relation r,
java.util.Collection<? extends OsmPrimitive> primitives) |
private 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 static void |
MultipolygonTest.findIntersectionNodes(Relation r,
java.util.Set<Node> sharedNodes,
java.util.Set<Way> intersectionWays)
Detect intersections of multipolygon ways at nodes.
|
private static boolean |
TurnrestrictionTest.hasSupportedRestrictionTag(Relation r) |
void |
PublicTransportRouteTest.visit(Relation r) |
void |
MultipolygonTest.visit(Relation r) |
void |
RelationChecker.visit(Relation n) |
void |
CrossingWays.Boundaries.visit(Relation r) |
void |
InternetTags.visit(Relation r) |
void |
TurnrestrictionTest.visit(Relation r) |
void |
PowerLines.visit(Relation r) |
void |
Addresses.visit(Relation r) |
void |
DuplicateRelation.visit(Relation r) |
Modifier and Type | Method and Description |
---|---|
void |
AggregatePrimitivesVisitor.visit(Relation r) |
void |
NameVisitor.visit(Relation e) |
Modifier and Type | Method and Description |
---|---|
void |
RelationMemberListMergeModel.populate(Relation my,
Relation their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
populates the model with the relation members in relation my and their
|
Modifier and Type | Field and Description |
---|---|
private Relation |
RelationMemberConflictDecision.relation |
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<Relation> |
RelationMemberConflictResolverModel.relations
the collection of relations for which we manage conflicts
|
Modifier and Type | Method and Description |
---|---|
Relation |
RelationMemberConflictDecision.getRelation() |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 relation
relation
referring to primitive . |
Modifier and Type | Method and Description |
---|---|
protected static void |
CombinePrimitiveResolverDialog.informAboutRelationMembershipConflicts(java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Set<Relation> parentRelations)
Inform a non-expert user about what relation membership conflict resolution means.
|
void |
RelationMemberConflictResolverModel.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 in
relations
and referring to one of the primitives in memberPrimitives . |
(package private) void |
RelationMemberConflictResolverModel.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 in
relations
and referring to one of the primitives in memberPrimitives . |
Constructor and Description |
---|
RelationMemberConflictDecision(Relation relation,
int pos) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Relation> |
ConflictDialog.ConflictPainter.visited |
Modifier and Type | Method and Description |
---|---|
void |
RelationListDialog.selectRelation(Relation relation)
Selects the relation
relation in the list of relations. |
void |
ConflictDialog.ConflictPainter.visit(Relation e) |
Modifier and Type | Field and Description |
---|---|
private Relation |
ParentRelationLoadingTask.child |
private Relation |
RelationTree.RelationLoader.relation |
private Relation |
RelationEditor.relation
The relation that this editor is working on.
|
private Relation |
MemberTableModel.relation |
private Relation |
ReferringRelationsBrowserModel.relation
the relation
|
Relation |
RelationDialogManager.DialogContext.relation |
private Relation |
MemberRoleCellEditor.relation |
private Relation |
RelationEditor.relationSnapshot
The version of the relation when editing is started.
|
private Relation |
RelationTreeModel.root
the root relation
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Relation> |
ParentRelationLoadingTask.parents |
private java.util.Set<Relation> |
DownloadRelationMemberTask.parents |
private javax.swing.JList<Relation> |
ReferringRelationsBrowser.referrers
the list of relations
|
private java.util.List<Relation> |
ReferringRelationsBrowserModel.referrers |
private java.util.Collection<Relation> |
DownloadRelationTask.relations |
private java.util.Set<Relation> |
ChildRelationBrowser.DownloadRelationSetTask.relations |
private java.util.Stack<Relation> |
ChildRelationBrowser.DownloadAllChildrenTask.relationsToDownload |
Modifier and Type | Method and Description |
---|---|
Relation |
ReferringRelationsBrowserModel.getElementAt(int index) |
Relation |
RelationEditor.getRelation() |
Relation |
ReferringRelationsBrowserModel.getRelation()
Returns the relation.
|
Relation |
IRelationEditor.getRelation()
Replies the currently edited relation
|
protected Relation |
RelationTreeModel.getRelationChildByIdx(Relation parent,
int idx)
Replies the i-th child of type relation for a particular relation
parent . |
Relation |
RelationEditor.getRelationSnapshot() |
Relation |
IRelationEditor.getRelationSnapshot()
Replies the state of the edited relation when the editor has been launched.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Relation> |
ParentRelationLoadingTask.getParents() |
Modifier and Type | Method and Description |
---|---|
static Command |
GenericRelationEditor.addPrimitivesToRelation(Relation orig,
java.util.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,
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.
|
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 particular
child with respect to its
parent . |
protected int |
RelationTreeModel.getNumRelationChildren(Relation parent)
Replies the number of children of type relation for a particular
relation
parent |
protected Relation |
RelationTreeModel.getRelationChildByIdx(Relation parent,
int idx)
Replies the i-th child of type relation for a particular relation
parent . |
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 |
MemberTableModel.populate(Relation relation)
Populates this model from the given relation.
|
void |
RelationTreeModel.populate(Relation root)
Populates the model with a root relation
|
void |
ChildRelationBrowser.populate(Relation r)
populates the browser with a relation
|
private 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 a
OsmDataLayer . |
protected void |
ChildRelationBrowser.DownloadAllChildrenTask.rememberChildRelationsToDownload(Relation parent)
Remembers the child relations to download
|
protected void |
RelationTreeCellRenderer.renderValue(Relation relation)
renders the textual value.
|
void |
RelationEditor.setRelation(Relation relation) |
void |
ReferringRelationsBrowserModel.setRelation(Relation relation)
Sets the relation.
|
void |
IRelationEditor.setRelation(Relation relation)
Sets the currently edited 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)
|
Modifier and Type | Method and Description |
---|---|
void |
ReferringRelationsBrowserModel.populate(java.util.List<Relation> parents)
Populates the model with parent referrers.
|
Constructor and Description |
---|
ChildRelationBrowser(OsmDataLayer layer,
Relation root)
constructor
|
DialogContext(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 new
MemberRoleCellEditor . |
MemberTable(OsmDataLayer layer,
Relation relation,
MemberTableModel model)
constructor for relation member table
|
MemberTableColumnModel(AutoCompletionManager autoCompletionManager,
Relation relation)
Constructs a new
MemberTableColumnModel . |
MemberTableModel(Relation relation,
OsmDataLayer layer,
TaggingPresetHandler presetHandler)
constructor
|
ParentRelationLoadingTask(Relation child,
OsmDataLayer layer,
boolean full,
PleaseWaitProgressMonitor monitor)
Creates a new task for asynchronously downloading the parents of a child relation.
|
ReferringRelationsBrowserModel(Relation relation)
Constructs a new
ReferringRelationsBrowserModel . |
RelationEditor(OsmDataLayer layer,
Relation relation)
Creates a new relation editor
|
RelationLoader(java.awt.Dialog dialog,
Relation relation,
javax.swing.tree.TreePath path) |
Constructor and Description |
---|
DownloadRelationMemberTask(java.util.Collection<Relation> parents,
java.util.Collection<OsmPrimitive> children,
OsmDataLayer curLayer)
Creates a download task for downloading the child primitives
children for all parent
relations in parents . |
DownloadRelationSetTask(java.awt.Dialog parent,
java.util.Set<Relation> relations) |
DownloadRelationTask(java.util.Collection<Relation> relations,
OsmDataLayer layer)
Creates the download task
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<RelationMember> |
EditAction.getMembersForCurrentSelection(Relation r) |
Modifier and Type | Method and Description |
---|---|
void |
HistoryBrowserModel.HistoryPrimitiveBuilder.visit(Relation r) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Relation,java.lang.Void> |
OsmDataLayer.recentRelations
List of recent relations
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Relation> |
OsmDataLayer.getRecentRelations()
Returns list of recently closed relations or null if none.
|
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OsmDataLayer.LruCache.removeEldestEntry(java.util.Map.Entry<Relation,java.lang.Void> eldest) |
Modifier and Type | Method and Description |
---|---|
void |
PaintVisitor.visit(Relation r) |
Modifier and Type | Method and Description |
---|---|
protected void |
AutoCompletionManager.cacheRelationMemberRoles(Relation relation)
Caches all member roles of the relation
relation |
void |
AutoCompletionManager.populateWithMemberRoles(AutoCompletionList list,
Relation r)
Populates the
AutoCompletionList with the roles used in this relation
plus the ones defined in its applicable presets, if any. |
Modifier and Type | Method and Description |
---|---|
private boolean |
HighlightHelper.setHighlight(OsmPrimitive p,
boolean flag,
java.util.Set<Relation> seenRelations) |
Modifier and Type | Method and Description |
---|---|
protected Relation |
OsmReader.parseRelation() |
protected Relation |
AbstractReader.parseRelation(AbstractReader.CommonReader commonReader,
AbstractReader.RelationReader relationReader) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractReader.RelationReader.accept(Relation r,
java.util.Collection<RelationMemberData> members)
Reads the relation members and tags.
|
protected MultiFetchServerObjectReader |
MultiFetchServerObjectReader.appendRelation(Relation relation)
appends a
Relation id to the list of ids which will be fetched from the server. |
private RelationMemberData |
OsmReader.parseRelationMember(Relation r) |
protected RelationMemberData |
AbstractReader.parseRelationMember(Relation r,
long id,
java.lang.String type,
java.lang.String role) |
protected RelationMemberData |
AbstractReader.parseRelationMember(Relation r,
java.lang.String ref,
java.lang.String type,
java.lang.String role) |
private void |
OsmReader.parseRelationMembersAndTags(Relation r,
java.util.Collection<RelationMemberData> members) |
private void |
OsmJsonReader.readRelationMembersAndTags(javax.json.JsonObject item,
Relation r,
java.util.Collection<RelationMemberData> members) |
void |
GeoJSONWriter.GeometryPrimitiveVisitor.visit(Relation r) |
Modifier and Type | Method and Description |
---|---|
void |
OsmWriter.writeRelations(java.util.Collection<Relation> relations)
Writes the given relations sorted by id
|
Modifier and Type | Method and 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.awt.geom.Area |
Geometry.getAreaLatLon(Relation multipolygon)
Returns the Area of a polygon, from the multipolygon relation.
|
static boolean |
Geometry.isNodeInsideMultiPolygon(INode node,
Relation multiPolygon,
java.util.function.Predicate<Way> isOuterWayAMatch)
Tests if the
node is inside the multipolygon multiPolygon . |
static boolean |
Geometry.isPolygonInsideMultiPolygon(java.util.List<? extends INode> nodes,
Relation multiPolygon,
java.util.function.Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed by
nodes is inside the multipolygon multiPolygon . |
static double |
Geometry.multipolygonArea(Relation multipolygon)
Returns area of a multipolygon in square meters.
|
Constructor and Description |
---|
DefaultGeoProperty(Relation multipolygon)
Create DefaultGeoProperty based on a multipolygon relation.
|