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

java.lang.Object
  extended by com.ontimize.util.gis.extension.google.URLGenerator

public class URLGenerator
extends java.lang.Object

Class used to generate http requests for Google maps data provider


Constructor Summary
URLGenerator()
           
 
Method Summary
static java.lang.String generateURL(com.vividsolutions.jts.geom.Envelope boundingBox, int image_width, int image_height, int tsyNumber)
           
static com.vividsolutions.jts.geom.Envelope getResultBBox(com.vividsolutions.jts.geom.Envelope boundingBox, int image_width, int image_height)
          Gets the resulting bounding box adjusted to the google maps request created with generateURL method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLGenerator

public URLGenerator()
Method Detail

generateURL

public static java.lang.String generateURL(com.vividsolutions.jts.geom.Envelope boundingBox,
                                           int image_width,
                                           int image_height,
                                           int tsyNumber)

getResultBBox

public static com.vividsolutions.jts.geom.Envelope getResultBBox(com.vividsolutions.jts.geom.Envelope boundingBox,
                                                                 int image_width,
                                                                 int image_height)
Gets the resulting bounding box adjusted to the google maps request created with generateURL method

Parameters:
boundingBox - Interest bounding box on WGS 84 reference system
image_width - Image width
image_height - Image height
Returns:
Resulting bounding box