public final class HDTileBasedDataProcessor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
bboxEnlargement |
protected org.mapsforge.core.model.BoundingBox |
boundingbox |
protected float[] |
countWays |
protected float[] |
countWayTileFactor |
protected gnu.trove.map.hash.TShortIntHashMap |
histogramPoiTags |
protected gnu.trove.map.hash.TShortIntHashMap |
histogramWayTags |
protected gnu.trove.set.TLongSet |
innerWaysWithoutAdditionalTags |
protected static java.util.logging.Logger |
LOGGER |
protected long |
maxWayID |
protected gnu.trove.map.hash.TLongObjectHashMap<gnu.trove.list.array.TLongArrayList> |
outerToInnerMapping |
protected java.util.Map<java.lang.Long,java.lang.Long> |
partRootRelations |
protected java.util.List<java.lang.String> |
preferredLanguages |
protected boolean |
skipInvalidRelations |
protected boolean |
tagValues |
protected TileGridLayout[] |
tileGridLayouts |
protected java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> |
tilesToCoastlines |
protected java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> |
tilesToPartElements |
protected java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> |
tilesToRootElements |
protected ZoomIntervalConfiguration |
zoomIntervalConfiguration |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addImplicitRelationInformation(TDWay tdWay)
Add tags to ways which describe the geo-inheritance.
|
void |
addNode(org.openstreetmap.osmosis.core.domain.v0_6.Node node)
Add a node to the data store.
|
protected void |
addPOI(TDNode poi) |
void |
addRelation(org.openstreetmap.osmosis.core.domain.v0_6.Relation relation)
Add a relation to the data store.
|
void |
addWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way)
Add a way to the data store.
|
protected void |
addWayToTiles(TDWay way,
int enlargement) |
void |
close()
Release all acquired resources, e.g.
|
void |
complete()
Complete the data store, e.g.
|
protected void |
countPoiTags(TDNode poi)
Count tags to optimize order of POI tag data.
|
protected void |
countWayTags(java.util.Set<java.lang.Short> tags) |
protected void |
countWayTags(TDWay way)
Count tags to optimize order of Way tag data.
|
long |
cumulatedNumberOfTiles()
Retrieve the total amount of tiles cumulated over all base zoom levels that is needed to represent the underlying
bounding box of this tile data store.
|
org.mapsforge.core.model.BoundingBox |
getBoundingBox()
Get the bounding box that describes this TileBasedDataStore.
|
java.util.Set<TDWay> |
getCoastLines(TileCoordinate tc)
Retrieve all coastlines that cross the given tile.
|
java.util.List<TDWay> |
getInnerWaysOfMultipolygon(long outerWayID)
Retrieve the all the inner ways that are associated with an outer way that represents a multipolygon.
|
TDNode |
getNode(long id)
Resolves the node entity with the given id.
|
TileData |
getTile(int baseZoomIndex,
int tileCoordinateX,
int tileCoordinateY)
Retrieves all the data that is associated with a tile.
|
TileGridLayout |
getTileGridLayout(int zoomIntervalIndex)
Get the layout of a grid on the given zoom interval specification.
|
protected HDTileData |
getTileImpl(int zoom,
int tileX,
int tileY) |
TDWay |
getWay(long id) |
ZoomIntervalConfiguration |
getZoomIntervalConfiguration()
Get the zoom interval configuration of the data store.
|
protected void |
handleAdditionalRelationTags(TDWay way,
TDRelation relation) |
protected void |
handleImplicitWayRelations()
Calculate ids of ways whose polygon inherits part elements.
|
protected void |
handleVirtualInnerWay(TDWay virtualWay) |
protected void |
handleVirtualOuterWay(TDWay virtualWay) |
static HDTileBasedDataProcessor |
newInstance(MapWriterConfiguration configuration)
Creates a new
HDTileBasedDataProcessor. |
protected void |
prepareImplicitWayRelations(TDWay tdWay)
Prepare relations which aren't written as relation and only exist as geo-inheritance.
|
protected static final java.util.logging.Logger LOGGER
protected final int bboxEnlargement
protected final org.mapsforge.core.model.BoundingBox boundingbox
protected float[] countWays
protected float[] countWayTileFactor
protected final gnu.trove.map.hash.TShortIntHashMap histogramPoiTags
protected final gnu.trove.map.hash.TShortIntHashMap histogramWayTags
protected final gnu.trove.set.TLongSet innerWaysWithoutAdditionalTags
protected long maxWayID
protected final gnu.trove.map.hash.TLongObjectHashMap<gnu.trove.list.array.TLongArrayList> outerToInnerMapping
protected final java.util.List<java.lang.String> preferredLanguages
protected final boolean skipInvalidRelations
protected final boolean tagValues
protected TileGridLayout[] tileGridLayouts
protected final java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> tilesToCoastlines
protected final java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> tilesToPartElements
protected final java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> tilesToRootElements
protected final java.util.Map<java.lang.Long,java.lang.Long> partRootRelations
protected final ZoomIntervalConfiguration zoomIntervalConfiguration
public static HDTileBasedDataProcessor newInstance(MapWriterConfiguration configuration)
HDTileBasedDataProcessor.configuration - the configurationHDTileBasedDataProcessorpublic void addNode(org.openstreetmap.osmosis.core.domain.v0_6.Node node)
TileBasedDataProcessornode - the nodepublic void addRelation(org.openstreetmap.osmosis.core.domain.v0_6.Relation relation)
TileBasedDataProcessorrelation - the relationpublic void addWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way)
TileBasedDataProcessorway - the waypublic void close()
TileBasedDataProcessorpublic void complete()
TileBasedDataProcessorpublic java.util.Set<TDWay> getCoastLines(TileCoordinate tc)
TileBasedDataProcessortc - the coordinate of the tilepublic java.util.List<TDWay> getInnerWaysOfMultipolygon(long outerWayID)
TileBasedDataProcessorouterWayID - id of the outer waypublic TDNode getNode(long id)
NodeResolverid - the id of the node entitypublic TileData getTile(int baseZoomIndex, int tileCoordinateX, int tileCoordinateY)
TileBasedDataProcessorbaseZoomIndex - index of the base zoom, as defined in a ZoomIntervalConfigurationtileCoordinateX - x coordinate of the tiletileCoordinateY - y coordinate of the tilepublic TDWay getWay(long id)
id - the id of the wayprotected HDTileData getTileImpl(int zoom, int tileX, int tileY)
protected void handleAdditionalRelationTags(TDWay way, TDRelation relation)
protected void handleVirtualInnerWay(TDWay virtualWay)
protected void handleVirtualOuterWay(TDWay virtualWay)
public long cumulatedNumberOfTiles()
TileBasedDataProcessorcumulatedNumberOfTiles in interface TileBasedDataProcessorpublic org.mapsforge.core.model.BoundingBox getBoundingBox()
TileBasedDataProcessorgetBoundingBox in interface TileBasedDataProcessorpublic TileGridLayout getTileGridLayout(int zoomIntervalIndex)
TileBasedDataProcessorgetTileGridLayout in interface TileBasedDataProcessorzoomIntervalIndex - the index of the zoom intervalpublic ZoomIntervalConfiguration getZoomIntervalConfiguration()
TileBasedDataProcessorgetZoomIntervalConfiguration in interface TileBasedDataProcessorprotected void addImplicitRelationInformation(TDWay tdWay)
tdWay - the way which should get the tagsprotected void addPOI(TDNode poi)
protected void addWayToTiles(TDWay way, int enlargement)
protected void countPoiTags(TDNode poi)
poi - the poi which contains tagsprotected void countWayTags(java.util.Set<java.lang.Short> tags)
protected void countWayTags(TDWay way)
way - the way which contains tagsprotected void handleImplicitWayRelations()
protected void prepareImplicitWayRelations(TDWay tdWay)
Coastlines are handled too, for simplicity reasons.
tdWay - the way, which should be prepared