Packages

class KmlConverter extends AnyRef

converts Kml objects into GeoJson objects

Kml object -> GeoJson object Kml Folder -> GeoJson FeatureCollection Kml Document -> GeoJson FeatureCollection Kml MultiGeometry -> GeoJson GeometryCollection Kml Placemark -> GeoJson Feature Kml Point -> GeoJson Point Kml LineString -> GeoJson LineString Kml LinearRing -> GeoJson LineString Kml Polygon -> GeoJson Polygon Kml Feature (Placemark, Document, Folder) -> GeoJson object equivalent Kml sequence of Feature -> GeoJson FeatureCollection Kml region latLonAltBox -> GeoJson bbox

ref: https://github.com/workingDog/scalakml ref: https://github.com/jroper/play-geojson

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KmlConverter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new KmlConverter()

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. implicit def coordToLalLngAlt(coord: Coordinate): LatLngAlt

    convert a KML Coordinate to a LatLngAlt

    convert a KML Coordinate to a LatLngAlt

    coord

    the input KML coordinate

    returns

    a LatLngAlt object

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toGeoJson(multiGeom: MultiGeometry): Option[GeoJson[LatLngAlt]]

    convert a Kml MultiGeometry into a GeoJson GeometryCollection object

    convert a Kml MultiGeometry into a GeoJson GeometryCollection object

    multiGeom

    the Kml MultiGeometry input

    returns

    a GeoJson GeometryCollection object

  17. def toGeoJson(poly: Polygon): Option[GeoJson[LatLngAlt]]

    convert a Kml Polygon into a GeoJson Polygon object

    convert a Kml Polygon into a GeoJson Polygon object

    poly

    the Kml Polygon input

    returns

    a GeoJson Polygon object

  18. def toGeoJson(lr: LinearRing): Option[GeoJson[LatLngAlt]]

    convert a Kml LinearRing into a GeoJson LineString object

    convert a Kml LinearRing into a GeoJson LineString object

    lr

    the Kml LinearRing input

    returns

    a GeoJson LineString object

  19. def toGeoJson(ls: LineString): Option[GeoJson[LatLngAlt]]

    convert a Kml LineString into a GeoJson LineString object

    convert a Kml LineString into a GeoJson LineString object

    ls

    the Kml LineString input

    returns

    a GeoJson LineString object

  20. def toGeoJson(p: Point): Option[GeoJson[LatLngAlt]]

    convert a Kml Point into a GeoJson Point object

    convert a Kml Point into a GeoJson Point object

    p

    the Kml Point input

    returns

    a GeoJson Point object

  21. def toGeoJson(placemark: Placemark): Option[GeoJson[LatLngAlt]]

    convert a Kml placemark into a GeoJson Feature

    convert a Kml placemark into a GeoJson Feature

    placemark

    the Kml placemark object

    returns

    a GeoJson Feature representation of the Kml placemark

  22. def toGeoJson(doc: Document): Option[GeoJson[LatLngAlt]]

    convert a Kml Document into a GeoJson FeatureCollection

    convert a Kml Document into a GeoJson FeatureCollection

    doc

    the Kml Document object

    returns

    a GeoJson FeatureCollection representation of the Kml Document

  23. def toGeoJson(folder: Folder): Option[GeoJson[LatLngAlt]]

    convert a Kml Folder to a GeoJson FeatureCollection object

    convert a Kml Folder to a GeoJson FeatureCollection object

    folder

    the Kml input Folder object

    returns

    a GeoJson FeatureCollection representation of the Kml Folder

  24. def toGeoJson(feature: Feature): Option[GeoJson[LatLngAlt]]

    convert a Kml Feature into an equivalent GeoJson object

    convert a Kml Feature into an equivalent GeoJson object

    feature

    the input Kml feature

    returns

    a GeoJson object representation of the Kml Feature

  25. def toGeoJson(kml: Kml): Option[List[GeoJson[LatLngAlt]]]

    convert a Kml object into a list of GeoJson objects

    convert a Kml object into a list of GeoJson objects

    returns

    a list GeoJson objects

  26. def toGeoJson(kmlOpt: Option[Kml]): Option[List[GeoJson[LatLngAlt]]]

    convert a Kml object into a list of GeoJson objects

    convert a Kml object into a list of GeoJson objects

    returns

    a list GeoJson objects

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped