public class SHISPlugIn extends WebImagePlugIn implements ImageServerConstants
The query to the SimpleHttpImageServer looks like something you can plug into your browser to test the server:
http://hostname:port/path?REQUEST=MAP&PROJTYPE=projection_type_value&SCALE=scale_value&LAT=center_latitude&LON=center_longitude&HEIGHT=map_pixel_height&WIDTH=map_pixel_width&FORMAT=image_format&TRANSPARENT=true|false&BGCOLOR=background_color
The projection information will be entered automatically by the plugin based on the projection it receives from the MapBean. The other parameters can be entered in the properties for the layer. #For the plugin layer pluginlayer.class=com.bbn.openmap.plugin.PlugInLayer pluginlayer.prettyName=Whatever pluginlayer.plugin=com.bbn.openmap.plugin.shis.SHISPlugIn pluginlayer.plugin.host=hostname pluginlayer.plugin.port=port number pluginlayer.plugin.path=query path (default is openmap) pluginlayer.plugin.format=image format (JPEG, GIF from WMTConstants.java) pluginlayer.plugin.transparent=true or false, depends on imageformat pluginlayer.plugin.backgroundColor=RGB hex string (RRGGBB)
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
backgroundColor |
static java.lang.String |
BackgroundColorProperty |
protected java.lang.String |
host |
static java.lang.String |
HostNameProperty |
protected java.lang.String |
imageFormat |
static java.lang.String |
ImageFormatProperty |
protected java.lang.String |
path |
static java.lang.String |
PathProperty |
protected java.lang.String |
port |
static java.lang.String |
PortNumberProperty |
protected java.lang.String |
queryHeader |
protected java.lang.String |
transparent |
static java.lang.String |
TransparentProperty |
currentProjection, layer, logger, messageWindow, redrawButton
addToBeanContext, component, mml, name, prefix, removable, RemovableProperty
AZIMUTH, LAT, LAYERMASK, LAYERS, LON, PAN, PROJTYPE, QUERY, RECENTER, SCALE, X, Y
BBOX, BGCOLOR, CAPABILITIES, CRS, EXCEPTIONS, FORMAT, GETCAPABILITIES, GETFEATUREINFO, GETLEGENDGRAPHIC, GETMAP, HEIGHT, IMAGEFORMAT_GEOTIFF, IMAGEFORMAT_GIF, IMAGEFORMAT_JPEG, IMAGEFORMAT_PNG, IMAGEFORMAT_PPM, IMAGEFORMAT_SVG, IMAGEFORMAT_TIFF, IMAGEFORMAT_WBMP, INFO_FORMAT, LAYER, MAP, QUERY_LAYERS, REQUEST, SERVICE, SRS, STYLE, STYLES, TRANSPARENT, VERSION, WIDTH, WMTVER
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
SHISPlugIn() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createQueryString(Projection p)
When a projection is received, translate it into a valid
request for a SimpleHttpImageServer, and then return the image
received back from it.
|
java.lang.String |
getLayerMarkers() |
java.util.Properties |
getProperties(java.util.Properties getList)
PropertyConsumer method.
|
java.util.Properties |
getPropertyInfo(java.util.Properties list)
PropertyConsumer method.
|
java.lang.String |
getServerName() |
void |
setProperties(java.lang.String prefix,
java.util.Properties setList)
PropertyConsumer method.
|
getGUI, getRectangle, setComponent
dispose, doPrepare, getAddToBeanContext, getComponent, getMapMouseListener, getMouseModeServiceList, getName, getPropertyPrefix, isRemovable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, removed, repaint, setAddToBeanContext, setMapMouseListener, setName, setProperties, setPropertyPrefix, setRemovable
protected java.lang.String queryHeader
protected java.lang.String imageFormat
protected java.lang.String backgroundColor
protected java.lang.String transparent
protected java.lang.String host
protected java.lang.String port
protected java.lang.String path
public static final java.lang.String HostNameProperty
public static final java.lang.String PortNumberProperty
public static final java.lang.String PathProperty
public static final java.lang.String ImageFormatProperty
public static final java.lang.String BackgroundColorProperty
public static final java.lang.String TransparentProperty
public java.lang.String createQueryString(Projection p)
createQueryString
in class WebImagePlugIn
p
- projection of the screen, holding scale, center
coords, height, width.public java.lang.String getServerName()
getServerName
in class WebImagePlugIn
public java.lang.String getLayerMarkers()
public void setProperties(java.lang.String prefix, java.util.Properties setList)
setProperties
in interface PropertyConsumer
setProperties
in class AbstractPlugIn
prefix
- a String used by the PropertyConsumer to prepend to each
property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix had already
been set, then the prefix passed in should replace that previous
value.setList
- a Properties object that the PropertyConsumer can use to
retrieve expected properties it can use for configuration.public java.util.Properties getProperties(java.util.Properties getList)
getProperties
in interface PropertyConsumer
getProperties
in class AbstractPlugIn
getList
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new Properties
object should be created.public java.util.Properties getPropertyInfo(java.util.Properties list)
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class AbstractPlugIn
list
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details