Class CylindricalProjectionTileFactory
- java.lang.Object
-
- org.meteoinfo.data.mapdata.webmap.TileFactory
-
- org.meteoinfo.data.mapdata.webmap.AbstractTileFactory
-
- org.meteoinfo.data.mapdata.webmap.DefaultTileFactory
-
- org.meteoinfo.data.mapdata.webmap.bmng.CylindricalProjectionTileFactory
-
public class CylindricalProjectionTileFactory extends DefaultTileFactory
-
-
Constructor Summary
Constructors Constructor Description CylindricalProjectionTileFactory()CylindricalProjectionTileFactory(SLMapServerInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Point2DgeoToPixel(GeoPosition c, int zoom)Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.java.awt.DimensiongetMapSize(int zoom)Returns a Dimension containing the width and height of the map, in tiles at the current zoom level.GeoPositionpixelToGeo(java.awt.geom.Point2D pix, int zoom)Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition-
Methods inherited from class org.meteoinfo.data.mapdata.webmap.AbstractTileFactory
createTileRunner, getService, getTile, getTileCache, getURI, load, promote, setThreadPoolSize, setTileCache, startLoading
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.meteoinfo.data.mapdata.webmap.TileFactory
getInfo, getTileSize
-
-
-
-
Constructor Detail
-
CylindricalProjectionTileFactory
public CylindricalProjectionTileFactory()
-
CylindricalProjectionTileFactory
public CylindricalProjectionTileFactory(SLMapServerInfo info)
-
-
Method Detail
-
getMapSize
public java.awt.Dimension getMapSize(int zoom)
Description copied from class:TileFactoryReturns a Dimension containing the width and height of the map, in tiles at the current zoom level. So a Dimension that returns 10x20 would be 10 tiles wide and 20 tiles tall. These values can be multipled by getTileSize() to determine the pixel width/height for the map at the given zoom level- Overrides:
getMapSizein classTileFactory- Parameters:
zoom- the current zoom level- Returns:
- the size of the world bitmap in tiles
-
geoToPixel
public java.awt.geom.Point2D geoToPixel(GeoPosition c, int zoom)
Description copied from class:TileFactoryConvert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.- Overrides:
geoToPixelin classTileFactory- Parameters:
c- a GeoPositionzoom- the zoom level to extract the pixel coordinate for- Returns:
- the pixel point
-
pixelToGeo
public GeoPosition pixelToGeo(java.awt.geom.Point2D pix, int zoom)
Description copied from class:TileFactoryConvert a pixel in the world bitmap at the specified zoom level into a GeoPosition- Overrides:
pixelToGeoin classTileFactory- Parameters:
pix- a Point2D representing a pixel in the world bitmapzoom- the zoom level of the world bitmap- Returns:
- the converted GeoPosition
-
-