1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
#![crate_name = "geos"] #![crate_type = "lib"] extern crate c_vec; #[cfg(any(feature = "geo", feature = "dox"))] extern crate geo_types; #[cfg(all(feature = "json"))] extern crate geojson; extern crate geos_sys; extern crate libc; extern crate num; #[cfg(any(feature = "geo", feature = "dox"))] extern crate wkt; #[cfg(all(feature = "geo", test))] #[macro_use] extern crate doc_comment; #[cfg(all(feature = "geo", test))] doctest!("../README.md"); pub(crate) mod functions; pub use context_handle::ContextHandle; pub use coord_seq::CoordSeq; #[cfg(any(feature = "v3_6_0", feature = "dox"))] pub use enums::Precision; pub use enums::{ ByteOrder, CoordDimensions, Dimensions, GeometryTypes, Ordinate, Orientation, OutputDimension, }; #[cfg(any(feature = "v3_7_0", feature = "dox"))] pub use functions::segment_intersection; pub use functions::{orientation_index, version}; pub use geometry::{ConstGeometry, Geom, Geometry}; pub use prepared_geometry::PreparedGeometry; pub use spatial_index::{STRtree, SpatialIndex}; pub use wkb_writer::WKBWriter; pub use wkt_writer::WKTWriter; mod context_handle; mod coord_seq; mod error; #[cfg(any(feature = "geo", feature = "dox"))] pub mod from_geo; #[cfg(all(feature = "json"))] pub mod from_geojson; mod geometry; mod prepared_geometry; mod spatial_index; #[cfg(any(feature = "geo", feature = "dox"))] pub mod to_geo; #[cfg(all(feature = "json"))] pub mod to_geojson; pub use error::{Error, GResult}; #[cfg(any(feature = "geo", feature = "dox"))] mod voronoi; #[cfg(any(feature = "geo", feature = "dox"))] pub use voronoi::compute_voronoi; mod enums; mod traits; mod wkb_writer; mod wkt_writer; pub(crate) use traits::{AsRaw, AsRawMut}; pub use traits::{ContextHandling, ContextInteractions}; #[cfg(test)] mod test;