|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLayer
public class Layer
Nested list of zero or more map Layers offered by this server. It contains only fields for information that we currently find interesting. Feel free to add your own.
Constructor Summary | |
---|---|
Layer()
Crate a layer with no human readable title. |
|
Layer(String title)
Create a layer with an optional title |
Method Summary | |
---|---|
int |
compareTo(Layer layer)
|
String |
get_abstract()
The abstract contains human-readable information about this layer |
HashMap<Object,CRSEnvelope> |
getBoundingBoxes()
Returns every BoundingBox associated with this layer. |
Layer[] |
getChildren()
|
GeneralEnvelope |
getEnvelope(CoordinateReferenceSystem crs)
|
String[] |
getKeywords()
Keywords are Strings to be used in searches |
CRSEnvelope |
getLatLonBoundingBox()
Returns the LatLonBoundingBox for this layer. |
String |
getName()
Gets the name of the Layer . |
Layer |
getParent()
DOCUMENT ME! |
double |
getScaleDenominatorMax()
Max scale denominator for which it is appropriate to draw this layer. |
double |
getScaleDenominatorMin()
Min scale denominator for which it is appropriate to draw this layer. |
double |
getScaleHintMax()
Deprecated. Use getScaleDenomiatorMax() as there is less confusion over meaning |
double |
getScaleHintMin()
Deprecated. Use getScaleDenomiatorMin() as there is less confusion over meaning |
Set |
getSrs()
Accumulates all of the srs/crs specified for this layer and all srs/crs inherited from its ancestors. |
List |
getStyles()
Accumulates all of the styles specified for this layer and all styles inherited from its ancestors. |
String |
getTitle()
|
boolean |
isQueryable()
Determines if this layer is queryable. |
void |
set_abstract(String _abstract)
|
void |
setBoundingBoxes(HashMap boundingBoxes)
Sets this layer's bounding boxes. |
void |
setChildren(Layer[] children)
|
void |
setKeywords(String[] keywords)
|
void |
setLatLonBoundingBox(CRSEnvelope latLonBoundingBox)
|
void |
setName(String name)
Sets the name of this layer. |
void |
setParent(Layer parent)
DOCUMENT ME! |
void |
setQueryable(boolean queryable)
|
void |
setScaleDenominatorMax(double scaleDenominatorMax)
Max scale denominator for which it is appropriate to draw this layer. |
void |
setScaleDenominatorMin(double scaleDenominatorMin)
Min scale denominator for which it is appropriate to draw this layer. |
void |
setScaleHintMax(double scaleHintMax)
Deprecated. Use setScaleDenomiatorMax() as there is less confusion over meaning |
void |
setScaleHintMin(double scaleHintMin)
Deprecated. Use setScaleDenomiatorMin() as there is less confusion over meaning |
void |
setSrs(Set srs)
|
void |
setStyles(List styles)
|
void |
setTitle(String title)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layer()
These layers are simply for organization and storage of common settings (like SRS or style settings). These settings will be valid for all children.
public Layer(String title)
title
- Method Detail |
---|
public HashMap<Object,CRSEnvelope> getBoundingBoxes()
HashMap
returned has each bounding box's CRS/SRS value as
the key, and the value is the BoundingBox
object itself.
Implements inheritance: if this layer's bounding box is null, query ancestors until
the first bounding box is found or no more ancestors
public void setBoundingBoxes(HashMap boundingBoxes)
BoundingBox
object as its value.
boundingBoxes
- a HashMap containing bounding boxespublic String getName()
Layer
. It is designed to be machine
readable, and if it is present, this layer is determined to be drawable
and is a valid candidate for use in a GetMap or GetFeatureInfo request.
public void setName(String name)
name
- the layer's new namepublic Set getSrs()
public void setSrs(Set srs)
public List getStyles()
public void setStyles(List styles)
public String getTitle()
public void setTitle(String title)
public boolean isQueryable()
public void setQueryable(boolean queryable)
public int compareTo(Layer layer)
compareTo
in interface Comparable<Layer>
public Layer getParent()
public void setParent(Layer parent)
parent
- The parent to set.public CRSEnvelope getLatLonBoundingBox()
public void setLatLonBoundingBox(CRSEnvelope latLonBoundingBox)
public Layer[] getChildren()
public void setChildren(Layer[] children)
public String get_abstract()
public void set_abstract(String _abstract)
_abstract
- The _abstract to set.public String[] getKeywords()
public void setKeywords(String[] keywords)
keywords
- The keywords to set.public void setScaleDenominatorMax(double scaleDenominatorMax)
Scale denominator is calculated based on the bounding box of the central pixel in a request (ie not a scale based on real world size of the entire layer).
Max
- scale denominator for which it is approprirate to draw this layerpublic double getScaleDenominatorMax()
Scale denominator is calculated based on the bounding box of the central pixel in a request (ie not a scale based on real world size of the entire layer).
Some web map servers will refuse to render images at a scale greater than the value provided here.
return Max scale denominator for which it is appropriate to draw this layer.
public void setScaleDenominatorMin(double scaleDenominatorMin)
Scale denominator is calculated based on the bounding box of the central pixel in a request (ie not a scale based on real world size of the entire layer).
Min
- scale denominator for which it is appropriate to draw this layerpublic double getScaleDenominatorMin()
Scale denominator is calculated based on the bounding box of the central pixel in a request (ie not a scale based on real world size of the entire layer).
Some web map servers will refuse to render images at a scale less than the value provided here.
return Min scale denominator for which it is appropriate to draw this layer
public double getScaleHintMax()
We assume this calculation is done in a similar manner to getScaleDenominatorMax(); but a look at common web services such as JPL show this not to be the case.
public void setScaleHintMax(double scaleHintMax)
We assume this calculation is done in a similar manner to setScaleDenominatorMax(); but a look at common web services such as JPL show this not to be the case.
The
- second scale hint value (understood to mean the max value)public double getScaleHintMin()
We assume this calculation is done in a similar manner to getScaleDenominatorMin(); but a look at common web services such as JPL show this not to be the case.
public void setScaleHintMin(double scaleHintMin)
We assume this calculation is done in a similar manner to setScaleDenominatorMin(); but a look at common web services such as JPL show this not to be the case.
param The first scale hint value (understood to mean the min value)
public GeneralEnvelope getEnvelope(CoordinateReferenceSystem crs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |