geotrellis.vector.io.json

JsonFeatureCollectionMap

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonFeatureCollectionMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonFeatureCollectionMap(features: List[JsValue] = immutable.this.Nil)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++=[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: JsonWriter[D]): Unit

    Add a Seq of (String, JsValue) to the buffer, pending an ultimate call of toJson

  5. def +=[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: JsonWriter[D]): ListBuffer[JsValue]

    Add a (String, JsValue) to the buffer, pending an ultimate call of toJson

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def add[G <: Geometry, D](featureMap: (String, Feature[G, D]))(implicit arg0: JsonWriter[D]): ListBuffer[JsValue]

    Add a (String, JsValue) to the buffer, pending an ultimate call of toJson

  9. def addAll[G <: Geometry, D](featureMaps: Seq[(String, Feature[G, D])])(implicit arg0: JsonWriter[D]): Unit

    Add a Seq of (String, JsValue) to the buffer, pending an ultimate call of toJson

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def getAll[F](implicit arg0: JsonReader[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

  16. def getAllFeatures[F <: Feature[_, _]](implicit arg0: JsonReader[F]): Map[String, F]

  17. def getAllLineFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, LineFeature[D]]

  18. def getAllLines(): Map[String, Line]

  19. def getAllMultiLineFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiLineFeature[D]]

  20. def getAllMultiLines(): Map[String, MultiLine]

  21. def getAllMultiPointFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiPointFeature[D]]

  22. def getAllMultiPoints(): Map[String, MultiPoint]

  23. def getAllMultiPolygonFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, MultiPolygonFeature[D]]

  24. def getAllMultiPolygons(): Map[String, MultiPolygon]

  25. def getAllPointFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, PointFeature[D]]

  26. def getAllPoints(): Map[String, Point]

  27. def getAllPolygonFeatures[D]()(implicit arg0: JsonReader[D]): Map[String, PolygonFeature[D]]

  28. def getAllPolygons(): Map[String, Polygon]

  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toJson: JsValue

  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped