Package org.geotools.tile.impl.osm
Class OSMTileFactory
Object
TileFactory
WebMercatorTileFactory
OSMTileFactory
The tile factory implementation for the OpenStreetMap family
- Since:
- 12
- Author:
- Tobias Sauerwein, Ugo Taddei
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(TileIdentifier identifier, TileService service) Creates a new tile for the given position using a service.findLowerNeighbour(Tile tile, TileService service) Finds the tile for a service at the given position and zoom level, which is immediately below the the passed tile.findRightNeighbour(Tile tile, TileService service) Finds the tile for a service at the given position and zoom level, which is immediately to the right of the passed tile.findTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel, TileService service) Finds the tile for a service at the given position and zoom level.static doublemoveInRange(double value, double min, double max) This method ensures that value is between min and max.Methods inherited from class WebMercatorTileFactorygetExtentFromTileName, getZoomLevel, tile2lat, tile2lonMethods inherited from class TileFactorynormalizeDegreeValue
- 
Constructor Details- 
OSMTileFactorypublic OSMTileFactory()
 
- 
- 
Method Details- 
createDescription copied from class:TileFactoryCreates a new tile for the given position using a service.- Specified by:
- createin class- TileFactory
- Returns:
 
- 
findTileAtCoordinateDescription copied from class:TileFactoryFinds the tile for a service at the given position and zoom level.- Specified by:
- findTileAtCoordinatein class- TileFactory
- Parameters:
- lon- the longitude
- lat- the latitude
- zoomLevel- the zoom level
- service- the service
- Returns:
- a tile
 
- 
moveInRangepublic static double moveInRange(double value, double min, double max) This method ensures that value is between min and max. If value < min, min is returned. If value > max, max is returned. Otherwise value.
- 
findRightNeighbourDescription copied from class:TileFactoryFinds the tile for a service at the given position and zoom level, which is immediately to the right of the passed tile.- Specified by:
- findRightNeighbourin class- TileFactory
- Parameters:
- tile- the reference tile
 
- 
findLowerNeighbourDescription copied from class:TileFactoryFinds the tile for a service at the given position and zoom level, which is immediately below the the passed tile.- Specified by:
- findLowerNeighbourin class- TileFactory
- Parameters:
- tile- the reference tile
 
 
-