@Test public void testIsNativelySupported() throws NoSuchAuthorityCodeException, FactoryException { CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84; assertTrue(restMapLayer.isNativelySupported(crs)); assertTrue(kvpMapLayer.isNativelySupported(crs)); crs = CRS.decode("epsg:3857"); crs = CRS.decode("epsg:27700"); assertFalse(kvpMapLayer.isNativelySupported(crs)); }
public boolean isNativelySupported(CoordinateReferenceSystem crs) { try { String code = CRS.lookupIdentifier(crs, false); return code != null && getReader().validSRS.contains(code); } catch (Exception t) { return false; } }
WMTSMapLayer extends GridReaderLayer { public boolean isNativelySupported(CoordinateReferenceSystem crs) { try { String code = CRS.lookupIdentifier(crs, false); return code != null && getReader().validSRS.contains(code); } catch (Exception t) { return false; } } }
WMTSMapLayer extends GridReaderLayer { public boolean isNativelySupported(CoordinateReferenceSystem crs) { try { String code = CRS.lookupIdentifier(crs, false); return code != null && getReader().validSRS.contains(code); } catch (Exception t) { return false; } } WMTSMapLayer(WebMapTileServer wmts, Layer layer); }
WMTSMapLayer extends GridReaderLayer { public boolean isNativelySupported(CoordinateReferenceSystem crs) { try { String code = CRS.lookupIdentifier(crs, false); return code != null && getReader().validSRS.contains(code); } catch (Exception t) { return false; } } WMTSMapLayer(WebMapTileServer wmts, Layer layer); WMTSCoverageReader getReader(); synchronized ReferencedEnvelope getBounds(); WebMapTileServer getWebMapServer(); CoordinateReferenceSystem getCoordinateReferenceSystem(); GetTileRequest getLastGetMap(); boolean isNativelySupported(CoordinateReferenceSystem crs); String getRawTime(); void setRawTime(String rawTime); }
WMTSMapLayer extends GridReaderLayer { public boolean isNativelySupported(CoordinateReferenceSystem crs) { try { String code = CRS.lookupIdentifier(crs, false); return code != null && getReader().validSRS.contains(code); } catch (Exception t) { return false; } } WMTSMapLayer(WebMapTileServer wmts, Layer layer); WMTSCoverageReader getReader(); synchronized ReferencedEnvelope getBounds(); WebMapTileServer getWebMapServer(); CoordinateReferenceSystem getCoordinateReferenceSystem(); GetTileRequest getLastGetMap(); boolean isNativelySupported(CoordinateReferenceSystem crs); String getRawTime(); void setRawTime(String rawTime); static final Logger LOGGER; }