Packages

class JsonFeatureCollection extends AnyRef

Accumulates GeoJson from Feature class instances.

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonFeatureCollection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonFeatureCollection(features: List[Json] = Nil)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++=[G <: Geometry, D](features: Seq[Feature[G, D]])(implicit arg0: Encoder[D]): Unit

    Add a Seq of JsValue to the buffer, pending an ultimate call of toJson.

  4. def +=[G <: Geometry, D](feature: Feature[G, D])(implicit arg0: Encoder[D]): ListBuffer[Json]

    Add a JsValue to the buffer, pending an ultimate call of toJson.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def add[G <: Geometry, D](feature: Feature[G, D])(implicit arg0: Encoder[D]): ListBuffer[Json]

    Add a JsValue to the buffer, pending an ultimate call of toJson.

  7. def addAll[G <: Geometry, D](features: Seq[Feature[G, D]])(implicit arg0: Encoder[D]): Unit

    Add a Seq of JsValue to the buffer, pending an ultimate call of toJson.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asJson: Json

    Carry out serialization on all buffered JsValue objects.

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def getAll[F](implicit arg0: Decoder[F]): Vector[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 of Feature objects (type F) that were successfully parsed

  15. def getAllFeatures[F <: Feature[_, _]](implicit arg0: Decoder[F]): Vector[F]
  16. def getAllGeometries(): Vector[Geometry]
  17. def getAllLineStringFeatures[D]()(implicit arg0: Decoder[D]): Vector[LineStringFeature[D]]
  18. def getAllLineStrings(): Vector[LineString]
  19. def getAllMultiLineStringFeatures[D]()(implicit arg0: Decoder[D]): Vector[MultiLineStringFeature[D]]
  20. def getAllMultiLineStrings(): Vector[MultiLineString]
  21. def getAllMultiPointFeatures[D]()(implicit arg0: Decoder[D]): Vector[MultiPointFeature[D]]
  22. def getAllMultiPoints(): Vector[MultiPoint]
  23. def getAllMultiPolygonFeatures[D]()(implicit arg0: Decoder[D]): Vector[MultiPolygonFeature[D]]
  24. def getAllMultiPolygons(): Vector[MultiPolygon]
  25. def getAllPointFeatures[D]()(implicit arg0: Decoder[D]): Vector[PointFeature[D]]
  26. def getAllPoints(): Vector[Point]
  27. def getAllPolygonFeatures[D]()(implicit arg0: Decoder[D]): Vector[PolygonFeature[D]]
  28. def getAllPolygons(): Vector[Polygon]
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped