com.ontimize.util.gis.extension.google
Class GoogleTilesDataProvider

java.lang.Object
  extended by 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


Field Summary
protected  boolean DEBUG
           
protected static java.awt.image.BufferedImage image
           
protected  int image_format
           
protected static java.awt.image.BufferedImage image2
           
(package private)  java.util.Vector<java.lang.String> lastRequestedTiles
           
static double[] LEVELS_VECTOR
           
static double[] PIXELS_PER_LON_DEG
           
protected  java.lang.StringBuilder sqlBuilder
           
protected static java.lang.String THE_STRING
           
protected  int tsyNumber
           
protected static com.vividsolutions.jts.geom.Envelope worldExtension
           
 
Constructor Summary
GoogleTilesDataProvider()
           
GoogleTilesDataProvider(java.util.Hashtable parameters)
           
 
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
 

Field Detail

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
Constructor Detail

GoogleTilesDataProvider

public GoogleTilesDataProvider()

GoogleTilesDataProvider

public GoogleTilesDataProvider(java.util.Hashtable parameters)
Method Detail

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 data
attributes - Data attributes to query
sessionId - 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)