Crate geo_types[−][src]
The geotypes
library provides geospatial primitive types for the GeoRust 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 reexports these types and provides geospatial algorithms.
Types
Coordinate
: A twodimensional coordinate. All geometry types are composed ofCoordinate
s, thoughCoordinate
itself is not aGeometry
type.Point
: A single point represented by oneCoordinate
MultiPoint
: A collection ofPoint
sLine
: A line segment represented by twoCoordinate
sLineString
: A series of contiguous line segments represented by two or moreCoordinate
sMultiLineString
: A collection ofLineString
sPolygon
: A bounded area represented by oneLineString
exterior ring, and zero or moreLineString
interior ringsMultiPolygon
: A collection ofPolygon
sRect
: An axisaligned bounded rectangle represented by minimum and maximumCoordinate
sTriangle
: A bounded area represented by threeCoordinate
verticesGeometryCollection
: A collection ofGeometry
sGeometry
: An enumeration of all geometry types, excludingCoordinate
Semantics
The geospatial types provided here aim to adhere to the OpenGIS Simple feature access standards. Thus, the types here are interoperable with other implementations of the standards: JTS, GEOS, etc.
Features
The following optional Cargo features are available:
approx
: Allows geometry types to be checked for approximate equality with approxarbitrary
: Allows geometry types to be created from unstructured input with arbitraryserde
: Allows geometry types to be serialized and deserialized with Serdeuserstar
: Allows geometry types to be inserted into rstar R*trees
Macros
line_string  Creates a 
point  Creates a 
polygon  Creates a 
Structs
Coordinate  A lightweight struct used to store coordinates on the 2dimensional Cartesian plane. 
GeometryCollection  A collection of 
InvalidRectCoordinatesError  Deprecated 
Line  A line segment made up of exactly two

LineString  An ordered collection of two or more 
MultiLineString  A collection of

MultiPoint  A collection of 
MultiPolygon  A collection of 
Point  A single point in 2D space. 
PointsIter  A 
Polygon  A bounded twodimensional area. 
Rect  An axisaligned bounded 2D rectangle whose area is
defined by minimum and maximum 
Triangle  A bounded 2D area whose three vertices are defined by

Enums
Error  
Geometry  An enum representing any possible geometry type. 
Traits
CoordFloat  
CoordNum  The type of an x or y value of a point/coordinate. 
CoordinateType  Deprecated 