The bounds of this geometry
A unique identifier for this geometry.
This is set when a Geometry is added as component of another geometry
Return whether or not the geometry is at the specified location
Optional
toleranceLon: numberOptional
toleranceLat: numberMethod: calculateBounds Create a new Bounds based on the lon/lat
Nullify this components bounds and that of its parent as well.
Create a clone of this geometry.
Destroy this geometry.
Calculate the closest distance between two geometries (on the x-y plane). Return {Number | Object} The distance between this geometry and the target. If details is true, the return will be an object with distance, x0, y0, x1, and x2 properties. The x0 and y0 properties represent the coordinates of the closest point on this geometry. The x1 and y1 properties represent the coordinates of the closest point on the target geometry.
Calculate the closest distance between two geometries (on the x-y plane). Return {Number | Object} The distance between this geometry and the target. If details is true, the return will be an object with distance, x0, y0, x1, and x2 properties. The x0 and y0 properties represent the coordinates of the closest point on this geometry. The x1 and y1 properties represent the coordinates of the closest point on the target geometry.
Optional
options: DistanceOptions<false>Determine whether another geometry is equivalent to this one. Geometries are considered equivalent if all components have the same coordinates.
Extend the existing bounds to include the new bounds. If geometry's bounds is not yet set, then set a new Bounds.
Returns the area of the collection by summing its parts
Get the bounds for this Geometry. If bounds is not set, it is calculated again, this makes queries faster.
Calculate the centroid of this geometry. This method is defined in subclasses.
Returns the length of the collection by summing its parts
Return a list of all points in this geometry.
Moves a geometry by the given displacement along positive x and y axes. This modifies the position of the geometry and clears the cached bounds.
Returns a text representation of the geometry. If the WKT format is included in a build, this will be the Well-Known Text representation.
Translate the x,y properties of the point from source to dest.
Translate the x,y properties of the point from source to dest.
Static
distanceFunction: OpenLayers.Geometry.distanceToSegment
Parameters: point - {Object} An object with x and y properties representing the point coordinates. segment - {Object} An object with x1, y1, x2, and y2 properties representing endpoint coordinates.
Returns: {Object} An object with distance, along, x, and y properties. The distance will be the shortest distance between the input point and segment. The x and y properties represent the coordinates along the segment where the shortest distance meets the segment. The along attribute describes how far between the two segment points the given point is.
Static
fromWKT
Construct a point geometry.