public final class HDTileBasedDataProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
bboxEnlargement |
protected 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 Logger |
LOGGER |
protected long |
maxWayID |
protected gnu.trove.map.hash.TLongObjectHashMap<gnu.trove.list.array.TLongArrayList> |
outerToInnerMapping |
protected String |
preferredLanguage |
protected boolean |
skipInvalidRelations |
protected TileGridLayout[] |
tileGridLayouts |
protected 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. build indexes or similar.
|
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.
|
BoundingBox |
getBoundingBox()
Get the bounding box that describes this TileBasedDataStore.
|
Set<TDWay> |
getCoastLines(TileCoordinate tc)
Retrieve all coastlines that cross the given tile.
|
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 |
handleVirtualInnerWay(TDWay virtualWay) |
protected void |
handleVirtualOuterWay(TDWay virtualWay) |
static HDTileBasedDataProcessor |
newInstance(MapWriterConfiguration configuration)
Creates a new
HDTileBasedDataProcessor. |
void |
release()
Release all acquired resources, e.g. delete any temporary files.
|
protected static final Logger LOGGER
protected final int bboxEnlargement
protected final 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 String preferredLanguage
protected final boolean skipInvalidRelations
protected TileGridLayout[] tileGridLayouts
protected final Map<TileCoordinate,gnu.trove.set.hash.TLongHashSet> tilesToCoastlines
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 complete()
TileBasedDataProcessorpublic Set<TDWay> getCoastLines(TileCoordinate tc)
TileBasedDataProcessortc - the coordinate of the tilepublic 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 waypublic void release()
TileBasedDataProcessorprotected 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 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 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)
Copyright © 2014 mapsforge.org