private int relate(Rectangle r) { // Construct the right kind of GeoArea first GeoArea geoArea = GeoAreaFactory.makeGeoArea(shape.getPlanetModel(), r.getMaxY() * DistanceUtils.DEGREES_TO_RADIANS, r.getMinY() * DistanceUtils.DEGREES_TO_RADIANS, r.getMinX() * DistanceUtils.DEGREES_TO_RADIANS, r.getMaxX() * DistanceUtils.DEGREES_TO_RADIANS); return geoArea.getRelationship(shape); }
switch(xyzSolid.getRelationship(shape)) { case GeoArea.CONTAINS: