class
JsonFeatureCollectionMap extends AnyRef
Instance Constructors
-
new
JsonFeatureCollectionMap(features: List[JsValue] = immutable.this.Nil)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
++=[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: JsonWriter[D]): Unit
-
def
+=[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: JsonWriter[D]): ListBuffer[JsValue]
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
add[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: JsonWriter[D]): ListBuffer[JsValue]
-
def
addAll[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: JsonWriter[D]): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
getAll[F](implicit arg0: JsonReader[F]): Map[String, F]
-
def
getAllFeatures[F <: Feature[_, _]](implicit arg0: JsonReader[F]): Map[String, F]
-
def
getAllLineFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, LineFeature[D]]
-
def
getAllLines(): Map[String, Line]
-
def
getAllMultiLineFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiLineFeature[D]]
-
def
getAllMultiLines(): Map[String, MultiLine]
-
def
getAllMultiPointFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiPointFeature[D]]
-
def
getAllMultiPoints(): Map[String, MultiPoint]
-
def
getAllMultiPolygonFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiPolygonFeature[D]]
-
def
getAllMultiPolygons(): Map[String, MultiPolygon]
-
def
getAllPointFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, PointFeature[D]]
-
def
getAllPoints(): Map[String, Point]
-
def
getAllPolygonFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, PolygonFeature[D]]
-
def
getAllPolygons(): Map[String, Polygon]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toJson: JsValue
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
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