org.gvsig.remoteclient.wmts.struct
Class WMTSTileMatrix

java.lang.Object
  extended by org.gvsig.remoteclient.wmts.struct.WMTSBaseStruct
      extended by org.gvsig.remoteclient.wmts.struct.WMTSTileMatrix
Direct Known Subclasses:
WMTSTileMatrix_1_0_0

public abstract class WMTSTileMatrix
extends WMTSBaseStruct

Description of a tile matrix

Author:
Nacho Brodin (nachobrodin@gmail.com)

Nested Class Summary
 class WMTSTileMatrix.Tile
           
 
Field Summary
protected  boolean forceLongitudeFirstAxisOrder
           
 
Fields inherited from class org.gvsig.remoteclient.wmts.struct.WMTSBaseStruct
gmlTag
 
Constructor Summary
WMTSTileMatrix()
           
 
Method Summary
 java.util.ArrayList contains(boolean projected, java.awt.geom.Point2D point, java.awt.geom.Rectangle2D extentLayer)
          This function will check if the request coordinates intersects with the tiles in the matrix.
 java.util.ArrayList contains(boolean projected, WMTSTileMatrixLimits tileMatrixLimits, java.awt.geom.Point2D point, java.awt.geom.Rectangle2D extentLayer)
          This function will check if the request coordinates intersects with the tiles in the matrix.
 java.awt.geom.Rectangle2D getBBoxTileMatrixSet()
           
 double getHeightWCTile(boolean projected)
          Gets the height in world coordinates of a tile
 long getMatrixHeight()
           
 long getMatrixWidth()
           
 double getScaleDenominator()
           
 int getTileHeight()
           
 int getTileWidth()
           
 double[] getTopLeftCorner()
           
 double getWidthWCTile(boolean projected)
          Gets the width in world coordinates of a tile
 java.util.ArrayList intersects(boolean projected, java.awt.geom.Rectangle2D request, java.awt.geom.Rectangle2D extentLayer)
          This function will check if the request coordinates intersects with the tiles in the matrix.
 void parse(org.kxml2.io.KXmlParser parser)
          Parses this service ID
abstract  void parse(org.kxml2.io.KXmlParser parser, java.util.ArrayList list)
          Parses this service
 void print()
           
 void setBBoxTileMatrixSet(java.awt.geom.Rectangle2D bbox)
           
 void setForceLongitudeFirstAxisOrder(boolean force)
          Sets longitude first in the axis order read from the capabilities file
 void setMatrixHeight(long matrixHeight)
           
 void setMatrixWidth(long matrixWidth)
           
 void setScaleDenominator(double scaleDenominator)
           
 void setTileHeight(int tileHeight)
           
 void setTileWidth(int tileWidth)
           
 
Methods inherited from class org.gvsig.remoteclient.wmts.struct.WMTSBaseStruct
compareName, getAbstract, getIdentifier, getTitle, nextText, setAbstract, setIdentifier, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forceLongitudeFirstAxisOrder

protected boolean forceLongitudeFirstAxisOrder
Constructor Detail

WMTSTileMatrix

public WMTSTileMatrix()
Method Detail

contains

public java.util.ArrayList contains(boolean projected,
                                    java.awt.geom.Point2D point,
                                    java.awt.geom.Rectangle2D extentLayer)
This function will check if the request coordinates intersects with the tiles in the matrix. If a tile intersects then this will be added to the list.


contains

public java.util.ArrayList contains(boolean projected,
                                    WMTSTileMatrixLimits tileMatrixLimits,
                                    java.awt.geom.Point2D point,
                                    java.awt.geom.Rectangle2D extentLayer)
This function will check if the request coordinates intersects with the tiles in the matrix. If a tile intersects then this will be added to the list.


getBBoxTileMatrixSet

public java.awt.geom.Rectangle2D getBBoxTileMatrixSet()

getHeightWCTile

public double getHeightWCTile(boolean projected)
Gets the height in world coordinates of a tile

Returns:

getMatrixHeight

public long getMatrixHeight()

getMatrixWidth

public long getMatrixWidth()

getScaleDenominator

public double getScaleDenominator()

getTileHeight

public int getTileHeight()

getTileWidth

public int getTileWidth()

getTopLeftCorner

public double[] getTopLeftCorner()

getWidthWCTile

public double getWidthWCTile(boolean projected)
Gets the width in world coordinates of a tile

Returns:

intersects

public java.util.ArrayList intersects(boolean projected,
                                      java.awt.geom.Rectangle2D request,
                                      java.awt.geom.Rectangle2D extentLayer)
This function will check if the request coordinates intersects with the tiles in the matrix. If a tile intersects then this will be added to the list.


parse

public void parse(org.kxml2.io.KXmlParser parser)
           throws java.io.IOException,
                  org.xmlpull.v1.XmlPullParserException
Description copied from class: WMTSBaseStruct
Parses this service ID

Specified by:
parse in class WMTSBaseStruct
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

parse

public abstract void parse(org.kxml2.io.KXmlParser parser,
                           java.util.ArrayList list)
                    throws java.io.IOException,
                           org.xmlpull.v1.XmlPullParserException
Parses this service

Parameters:
parser -
content -
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

print

public void print()

setBBoxTileMatrixSet

public void setBBoxTileMatrixSet(java.awt.geom.Rectangle2D bbox)

setForceLongitudeFirstAxisOrder

public void setForceLongitudeFirstAxisOrder(boolean force)
Sets longitude first in the axis order read from the capabilities file

Parameters:
force -

setMatrixHeight

public void setMatrixHeight(long matrixHeight)

setMatrixWidth

public void setMatrixWidth(long matrixWidth)

setScaleDenominator

public void setScaleDenominator(double scaleDenominator)

setTileHeight

public void setTileHeight(int tileHeight)

setTileWidth

public void setTileWidth(int tileWidth)


Copyright © 2014 gvSIG Association. All Rights Reserved.