-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Szymon Rachański
committed
Jan 3, 2021
1 parent
f138496
commit 735b45c
Showing
4 changed files
with
65 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 24 additions & 14 deletions
38
src/main/java/org/openstreetmap/atlas/checks/validation/intersections/BoundaryPart.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,48 @@ | ||
package org.openstreetmap.atlas.checks.validation.intersections; | ||
|
||
import java.util.Set; | ||
|
||
import org.openstreetmap.atlas.geography.Rectangle; | ||
import org.openstreetmap.atlas.geography.atlas.items.AtlasEntity; | ||
|
||
import java.util.Set; | ||
|
||
|
||
public class BoundaryPart { | ||
/** | ||
* @author srachanski | ||
*/ | ||
public class BoundaryPart | ||
{ | ||
|
||
private final Set<String> boundaryTags; | ||
private final AtlasEntity atlasEntity; | ||
|
||
public BoundaryPart(AtlasEntity entity, Set<String> boundaryTags) { | ||
public BoundaryPart(final AtlasEntity entity, final Set<String> boundaryTags) | ||
{ | ||
this.atlasEntity = entity; | ||
this.boundaryTags = boundaryTags; | ||
} | ||
|
||
public AtlasEntity getAtlasEntity() { | ||
return atlasEntity; | ||
public AtlasEntity getAtlasEntity() | ||
{ | ||
return this.atlasEntity; | ||
} | ||
|
||
public Rectangle getBounds() { | ||
return atlasEntity.bounds(); | ||
public Rectangle getBounds() | ||
{ | ||
return this.atlasEntity.bounds(); | ||
} | ||
|
||
public long getOsmIdentifier() { | ||
return atlasEntity.getOsmIdentifier(); | ||
public long getOsmIdentifier() | ||
{ | ||
return this.atlasEntity.getOsmIdentifier(); | ||
} | ||
|
||
public String getWktGeometry() { | ||
return atlasEntity.toWkt(); | ||
public String getWktGeometry() | ||
{ | ||
return this.atlasEntity.toWkt(); | ||
} | ||
|
||
public Set<String> getBoundaryTags() { | ||
return boundaryTags; | ||
public Set<String> getBoundaryTags() | ||
{ | ||
return this.boundaryTags; | ||
} | ||
} |
41 changes: 22 additions & 19 deletions
41
src/main/java/org/openstreetmap/atlas/checks/validation/intersections/RelationBoundary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters