public final class RAMTileBasedDataProcessor
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.List<java.lang.String> |
preferredLanguages |
protected boolean |
skipInvalidRelations |
protected TileGridLayout[] |
tileGridLayouts |
protected java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> |
tilesToCoastlines |
protected ZoomIntervalConfiguration |
zoomIntervalConfiguration |
| Modifier and Type | Method and Description |
|---|---|
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 |
complete()
Complete the data store, e.g.
|
protected void |
countPoiTags(TDNode poi) |
protected void |
countWayTags(short[] tags) |
protected void |
countWayTags(TDWay way) |
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 zoom,
int tileX,
int tileY)
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 RAMTileData |
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 virtualWay,
TDRelation relation) |
protected void |
handleVirtualInnerWay(TDWay virtualWay) |
protected void |
handleVirtualOuterWay(TDWay virtualWay) |
static RAMTileBasedDataProcessor |
newInstance(MapWriterConfiguration configuration)
Creates a new instance of a
RAMTileBasedDataProcessor. |
void |
release()
Release all acquired resources, e.g.
|
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 TileGridLayout[] tileGridLayouts
protected final java.util.Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> tilesToCoastlines
protected final ZoomIntervalConfiguration zoomIntervalConfiguration
public static RAMTileBasedDataProcessor newInstance(MapWriterConfiguration configuration)
RAMTileBasedDataProcessor.configuration - the configurationRAMTileBasedDataProcessorpublic 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 complete()
TileBasedDataProcessorpublic org.mapsforge.core.model.BoundingBox getBoundingBox()
TileBasedDataProcessorgetBoundingBox in interface 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 zoom, int tileX, int tileY)
TileBasedDataProcessorzoom - index of the base zoom, as defined in a ZoomIntervalConfigurationtileX - x coordinate of the tiletileY - y coordinate of the tilepublic TDWay getWay(long id)
id - the id of the waypublic ZoomIntervalConfiguration getZoomIntervalConfiguration()
TileBasedDataProcessorgetZoomIntervalConfiguration in interface TileBasedDataProcessorpublic void release()
TileBasedDataProcessorprotected RAMTileData getTileImpl(int zoom, int tileX, int tileY)
protected void handleAdditionalRelationTags(TDWay virtualWay, TDRelation relation)
protected void handleVirtualInnerWay(TDWay virtualWay)
protected void handleVirtualOuterWay(TDWay virtualWay)
public long cumulatedNumberOfTiles()
TileBasedDataProcessorcumulatedNumberOfTiles in interface TileBasedDataProcessorpublic TileGridLayout getTileGridLayout(int zoomIntervalIndex)
TileBasedDataProcessorgetTileGridLayout in interface TileBasedDataProcessorzoomIntervalIndex - the index of the zoom intervalprotected void addPOI(TDNode poi)
protected void addWayToTiles(TDWay way, int enlargement)
protected void countPoiTags(TDNode poi)
protected void countWayTags(short[] tags)
protected void countWayTags(TDWay way)