class JsonFeatureCollectionMap extends AnyRef
Accumulates GeoJson from Feature class instances and implements a Map keyed on geojson feature IDs.
During serialization: Each individual feature is parametrized on a class we need to accumulate geoJson per instance of an object in order to use implicit scope resolution in finding the correct format.
Features may be added using the .add, addAll methods, they are buffered as JsValues until .toJson is called
During deserialization: This object is instantiated with list of JsValues representing features. It may be queried using .getAll[F <: Feature[_] ] method.
It aggregates feature objects with data member still encoded in json
- Alphabetic
- By Inheritance
- JsonFeatureCollectionMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++=[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: Encoder[D]): Unit
Add a Seq of (String, JsValue) to the buffer, pending an ultimate call of toJson.
-
def
+=[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: Encoder[D]): ListBuffer[Json]
Add a (String, JsValue) to the buffer, pending an ultimate call of toJson.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: Encoder[D]): ListBuffer[Json]
Add a (String, JsValue) to the buffer, pending an ultimate call of toJson.
-
def
addAll[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: Encoder[D]): Unit
Add a Seq of (String, JsValue) to the buffer, pending an ultimate call of toJson.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJson: Json
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAll[F](implicit arg0: Decoder[F]): Map[String, F]
This method locates the correct JsonFormat for F through implicit scope and attempts to use it to parse each contained JsValue.
This method locates the correct JsonFormat for F through implicit scope and attempts to use it to parse each contained JsValue.
- F
type of Feature to return
- returns
Vector or Feature objects that were successfully parsed
- def getAllFeatures[F <: Feature[_, _]](implicit arg0: Decoder[F]): Map[String, F]
- def getAllGeometries(): Map[String, Geometry]
- def getAllLineStringFeatures[D]()(implicit arg0: Decoder[D]): Map[String, LineStringFeature[D]]
- def getAllLineStrings(): Map[String, LineString]
- def getAllMultiLineStringFeatures[D]()(implicit arg0: Decoder[D]): Map[String, MultiLineStringFeature[D]]
- def getAllMultiLineStrings(): Map[String, MultiLineString]
- def getAllMultiPointFeatures[D]()(implicit arg0: Decoder[D]): Map[String, MultiPointFeature[D]]
- def getAllMultiPoints(): Map[String, MultiPoint]
- def getAllMultiPolygonFeatures[D]()(implicit arg0: Decoder[D]): Map[String, MultiPolygonFeature[D]]
- def getAllMultiPolygons(): Map[String, MultiPolygon]
- def getAllPointFeatures[D]()(implicit arg0: Decoder[D]): Map[String, PointFeature[D]]
- def getAllPoints(): Map[String, Point]
- def getAllPolygonFeatures[D]()(implicit arg0: Decoder[D]): Map[String, PolygonFeature[D]]
- def getAllPolygons(): Map[String, Polygon]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()