PostGIS

以下是使用已安装 PostGIS 扩展的 mdillon/postgis docker 容器进行的测试设置。

这将自动下载并运行容器,让操作变得更轻松。请注意使用 Postgis 特定驱动程序和 URL。

ebean:
  geometrySRID: 4674  # If we don't want the default geometrySRID of 4326

  test:
    shutdown: none # stop | remove | none
    platform: postgis
    ddlMode: dropCreate # none | dropCreate | migrations | create
    dbName: my_gisapp

上述 postgis 平台等效于以下使用

用户名{databaseName}
密码test
端口7432
URLjdbc:postgresql_lwgis://localhost:{port}/{databaseName}
驱动程序org.postgis.DriverWrapperLW
镜像mdillon/postgis:{version}
ebean:
  geometrySRID: 4674

  test:
    shutdown: none # stop | remove | none
    platform: postgres
    ddlMode: dropCreate # none | dropCreate | migrations | create
    dbName: my_gisapp
    postgres:
      containerName: postgis
      image: mdillon/postgis
      extensions: postgis
      url: jdbc:postgresql_lwgis://127.0.0.1:7432/my_gisapp
      driver: org.postgis.DriverWrapperLW