/** * Calls {@link #calcProjectionBoundaryPoints(int, int)} with {@link Integer#MAX_VALUE} as both arguments. * In effect, the boundary will contain ALL of the points along the edges of the CRS. * * @return the boundary of this coordinate reference system, in projection coordinates. */ public List<ProjectionPoint> calcProjectionBoundaryPoints() { return calcProjectionBoundaryPoints(Integer.MAX_VALUE, Integer.MAX_VALUE); }
private List<LatLonPoint> calcLatLonBoundaryPointsFromProjection(int maxPointsInYEdge, int maxPointsInXEdge) { List<ProjectionPoint> projPoints = calcProjectionBoundaryPoints(maxPointsInYEdge, maxPointsInXEdge); List<LatLonPoint> latLonPoints = new LinkedList<>(); for (ProjectionPoint projPoint : projPoints) { latLonPoints.add(transform.getProjection().projToLatLon(projPoint)); } return latLonPoints; }