Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for SQL/MM spatial types and functions should be added.
Initally ST_Point types and related functions will be supported.
Related supporting libraries
SQL/MM and SFS support
Different distance types
ST_Distance(geo1, geo2) — Returns the 2-dimensional cartesian minimum distance between two geometries in projected units.
ST_Distance_Sphere(geo1, geo2) — Returns linear distance in meters between two lon/lat points. Uses a spherical earth and radius of 6370986 meters. Faster than ST_Distance_Spheroid, but less accurate. Only implemented for points.
ST_Distance_Spheroid(geo1, geo2, spheroid) — Returns linear distance between two lon/lat points given a particular spheroid. Currently only implemented for points.
First of all, thanks for your great work! I'm trying to use this spatial extension with JPA but not getting the spatial methods on geometry fields. Is this extension already supported by
<plugin> <groupId>com.mysema.maven</groupId> <artifactId>apt-maven-plugin</artifactId> <version>1.0.9</version> <executions> <execution> <goals> <goal>process</goal> </goals> <configuration> <outputDirectory>target/generated-sources/java</outputDirectory> <processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor> <spatial>true</spatial> </configuration> </execution> </executions> </plugin>
@timowest sorry for taking long to reply. Here is a list of functions that we are currently using in PostGIS that I couldn't find in Querydsl:
There are also some geometry construction functions:
PostGIS also supports a type called Geography (http://postgis.refractions.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography). I'm not sure if you are planning to support this type. Thanks for your time and great work!