[][src]Crate geo_types

The geo-types library provides geospatial primitive types and traits to the GeoRust crate ecosystem.

In most cases, you will only need to use this crate if you're a crate author and want compatibility with other GeoRust crates. Otherwise, the geo crate re-exports these types and provides geospatial algorithms, while the geojson crate allows serialising and de-serialising geo-types primitives to GeoJSON.

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.

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.

PointsIter

A Point iterator returned by the points_iter method

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

Geometry

An enum representing any possible geometry type.

Traits

CoordinateType

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