package geojson

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package jts

Type Members

  1. case class BBox(min: Coordinate, max: Coordinate) extends Product with Serializable
  2. trait Codable[T <: GeoJson] extends AnyRef

    Interface for encoding and decoding GeoJson values.

    Interface for encoding and decoding GeoJson values.

    Codable objects provide convenience methods for parsing a given GeoJson type (from a String), decoding (from an already-parsed Circe Json value), and encoding (to a Circe Json value).

    Additionally, Codable objects expose Circe Encoder and Decoder instances for their appropriate type, which can be used with Circe's standard syntax directly if preferred.

    Codable types include the 2 GeoJson ADTs:

    As well as their concrete subtypes:

  3. case class Coordinate(x: Double, y: Double, z: Option[Double], m: Option[Double]) extends Product with Serializable
  4. case class Feature(id: Option[Either[JsonNumber, String]], properties: Option[JsonObject], geometry: Option[Geometry], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends GeoJson with ForeignMembers[Feature] with Product with Serializable
  5. case class FeatureCollection(features: Vector[Feature], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends GeoJson with ForeignMembers[FeatureCollection] with Product with Serializable
  6. trait ForeignMembers[A <: GeoJson] extends AnyRef
  7. sealed trait GeoJson extends AnyRef

    Core GeoJSON ADT, implemented as a sealed trait.

    Core GeoJSON ADT, implemented as a sealed trait.

    Members of this type represent the individual GeoJSON types:

    Additionally, a second trait ADT, Geometry, contains the 7 geometric subtypes.

    Companion objects for GeoJson subtypes also implement the Codable trait, which provides the interface for decoding GeoJson types from strings or io.circe.Json.

  8. sealed trait Geometry extends GeoJson with ForeignMembers[Geometry]

    Sealed trait ADT containing geometric GeoJson subtypes.

    Sealed trait ADT containing geometric GeoJson subtypes.

    Members of this type represent the 7 GeoJson subtypes:

    Geometry subtypes are also GeoJson subtypes, and provide the same interfaces like Codable, GeoJson.bbox, and GeoJson.foreignMembers

  9. case class GeometryCollection(geometries: Vector[Geometry], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  10. case class LineString(coordinates: Vector[Coordinate], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  11. case class MultiLineString(coordinates: Vector[Vector[Coordinate]], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  12. case class MultiPoint(coordinates: Vector[Coordinate], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  13. case class MultiPolygon(coordinates: Vector[Vector[Vector[Coordinate]]], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  14. case class Point(coordinates: Coordinate, bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  15. case class Polygon(coordinates: Vector[Vector[Coordinate]], bbox: Option[BBox], foreignMembers: Option[JsonObject]) extends Geometry with Product with Serializable
  16. case class SimpleFeature(id: Option[String], properties: JsonObject, geometry: Geometry) extends Product with Serializable
  17. case class SimpleFeatureCollection(features: Vector[SimpleFeature]) extends Product with Serializable
  18. case class TypedFeature[T](id: Option[String], properties: T, geometry: Geometry) extends Product with Serializable

Value Members

  1. object CodecImplicits

    Wrapper object providing implicit values for GeoJson encoder/decoder instances.

    Wrapper object providing implicit values for GeoJson encoder/decoder instances.

    Use this object if you want a wildcard-import of implicit Circe encoder/decoder values in order to use GeoJson types directly with Circe's syntax.

    In many cases, these imports won't be needed, since you can go through the relevant Codable methods: Codable.parse, Codable.fromJson, or Codable.asJson.

    But if you prefer the Circe syntax style, this import should give you the implicits you need:

    scala> import io.circe.syntax._
    scala> import io.circe.parser.decode
    scala> import works.worace.geojson.CodecImplicits._
    scala> decode[Point]("""{"type":"Point","coordinates":[1.0,-1.0]}""")
    scala> decode[GeoJson]("""{"type":"Point","coordinates":[1.0,-1.0]}""")
  2. object Coordinate extends Serializable
  3. object Feature extends Codable[Feature] with Serializable
  4. object FeatureCollection extends Codable[FeatureCollection] with Serializable
  5. object GeoJson extends Codable[GeoJson]
  6. object GeometryCollection extends Codable[GeometryCollection] with Serializable
  7. object LineString extends Codable[LineString] with Serializable
  8. object MultiLineString extends Codable[MultiLineString] with Serializable
  9. object MultiPoint extends Codable[MultiPoint] with Serializable
  10. object MultiPolygon extends Codable[MultiPolygon] with Serializable
  11. object Point extends Codable[Point] with Serializable
  12. object Polygon extends Codable[Polygon] with Serializable

Ungrouped