package json
- Alphabetic
- Public
- All
Type Members
-
trait
CrsFormats extends AnyRef
A trait specifying CRS/JSON conversion
-
trait
FeatureFormats extends AnyRef
A trait for providing the Circe json encoders and decoders necessary to serialize Feature instances
-
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.
-
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
- trait Implicits extends GeoJsonSupport
-
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
-
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
-
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
-
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:
-
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.
- case class Style(strokeColor: Option[String], strokeWidth: Option[String], strokeOpacity: Option[Double], fillColor: Option[String], fillOpacity: Option[Double]) extends Product with Serializable
-
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
- object CrsFormats extends CrsFormats
- object FeatureFormats extends FeatureFormats
-
object
GeoJson
An object whose methods parse string representations as GeoJson
- object GeoJsonSupport extends GeoJsonSupport
- object GeometryFormats extends GeometryFormats
- object Implicits extends Implicits
- object JsonFeatureCollection
- object JsonFeatureCollectionMap
- object Style extends Serializable