[][src]Crate geo

Re-exports

pub use crate::algorithm::*;

Modules

algorithm

This module includes all the functions of geometric calculations

line_string
prelude

A prelude which re-exports the traits for manipulating objects in this crate. Typically imported with use geo::prelude::*.

Macros

line_string

Creates a LineString containing the given coordinates.

point

Creates a Point from the given coordinates.

polygon

Creates a Polygon containing the given coordinates.

Structs

Coordinate

A lightweight struct used to store coordinates on the 2-dimensional Cartesian plane.

ExtremePoint

A container for the coordinates of the minimum and maximum Points of a Geometry.

Extremes

A container for indices of the minimum and maximum Points of a Geometry.

GeometryCollection

A collection of Geometry types.

Line

A line segment made up of exactly two Points.

LineString

An ordered collection of two or more Coordinates, representing a path between locations.

MultiLineString

A collection of LineStrings.

MultiPoint

A collection of Points.

MultiPolygon

A collection of Polygons.

Point

A single point in 2D space.

Polygon

A bounded two-dimensional area.

Rect

A bounded 2D quadrilateral whose area is defined by minimum and maximum Coordinates.

Triangle

A bounded 2D area whose three vertices are defined by Coordinates.

Enums

Closest

The result of trying to find the closest spot on an object to a point.

Geometry

An enum representing any possible geometry type.

Statics

COORD_PRECISION

Traits

CoordinateType

The type of an x or y value of a point/coordinate.

ToGeo