org.deegree_impl.clients.wmsclient.model
Class ModelVerify
java.lang.Object
org.deegree_impl.clients.wmsclient.model.ModelVerify
- public class ModelVerify
- extends java.lang.Object
- Version:
- $Revision: 1.4 $
- Author:
- Andreas Poth
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelVerify
public ModelVerify()
setToBoundaries
public static WMSGetMapRequest setToBoundaries(WMSGetMapRequest mrm,
GM_Envelope maxBBox)
- validates the bounding box of the model against the maximal
possible bounding box. If the bounding box of the model exceeds
the limiting bounding box it will be corrected
setToMinScale
public static WMSGetMapRequest setToMinScale(WMSGetMapRequest mrm,
double minScale)
- validates the scale of the model against the allowed minimal scale.
if the scale of the model is smaller then minScale the model will
be rescaled.
getScale
private static double getScale(double minx,
double miny,
double maxx,
double maxy,
int width,
int height)
- returns the scale of the requested map. the scale is measured as defined
at the WMS 1.0.0 specifications of the OGC