Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This project uses spring boot 2, spring data, postgis, hibernate spatial and flyway to manage DDL changes. This example includes some sample data to grab amazon distribution centers close to a certain lat, long. This application uses several useful distance queries.

Notifications You must be signed in to change notification settings

dandoran/spring-data-postgis-geospatial

Repository files navigation

Spring data with Postgis integration

This project uses spring boot 2, spring data, and flyway to manage DDL changes. This example includes some sample data to grab amazon distribution centers close to a certain lat, long. This application uses several useful distance queries.

Angular frontend with fulfillment centers mapped Alt text

Important Spring property: spring.jpa.database-platform: org.hibernate.spatial.dialect.postgis.PostgisDialect

Database DDL location: src/main/resources/db.migration/

Useful Spring data repos: com.geospatial.geospatial.repo

Getting started

Start postgis:

docker-compose up -d

Run maven clean install:

mvn clean install

Start app:

java -jar geospatial-0.0.1-SNAPSHOT.jar

About

This project uses spring boot 2, spring data, postgis, hibernate spatial and flyway to manage DDL changes. This example includes some sample data to grab amazon distribution centers close to a certain lat, long. This application uses several useful distance queries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /