[−][src]Crate geo_types
The geo-types 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 re-exports these types and provides geospatial algorithms.
Types
Coordinate: A two-dimensional coordinate. All geometry types are composed ofCoordinates, thoughCoordinateitself is not aGeometrytype.Point: A single point represented by oneCoordinateMultiPoint: A collection ofPointsLine: A line segment represented by twoCoordinatesLineString: A series of contiguous line segments represented by two or moreCoordinatesMultiLineString: A collection ofLineStringsPolygon: A bounded area represented by oneLineStringexterior ring, and zero or moreLineStringinterior ringsMultiPolygon: A collection ofPolygonsRect: An axis-aligned bounded rectangle represented by minimum and maximumCoordinatesTriangle: A bounded area represented by threeCoordinateverticesGeometryCollection: A collection ofGeometrysGeometry: 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 inter-operable with other implementations of the standards: JTS, GEOS, etc.
Macros
| line_string | Creates a |
| point | Creates a |
| polygon | Creates a |
Structs
| Coordinate | A lightweight struct used to store coordinates on the 2-dimensional Cartesian plane. |
| GeometryCollection | A collection of |
| InvalidRectCoordinatesError | |
| 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 two-dimensional area. |
| Rect | An axis-aligned bounded 2D rectangle whose area is
defined by minimum and maximum |
| Triangle | A bounded 2D area whose three vertices are defined by
|
Enums
| 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 |