Package

play.extras

geojson

Permalink

package geojson

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Crs extends AnyRef

    Permalink

    A GeoJSON coordinate reference system (CRS).

  2. trait CrsFormat[C] extends AnyRef

    Permalink

    A CRS format

  3. case class Feature[C](geometry: Geometry[C], properties: Option[JsObject] = None, id: Option[JsValue] = None, bbox: Option[(C, C)] = None) extends GeoJson[C] with Product with Serializable

    Permalink

    A GeoJSON Feature object.

    A GeoJSON Feature object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    geometry

    The geometry for the feature.

    properties

    The properties for the feature, if any.

    id

    The id of the feature, if any.

    bbox

    The bounding box for the feature, if any.

  4. case class FeatureCollection[C](features: Seq[Feature[C]], bbox: Option[(C, C)] = None) extends GeoJson[C] with Product with Serializable

    Permalink

    A GeoJSON FeatureCollection object.

    A GeoJSON FeatureCollection object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    features

    The sequence of features.

    bbox

    The bounding box for the sequence of features, if any.

  5. sealed trait GeoJson[C] extends AnyRef

    Permalink

    A GeoJSON object.

    A GeoJSON object.

    C

    The object used to model the CRS that this GeoJSON object uses.

  6. sealed trait Geometry[C] extends GeoJson[C]

    Permalink

    A GeoJSON Geometry object.

    A GeoJSON Geometry object.

    C

    The object used to model the CRS that this GeoJSON object uses.

  7. case class GeometryCollection[C](geometries: Seq[Geometry[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON GeometryCollection object.

    A GeoJSON GeometryCollection object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    geometries

    The sequence of geometries.

    bbox

    The bounding box for the geometries, if any.

  8. case class LatLng(lat: Double, lng: Double) extends Product with Serializable

    Permalink

    A latitude longitude CRS, for use with WGS84 ( == EPSG:4326).

    A latitude longitude CRS, for use with WGS84 ( == EPSG:4326).

    lat

    The latitude.

    lng

    The longitude.

  9. case class LineString[C](coordinates: Seq[C], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON LineString object.

    A GeoJSON LineString object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    The sequence of coordinates for the line.

    bbox

    The bounding box for the line, if any.

  10. case class LinkedCrs(href: String, type: Option[String]) extends Crs with Product with Serializable

    Permalink

    A GeoJSON linked CRS.

    A GeoJSON linked CRS.

    href

    The href for the CRS.

    type

    The type of the link, if any.

  11. case class LngLat(lng: Double, lat: Double) extends Product with Serializable

    Permalink

    LngLat is like LatLng except the ordering or latitude and longitude.

    LngLat is like LatLng except the ordering or latitude and longitude.

    In GeoJSON, and therefore Elasticsearch, the correct coordinate order is longitude, latitude (X, Y) within coordinate arrays. This differs from many Geospatial APIs (e.g., Google Maps) that generally use the colloquial latitude, longitude (Y, X).

    See also

    http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-geo-shape-type.html

  12. case class MultiLineString[C](coordinates: Seq[Seq[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON MultiLineString object.

    A GeoJSON MultiLineString object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    The sequence of lines.

    bbox

    The bounding box for the lines, if any.

  13. case class MultiPoint[C](coordinates: Seq[C], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON MultiPoint object.

    A GeoJSON MultiPoint object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    The sequence coordinates for the points.

    bbox

    The bounding box for the points, if any.

  14. case class MultiPolygon[C](coordinates: Seq[Seq[Seq[C]]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON MultiPolygon object.

    A GeoJSON MultiPolygon object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    The sequence of polygons.

    bbox

    The bounding box for the polygons, if any.

  15. case class NamedCrs(name: String) extends Crs with Product with Serializable

    Permalink

    A GeoJSON named CRS.

    A GeoJSON named CRS.

    name

    The name of the CRS.

  16. case class Point[C](coordinates: C, bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON Point object.

    A GeoJSON Point object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    The coordinates of this point.

    bbox

    The bounding box of the point, if any.

  17. case class Polygon[C](coordinates: Seq[Seq[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable

    Permalink

    A GeoJSON Polygon object.

    A GeoJSON Polygon object.

    C

    The object used to model the CRS that this GeoJSON object uses.

    coordinates

    A sequence of sequences of corners in the polygon.

    bbox

    The bounding box for the polygon, if any.

  18. case class SphericalMercator(x: Double, y: Double) extends Product with Serializable

    Permalink

Value Members

  1. object Crs

    Permalink
  2. object Feature extends Serializable

    Permalink
  3. object FeatureCollection extends Serializable

    Permalink
  4. object GeoJson

    Permalink
  5. object Geometry

    Permalink
  6. object GeometryCollection extends Serializable

    Permalink
  7. object LatLng extends Serializable

    Permalink
  8. object LineString extends Serializable

    Permalink
  9. object LinkedCrs extends Serializable

    Permalink
  10. object LngLat extends Serializable

    Permalink
  11. object LngLatCrs extends CrsFormat[LngLat]

    Permalink
  12. object MultiLineString extends Serializable

    Permalink
  13. object MultiPoint extends Serializable

    Permalink
  14. object MultiPolygon extends Serializable

    Permalink
  15. object NamedCrs extends Serializable

    Permalink
  16. object Point extends Serializable

    Permalink
  17. object Polygon extends Serializable

    Permalink
  18. object SphericalMercator extends Serializable

    Permalink

    Code is partially translated from the OpenLayers.js project.

    Code is partially translated from the OpenLayers.js project.

    See also

    https://github.com/openlayers/ol3/blob/master/src/ol/proj/epsg3857projection.js

  19. object SphericalMercatorCrs extends CrsFormat[SphericalMercator]

    Permalink
  20. object Wgs84Format extends CrsFormat[LatLng]

    Permalink

    The WGS84 CRS format.

    The WGS84 CRS format. Equals to EPSG:4326 CRS format.

Ungrouped