Package

geotrellis.vector.io

json

Permalink

package json

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CRS extends AnyRef

    Permalink

    Abstract trait for various implementations of Coordinate Reference System values

  2. trait CrsFormats extends AnyRef

    Permalink

    A trait specifying CRS/JSON conversion

  3. trait FeatureFormats extends AnyRef

    Permalink

    A trait for providing the Spray.json formats necessary to serialize Feature instances

  4. trait GeoJsonSupport extends GeometryFormats with FeatureFormats with CrsFormats

    Permalink

    A trait providing automatic to and from JSON marshalling/unmarshalling using spray-json implicits.

    A trait providing automatic to and from JSON marshalling/unmarshalling using spray-json implicits.

    Note

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

  5. trait GeometryFormats extends AnyRef

    Permalink

    A trait that implements Spray JsonFormats for Geometry objects.

    A trait that implements Spray JsonFormats for Geometry objects.

    Note

    Import or extend this object directly to use them with default spray-json (un)marshaller

  6. trait Implicits extends GeoJsonSupport

    Permalink
  7. class JsonFeatureCollection extends AnyRef

    Permalink

    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

    Permalink

    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: String, crsType: String = "") extends CRS with Product with Serializable

    Permalink

    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.

    crsType

    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 CRS with Product with Serializable

    Permalink

    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.

    Note

    OGC CRS URNs such as "urn:ogc:def:crs:OGC:1.3:CRS84" shall be preferred over legacy identifiers such as "EPSG:4326"

  11. case class Style(strokeColor: Option[String], strokeWidth: Option[String], strokeOpacity: Option[Double], fillColor: Option[String], fillOpacity: Option[Double]) extends Product with Serializable

    Permalink
  12. case class WithCrs[T](t: T, crs: CRS) extends Product with Serializable

    Permalink

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

Value Members

  1. object BlankCRS extends CRS

    Permalink

    A blank CRS field (will not be associated with GeoJSON object)

  2. object CrsFormats extends CrsFormats

    Permalink
  3. object FeatureFormats extends FeatureFormats

    Permalink
  4. object GeoJson

    Permalink

    An object whose methods parse string representations as GeoJson

  5. object GeoJsonSupport extends GeoJsonSupport

    Permalink
  6. object GeometryFormats extends GeometryFormats

    Permalink
  7. object Implicits extends Implicits

    Permalink
  8. object JsonFeatureCollection

    Permalink
  9. object JsonFeatureCollectionMap

    Permalink
  10. object Style extends Serializable

    Permalink

Ungrouped