public class WMTSQueryLayers extends QueryLayers
Concrete class extending the QueryLayers abstract class, providing an implementation for querying a WMTS server's GetCapabilities operation.
WMTS Services provide a set of layers which link against TileMatrixSets that represent the different scale and style layers that will be served to the user. TileMatrixSets may be referenced by multiple layers.
WMTS Services do not allow for nested child layers.
The WMTS specification can be found here: http://www.opengeospatial.org/standards/wmts
QueryLayers.Style
baseURL, getMapURL, isProcessed, layers, mimeTypes, serviceTitle
Constructor and Description |
---|
WMTSQueryLayers(java.lang.String baseURLStr)
Create a new WMTSQueryLayers object with the given URL string that points to a WMTS server.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.List<com.atakmap.android.maps.tilesets.mobac.WMTSQueryLayers.TileMatrix>> |
getMatrixMap() |
void |
process()
Actually perform the query of the map server.
|
getBaseURL, getGetMapURL, getLayers, getMimeTypes, getServiceTitle, isProcessed
public WMTSQueryLayers(java.lang.String baseURLStr)
Create a new WMTSQueryLayers object with the given URL string that points to a WMTS server. baseURLStr may be missing the protocol, in which case HTTP is assumed and "http://" will be pre-pended to the URL string.
No processing or network access is done at this time except for URL syntax validation; process() must be called to actually query the WMS.baseURLStr
- the URL of the WMS server.java.lang.IllegalArgumentException
- if baseURLStr is not a valid URL, the above protocol
exception notwithstanding.protected java.util.Map<java.lang.String,java.util.List<com.atakmap.android.maps.tilesets.mobac.WMTSQueryLayers.TileMatrix>> getMatrixMap()
public void process() throws java.io.IOException
QueryLayers
process
in class QueryLayers
java.io.IOException
- in case of error.