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 in PostGIS.
This class provides column types and extension methods to work with Geometry columns in PostGIS.
Sample Usage:
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)
}
based on com.github.tminglei.slickpg.PgPostGISSupport
This class provides column types and extension methods to work with Geometry columns associated with an SRID in PostGIS.
Sample Usage:
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) }based on com.github.tminglei.slickpg.PgPostGISSupport