org.mapfish.print.map.readers
Class OsmLayerInfo

java.lang.Object
  extended by org.mapfish.print.map.readers.TileCacheLayerInfo
      extended by org.mapfish.print.map.readers.OsmLayerInfo

public class OsmLayerInfo
extends TileCacheLayerInfo

Holds the information we need to manage an OSM layer.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mapfish.print.map.readers.TileCacheLayerInfo
TileCacheLayerInfo.ResolutionInfo
 
Field Summary
protected static double RESOLUTION_TOLERANCE
          Tolerance we accept when trying to determine the nearest resolution.
 
Fields inherited from class org.mapfish.print.map.readers.TileCacheLayerInfo
extension, FORMAT_REGEXP, height, maxX, maxY, minX, minY, resolutions, RESOLUTIONS_REGEXP, width
 
Constructor Summary
OsmLayerInfo(PJsonArray resolutions, int width, int height, float minX, float minY, float maxX, float maxY, java.lang.String extension)
           
OsmLayerInfo(java.lang.String resolutions, int width, int height, float minX, float minY, float maxX, float maxY, java.lang.String format)
           
 
Method Summary
 TileCacheLayerInfo.ResolutionInfo getNearestResolution(float targetResolution)
           
 
Methods inherited from class org.mapfish.print.map.readers.TileCacheLayerInfo
equals, getExtension, getHeight, getMaxY, getMinX, getMinY, getResolutions, getWidth, isVisible, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOLUTION_TOLERANCE

protected static final double RESOLUTION_TOLERANCE
Tolerance we accept when trying to determine the nearest resolution.

See Also:
Constant Field Values
Constructor Detail

OsmLayerInfo

public OsmLayerInfo(java.lang.String resolutions,
                    int width,
                    int height,
                    float minX,
                    float minY,
                    float maxX,
                    float maxY,
                    java.lang.String format)

OsmLayerInfo

public OsmLayerInfo(PJsonArray resolutions,
                    int width,
                    int height,
                    float minX,
                    float minY,
                    float maxX,
                    float maxY,
                    java.lang.String extension)
Method Detail

getNearestResolution

public TileCacheLayerInfo.ResolutionInfo getNearestResolution(float targetResolution)
Overrides:
getNearestResolution in class TileCacheLayerInfo


Copyright © 2009 Camptocamp SA. All Rights Reserved.