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.
 java.util.ArrayList intersects(boolean projected, WMTSTileMatrixLimits tileMatrixLimits, java.awt.geom.Rectangle2D request, java.awt.geom.Rectangle2D extentLayer)
          Deprecated. this method was for grid subsets.
 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

setForceLongitudeFirstAxisOrder

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

Parameters:
force -

setBBoxTileMatrixSet

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

getBBoxTileMatrixSet

public java.awt.geom.Rectangle2D getBBoxTileMatrixSet()

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

getScaleDenominator

public double getScaleDenominator()

setScaleDenominator

public void setScaleDenominator(double scaleDenominator)

getTileWidth

public int getTileWidth()

setTileWidth

public void setTileWidth(int tileWidth)

getTileHeight

public int getTileHeight()

setTileHeight

public void setTileHeight(int tileHeight)

getMatrixWidth

public long getMatrixWidth()

setMatrixWidth

public void setMatrixWidth(long matrixWidth)

getMatrixHeight

public long getMatrixHeight()

setMatrixHeight

public void setMatrixHeight(long matrixHeight)

getTopLeftCorner

public double[] getTopLeftCorner()

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

getWidthWCTile

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

Returns:

getHeightWCTile

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

Returns:

intersects

public java.util.ArrayList intersects(boolean projected,
                                      WMTSTileMatrixLimits tileMatrixLimits,
                                      java.awt.geom.Rectangle2D request,
                                      java.awt.geom.Rectangle2D extentLayer)
Deprecated. this method was for grid subsets.

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.


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.


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.


print

public void print()


Copyright © 2004-2013 gvSIG. All Rights Reserved.