case class Feature[+G <: vector.Geometry, +D](geom: G, data: D) extends Product with Serializable
A case class which represents a geometry with some metadata
- G
A subtype of Geometry
- D
The type of any provided metadata
- geom
An instance of G
- data
An instance of D
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Feature
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Feature(geom: G, data: D)
- geom
An instance of G
- data
An instance of D
Value Members
- val data: D
- val geom: G
-
def
mapData[T](f: (D) ⇒ T): Feature[G, T]
Method for manipulating this class' data
Method for manipulating this class' data
- T
The type of the data expected
- f
A function from D to T
-
def
mapGeom[T <: Geometry](f: (G) ⇒ T): Feature[T, D]
Method for manipulating this class' geom
Method for manipulating this class' geom
- T
A subtype of Geometry
- f
A function from G to T