geotrellis.slick
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) }
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 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