Struct kml::ExtraShapes [−][src]
pub struct ExtraShapes {
pub shapes: Vec<ExtraShape>,
}
Expand description
Some dataset imported from KML, CSV, or something else. If the dataset is large, converting to this format and serializing is faster than parsing the original again.
Fields
shapes: Vec<ExtraShape>
Implementations
Parses a .csv file and returns ExtraShapes. Each record must EITHER have a column called ‘Longitude’ and ‘Latitude’, representing a single point, OR a column called ‘geometry’ with a WKT-style linestring. All other columns will just be attributes. Objects that’re partly out-of-bounds will be excluded.
pub fn load_geojson_no_clipping(
path: String,
gps_bounds: &GPSBounds,
require_in_bounds: bool
) -> Result<ExtraShapes>
pub fn load_geojson_no_clipping(
path: String,
gps_bounds: &GPSBounds,
require_in_bounds: bool
) -> Result<ExtraShapes>
Parses a .geojson file and returns ExtraShapes
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more