Adds way points to Seq[Coordinates] so that they remain valid with Spatial4j, useful for BBOX
Returns the rough bounds of a geometry, decomposing the geometry to provide better accuracy
Returns the rough bounds of a geometry, decomposing the geometry to provide better accuracy
geometry
maximum number of bounds that will be returned
maximum bit resolution to decompose to must be between 1-63, inclusive
seq of (xmin, ymin, xmax, ymax)
Returns the rough bounds of a geometry
Returns the rough bounds of a geometry
geometry
(xmin, ymin, xmax, ymax)
Calculate the latitude at which a segment intercepts a given latitude.
Calculate the latitude at which a segment intercepts a given latitude.
The first point in the segment
The second point in the segment
The longitude of intercept
a double representing the intercept latitude
Calculate the latitude at which the segment intercepts the IDL.
Calculate the latitude at which the segment intercepts the IDL. This function assumes that the provided points do actually cross the IDL.
The first point in the segment
The second point in the segment
a double representing the intercept latitude
This function checks if a segment crosses the IDL.
This function checks if a segment crosses the IDL.
The first point in the segment
The second point in the segment
boolean true if the segment crosses the IDL, otherwise false
Calculate distance from a point, in degrees.
Calculate distance from a point, in degrees.
Note: normally east/west would be the largest in degrees, but sometimes it can be smaller due to variances in the ellipsoid
point to buffer
distance to buffer, in meters
calculator, for re-use
(east/west, north/south) distance in degrees
Convert meters to decimal degrees, based on the latitude of the geometry.
Convert meters to decimal degrees, based on the latitude of the geometry.
Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value
Distances are measured from the corners of the geometry envelope
envelope to buffer
meters
(min degrees, max degrees)
Convert meters to decimal degrees, based on the latitude of the geometry.
Convert meters to decimal degrees, based on the latitude of the geometry.
Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value
geometry to buffer
meters
geodetic calculator instance
(min degrees, max degrees)
Convert meters to decimal degrees, based on the latitude of the geometry.
Convert meters to decimal degrees, based on the latitude of the geometry.
Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value
For non-point geometries, distances are measured from the corners of the geometry envelope
geometry to buffer
meters
(min degrees, max degrees)
Checks that a polygon is rectangular and has no interior holes
Checks that a polygon is rectangular and has no interior holes
polygon
Evaluates the complexity of a geometry.
Evaluates the complexity of a geometry. Will return true if the geometry is a point or a rectangular polygon without interior holes.
geometry
Split a bounding box envelope, which may extend outside [-180,180], into one or more envelopes that are contained within [-180,180]
Split a bounding box envelope, which may extend outside [-180,180], into one or more envelopes that are contained within [-180,180]
envelope of a bounding box
The object provides convenience methods for common operations on geometries.