Package

geotrellis

slick

Permalink

package slick

Implicit conversion for geotrellis.vector.Geometry instances

Example:
  1. import geotrellis.vector._
    import geotrellis.slick._
    // create a web mercator projected point with the ExtendGeometry implicit class
    val projectedPoint = Point(1.0, 2.0).withSRID(3274)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. slick
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ExtendGeometry[G <: Geometry] extends AnyRef

    Permalink
  2. trait PostGisExtensions extends AnyRef

    Permalink

  3. class PostGisProjectionSupport extends PostGisExtensions

    Permalink

    This class provides column types and extension methods to work with Geometry columns associated with an SRID in PostGIS.

    This class provides column types and extension methods to work with Geometry columns associated with an SRID in PostGIS.

    Example:
    1. val PostGIS = new PostGisProjectionSupport(PostgresDriver)
      import PostGIS._
      class City(tag: Tag) extends Table[(Int,String,Projected[Point])](tag, "cities") {
        def id = column[Int]("id", O.PrimaryKey, O.AutoInc)
        def name = column[String]("name")
        def geom = column[Projected[Point]]("geom")
        def * = (id, name, geom)
      }
    See also

    com.github.tminglei.slickpg.PgPostGISSupport

  4. class PostGisSupport extends PostGisExtensions

    Permalink

    A class which provides column types and extension methods for working with Geometry columns in PostGIS.

    A class which provides column types and extension methods for working with Geometry columns in PostGIS.

    Example:
    1. val PostGIS = new PostGisSupport(PostgresDriver)
      import PostGIS._
      class City(tag: Tag) extends Table[(Int,String,Point)](tag, "cities") {
        def id = column[Int]("id", O.PrimaryKey, O.AutoInc)
        def name = column[String]("name")
        def geom = column[Point]("geom")
        def * = (id, name, geom)
      }
    See also

    com.github.tminglei.slickpg.PgPostGISSupport

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

    Permalink

    A case class which represents Geometry with an SRID.

    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

    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.

    ,

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

Value Members

  1. object PostGisProjectionSupportUtils

    Permalink
  2. object PostGisSupportUtils

    Permalink
  3. object Projected extends Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped