Packages

case class Projected[+G <: vector.Geometry](geom: G, srid: Int) extends Product with Serializable

A case class which represents Geometry with an SRID.

Example:
  1. import geotrellis.proj4._
    
    val projected = Point(1,1).withSRID(4326)  // LatLng, trust me
    val projected = projected.reproject(LatLng, WebMercator)(3857)
Note

It is up to the application developer to ensure that the SRID parameter stays semantically consistent.

,

This exists because PostGIS requires an SRID to be stored with the Geometry and the decision has been made not to encapsulate SRID semantics in the Geometry hierarchy for the moment.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Projected
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Projected(geom: G, srid: Int)

Value Members

  1. val geom: G
  2. def reproject(src: CRS, dest: CRS)(destSRID: Int): Projected[G]
  3. val srid: Int
  4. def withSRID(newSRID: Int): Projected[G]