package geojson
- Alphabetic
- Public
- All
Type Members
-
sealed
trait
Crs extends AnyRef
A GeoJSON coordinate reference system (CRS).
-
trait
CrsFormat[C] extends AnyRef
A CRS format
-
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
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.
-
case class
FeatureCollection[C](features: Seq[Feature[C]], bbox: Option[(C, C)] = None) extends GeoJson[C] with Product with Serializable
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.
-
sealed
trait
GeoJson[C] extends AnyRef
A GeoJSON object.
A GeoJSON object.
- C
The object used to model the CRS that this GeoJSON object uses.
-
sealed
trait
Geometry[C] extends GeoJson[C]
A GeoJSON Geometry object.
A GeoJSON Geometry object.
- C
The object used to model the CRS that this GeoJSON object uses.
-
case class
GeometryCollection[C](geometries: Seq[Geometry[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
LatLng(lat: Double, lng: Double) extends Product with Serializable
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.
-
case class
LineString[C](coordinates: Seq[C], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
LinkedCrs(href: String, type: Option[String]) extends Crs with Product with Serializable
A GeoJSON linked CRS.
A GeoJSON linked CRS.
- href
The href for the CRS.
- type
The type of the link, if any.
-
case class
LngLat(lng: Double, lat: Double) extends Product with Serializable
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
-
case class
MultiLineString[C](coordinates: Seq[Seq[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
MultiPoint[C](coordinates: Seq[C], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
MultiPolygon[C](coordinates: Seq[Seq[Seq[C]]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
NamedCrs(name: String) extends Crs with Product with Serializable
A GeoJSON named CRS.
A GeoJSON named CRS.
- name
The name of the CRS.
-
case class
Point[C](coordinates: C, bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
-
case class
Polygon[C](coordinates: Seq[Seq[C]], bbox: Option[(C, C)] = None) extends Geometry[C] with Product with Serializable
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.
- case class SphericalMercator(x: Double, y: Double) extends Product with Serializable
Value Members
- object Crs
- object Feature extends Serializable
- object FeatureCollection extends Serializable
- object GeoJson
- object Geometry
- object GeometryCollection extends Serializable
- object LatLng extends Serializable
- object LineString extends Serializable
- object LinkedCrs extends Serializable
- object LngLat extends Serializable
- object LngLatCrs extends CrsFormat[LngLat]
- object MultiLineString extends Serializable
- object MultiPoint extends Serializable
- object MultiPolygon extends Serializable
- object NamedCrs extends Serializable
- object Point extends Serializable
- object Polygon extends Serializable
-
object
SphericalMercator extends Serializable
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
- object SphericalMercatorCrs extends CrsFormat[SphericalMercator]
-
object
Wgs84Format extends CrsFormat[LatLng]
The WGS84 CRS format.
The WGS84 CRS format. Equals to EPSG:4326 CRS format.