case classProjected[+G <: Geometry](geom: G, srid: Int) extends Product with Serializable
This tuples Geometry with an SRID. It is up to the application developer to
ensure that the SRID parameter stays semantically consistent.
Concretely this class 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.
Sample Usage:
import geotrellis.proj4._
val projected = Point(1,1).withSRID(4326) // LatLng, trust me
val projected = projected.reproject(LatLng, WebMercator)(3857)
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
This tuples Geometry with an SRID. It is up to the application developer to ensure that the SRID parameter stays semantically consistent.
Concretely this class 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.
Sample Usage:
import geotrellis.proj4._ val projected = Point(1,1).withSRID(4326) // LatLng, trust me val projected = projected.reproject(LatLng, WebMercator)(3857)