fr.imag.adele.util.location
Class MapServerUtil

java.lang.Object
  extended byfr.imag.adele.util.location.MapServerUtil

public class MapServerUtil
extends Object

this class provides methods to format location, coordinates and map server links for following formats: (Plain)Text, Html, Xml, JavaScript
TODO:

Version:
0.1, 29 march 2003
Author:
Didier Donsez (Didier.Donsez@ieee.org)

Field Summary
static int[] scales
          This array contains scales for maps for listMaps* methods
 
Constructor Summary
MapServerUtil()
           
 
Method Summary
static StringBuffer listMapsInHtml(StringBuffer sb, float latitude, float longitude, int width, int height, int[] scales)
          formats links to map servers in HTML
static StringBuffer listMapsInJavascript(StringBuffer sb, float latitude, float longitude, int width, int height, int[] scales)
          formats links to map servers in JavaScript
static StringBuffer listMapsInXml(StringBuffer sb, float latitude, float longitude, int width, int height, int[] scales)
          formats links to map servers in XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scales

public static final int[] scales
This array contains scales for maps for listMaps* methods

Constructor Detail

MapServerUtil

public MapServerUtil()
Method Detail

listMapsInHtml

public static StringBuffer listMapsInHtml(StringBuffer sb,
                                          float latitude,
                                          float longitude,
                                          int width,
                                          int height,
                                          int[] scales)
formats links to map servers in HTML

Parameters:
sb - a StringBuffer to append result (could be null)
latitude - the latitude of the maps center
longitude - the longitude of the maps center
width - the width of the image (in pixels)
height - the height of the image (in pixels)
scales - an array of scales
Returns:
sb (created if sb is null)

listMapsInXml

public static StringBuffer listMapsInXml(StringBuffer sb,
                                         float latitude,
                                         float longitude,
                                         int width,
                                         int height,
                                         int[] scales)
formats links to map servers in XML

Parameters:
sb - a StringBuffer to append result (could be null)
latitude - the latitude of the maps center
longitude - the longitude of the maps center
width - the width of the image (in pixels)
height - the height of the image (in pixels)
scales - an array of scales
Returns:
sb (created if sb is null)

listMapsInJavascript

public static StringBuffer listMapsInJavascript(StringBuffer sb,
                                                float latitude,
                                                float longitude,
                                                int width,
                                                int height,
                                                int[] scales)
formats links to map servers in JavaScript

Parameters:
sb - a StringBuffer to append result (could be null)
latitude - the latitude of the maps center
longitude - the longitude of the maps center
width - the width of the image (in pixels)
height - the height of the image (in pixels)
scales - an array of scales
Returns:
sb (created if sb is null)