implicit class RichString extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RichString
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RichString(s: String)
Value Members
-
def
extractFeatures[F <: Feature[_, _]]()(implicit arg0: Decoder[F]): Seq[F]
Extracts features from json string if type matches type F
Extracts features from json string if type matches type F
- F
type of feature desired to extract
- returns
Seq[F] containing features
-
def
extractGeometries[G <: Geometry]()(implicit arg0: Decoder[G], arg1: scala.reflect.api.JavaUniverse.TypeTag[G], arg2: ClassTag[G]): Seq[G]
Extracts geometries from json string if type matches type G
Extracts geometries from json string if type matches type G
- G
type of geometry desired to extract
- returns
Seq[G] containing geometries
-
def
parseGeoJson[T]()(implicit arg0: Decoder[T]): T
Parses geojson if type matches type T, throws if not
Parses geojson if type matches type T, throws if not
- T
type of geometry or feature expected in the json string to be parsed
- returns
The geometry or feature of type T
- def parseJson: Json
- val s: String