Skip to main content

envelope_point

Function envelope_point 

Source
pub fn envelope_point(point: &Point) -> Result<Polygon>
Expand description

Computes the envelope of a point

For a single point, the envelope is a degenerate rectangle (all four corners at the same location).

§Arguments

  • point - Input point

§Returns

Polygon representing the envelope

§Errors

Returns error if polygon creation fails