/** @deprecated just use {@link #equals} */ public boolean equalsIncludingAlias(Object o) { return equals(o); }
public String backendSRSOverride(SRS srs) { if (sphericalMercatorOverride != null && srs.equals(SRS.getEPSG3857())) { return sphericalMercatorOverride; } else { return srs.toString(); } }
/** * Returns an immutable list of all the layer's {@link GridSubset} whose {@link GridSet} has a * SRS equal to {@code srs} (may be an alias), or the empty list of none matches. */ public List<GridSubset> getGridSubsetsForSRS(SRS srs) { List<GridSubset> matches = Collections.emptyList(); for (String gridSet : getGridSubsets()) { GridSubset gridSubset = getGridSubset(gridSet); SRS gridSetSRS = gridSubset.getSRS(); if (gridSetSRS.equals(srs)) { if (matches.isEmpty()) { matches = new ArrayList<GridSubset>(2); } matches.add(gridSubset); } } return matches.isEmpty() ? matches : Collections.unmodifiableList(matches); }
/** * This method is deprecated, as a layer may be configured for more than one gridset with the * same SRS. * * @deprecated use {@link #getGridSubsetsForSRS(SRS)} in combination with {@link * GridUtil#findBestMatchingGrid} instead */ public GridSubset getGridSubsetForSRS(SRS srs) { for (String gridSet : getGridSubsets()) { GridSubset gridSubset = getGridSubset(gridSet); SRS gridSetSRS = gridSubset.getSRS(); if (gridSetSRS.equals(srs)) { return gridSubset; } } return null; }
final boolean sameSRS = oldGridSet.getSrs().equals(newGridSet.getSrs());
final boolean sameSRS = oldGridSet.getSrs().equals(newGridSet.getSrs());
needsTruncate |= getTileWidth() != another.getTileWidth(); needsTruncate |= getTileHeight() != another.getTileHeight(); needsTruncate |= !getSrs().equals(another.getSrs());