o

works.worace.geojson

CodecImplicits

object CodecImplicits

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]}""")
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CodecImplicits
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val MultiPointDecoder: Decoder[MultiPoint]
  5. implicit val MultiPointEncoder: Encoder[MultiPoint]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. implicit val featureCollectionDecoder: Decoder[FeatureCollection]
  11. implicit val featureCollectionEncoder: Encoder[FeatureCollection]
  12. implicit val featureDecoder: Decoder[Feature]
  13. implicit val featureEncoder: Encoder[Feature]
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. implicit val geojsonDecoder: Decoder[GeoJson]
  16. implicit val geojsonEncoder: Encoder[GeoJson]
  17. implicit val geometryCollectionDecoder: Decoder[GeometryCollection]
  18. implicit val geometryCollectionEncoder: Encoder[GeometryCollection]
  19. implicit val geometryDecoder: Decoder[Geometry]
  20. implicit val geometryEncoder: Encoder[Geometry]
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. implicit val lineStringDecoder: Decoder[LineString]
  25. implicit val lineStringEncoder: Encoder[LineString]
  26. implicit val multiLineStringDecoder: Decoder[MultiLineString]
  27. implicit val multiLineStringEncoder: Encoder[MultiLineString]
  28. implicit val multiPolygonDecoder: Decoder[MultiPolygon]
  29. implicit val multiPolygonEncoder: Encoder[MultiPolygon]
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. implicit val pointDecoder: Decoder[Point]
  34. implicit val pointEncoder: Encoder[Point]
  35. implicit val polygonDecoder: Decoder[Polygon]
  36. implicit val polygonEncoder: Encoder[Polygon]
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped