/** * Constructs a gml:Envelope by copying from the given box. This calls the * {@link #GmlEnvelope(Point, Point)} constructor with the points in the box, * or with nulls if the box itself is null. */ public GmlEnvelope(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Constructs a gml:Envelope by copying from the given box. This calls the * {@link #GmlEnvelope(Point, Point)} constructor with the points in the box, * or with nulls if the box itself is null. */ public GmlEnvelope(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Constructs a georss:box element by copying the data from the given box. * Will call the {@link #GeoRssBox(Point, Point)} constructor with the parts * of the passed in box, or with nulls if the box itself is null. */ public GeoRssBox(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Constructs a gml:Envelope by copying from the given box. This calls the * {@link #GmlEnvelope(Point, Point)} constructor with the points in the box, * or with nulls if the box itself is null. */ public GmlEnvelope(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Constructs a georss:box element by copying the data from the given box. * Will call the {@link #GeoRssBox(Point, Point)} constructor with the parts * of the passed in box, or with nulls if the box itself is null. */ public GeoRssBox(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Constructs a georss:box element by copying the data from the given box. * Will call the {@link #GeoRssBox(Point, Point)} constructor with the parts * of the passed in box, or with nulls if the box itself is null. */ public GeoRssBox(Box box) { this(box == null ? null : box.getLowerLeft(), box == null ? null : box.getUpperRight()); }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }
/** * Sets the geo bounding box of the extension passed in. This will first * try to replace any existing bounding box information. If there is no * existing bounding box, then it'll simply add the box extension. * * @param ext The extension point to add the Box to. * @param box The new box information. */ public static void setBox(ExtensionPoint ext, Box box) { Box existing = getBoxExtension(ext); if (existing != null) { Point lowerLeft = box != null ? box.getLowerLeft() : null; Point upperRight = box != null ? box.getUpperRight() : null; // If we have a box already, we copy the new points onto it if we can. existing.setGeoLocation(lowerLeft, upperRight); } else if (box != null) { // We don't have a box yet, so we set it directly here. We actually use // the passed-in extension in this case. ext.setExtension(box); } }