com.ontimize.util.gis.extension.google
Class GoogleTilesDataProvider
java.lang.Object
com.ontimize.util.gis.extension.google.GoogleTilesDataProvider
- All Implemented Interfaces:
- IDataProvider
public class GoogleTilesDataProvider
- extends java.lang.Object
- implements IDataProvider
Scales: 0.00000268221;0.000005364418;0.000010759;0.000021518;0.000043036;0.000086072;0.0001712144;0.000344288;0.000688576;0.0013177152;0.00274658203125;0.0054931640625;0.010986328125;0.02197265625;0.0439453125;0.087890625;0.17578125;0.3515625;0.703125;1.40625
|
Method Summary |
protected java.awt.image.BufferedImage |
createBuffer(int width,
int height)
|
static int |
getZoomLevel(double pixelSize)
|
void |
initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
|
java.lang.Object |
query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
This method must implement a standard query operation returning the set
of data that matches the conditions specified by the keysValues
parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THE_STRING
protected static final java.lang.String THE_STRING
- See Also:
- Constant Field Values
worldExtension
protected static com.vividsolutions.jts.geom.Envelope worldExtension
PIXELS_PER_LON_DEG
public static final double[] PIXELS_PER_LON_DEG
LEVELS_VECTOR
public static final double[] LEVELS_VECTOR
tsyNumber
protected int tsyNumber
image_format
protected int image_format
lastRequestedTiles
java.util.Vector<java.lang.String> lastRequestedTiles
sqlBuilder
protected final java.lang.StringBuilder sqlBuilder
DEBUG
protected boolean DEBUG
image
protected static java.awt.image.BufferedImage image
image2
protected static java.awt.image.BufferedImage image2
GoogleTilesDataProvider
public GoogleTilesDataProvider()
GoogleTilesDataProvider
public GoogleTilesDataProvider(java.util.Hashtable parameters)
query
public java.lang.Object query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
throws java.lang.Exception
- Description copied from interface:
IDataProvider
- This method must implement a standard query operation returning the set
of data that matches the conditions specified by the keysValues
parameter. The attributes defines which attributes (or columns if data is
obtained from a database) must be recovered, and keysValues specifies
which set of records must be recovered.
- Specified by:
query in interface IDataProvider
- Parameters:
keysValues - Identifiers for the dataattributes - Data attributes to querysessionId - Session Id for this user
- Returns:
- Requested data
- Throws:
java.lang.Exception
createBuffer
protected java.awt.image.BufferedImage createBuffer(int width,
int height)
initProvider
public void initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
- Specified by:
initProvider in interface IDataProvider
getZoomLevel
public static int getZoomLevel(double pixelSize)