Packages

package json

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait CrsFormats extends AnyRef

    A trait specifying CRS/JSON conversion

  2. trait FeatureFormats extends AnyRef

    A trait for providing the Circe json encoders and decoders necessary to serialize Feature instances

  3. trait GeoJsonSupport extends GeometryFormats with FeatureFormats with CrsFormats

    A trait providing automatic to and from JSON marshalling/unmarshalling using circe implicits.

    A trait providing automatic to and from JSON marshalling/unmarshalling using circe implicits.

    Note

    parameter for writing json and will attempt to attach it to Feature/Geometry json representations.

  4. trait GeometryFormats extends AnyRef

    A trait that implements Circe Encoders and Decoders for Geometry objects.

    A trait that implements Circe Encoders and Decoders for Geometry objects.

    Note

    Import or extend this object directly to use them with default circe (un)marshaller

  5. trait Implicits extends GeoJsonSupport
  6. sealed abstract class JsonCRS extends AnyRef

    Abstract trait for various implementations of Coordinate Reference System values

    Abstract trait for various implementations of Coordinate Reference System values

    Note

    Reference: http://geojson.org/geojson-spec.html#coordinate-reference-system-objects

  7. class JsonFeatureCollection extends AnyRef

    Accumulates GeoJson from Feature class instances.

    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

  8. class JsonFeatureCollectionMap extends AnyRef

    Accumulates GeoJson from Feature class instances and implements a Map keyed on geojson feature IDs.

    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

  9. case class LinkedCRS(href: URI, format: String) extends JsonCRS with Product with Serializable

    A CRS object with a link to CRS parameters on the Web.

    A CRS object with a link to CRS parameters on the Web.

    href

    must be a dereferenceable URI.

    format

    must be a string that hints at the format used to represent CRS parameters at the provided URI.

    Note

    Suggested values are: "proj4", "ogcwkt", "esriwkt", others can be used:

  10. case class NamedCRS(name: String) extends JsonCRS with Product with Serializable

    A CRS object which indicates a coordinate reference system by name.

    A CRS object which indicates a coordinate reference system by name.

    name

    must be a string identifying a coordinate reference system.

  11. case class Style(strokeColor: Option[String], strokeWidth: Option[String], strokeOpacity: Option[Double], fillColor: Option[String], fillOpacity: Option[Double]) extends Product with Serializable
  12. case class WithCrs[T](obj: T, crs: JsonCRS) extends Product with Serializable

    Used as a named tuple to extract and insert CRS field in GeoJSON objects

Value Members

  1. object CrsFormats extends CrsFormats
  2. object FeatureFormats extends FeatureFormats
  3. object GeoJson

    An object whose methods parse string representations as GeoJson

  4. object GeoJsonSupport extends GeoJsonSupport
  5. object GeometryFormats extends GeometryFormats
  6. object Implicits extends Implicits
  7. object JsonFeatureCollection
  8. object JsonFeatureCollectionMap
  9. object Style extends Serializable

Ungrouped