Questions tagged [hibernate-spatial]

Hibernate Spatial is a generic extension to Hibernate for handling geographic data. Hibernate Spatial is open source and licensed, like Hibernate, under the LGPL license. Hibernate Spatial allows you to deal with geographic data in a standardized way. It abstracts away from the specific way your database supports geographic data, and provides a standardized, cross-database interface to geographic data storage and query functions.

161 questions
2
votes
0 answers

Spring Data Geo Spatial Query with Mysql

My use case is the following : When user is at a certain location , i need to find all Touchpoints within a certain radius of his location. My Touchpoint Class looks like this : public class TouchPoint{ private String pointName; private…
2
votes
2 answers

Couldn't get at the OracleSpatial Connection object from the PreparedStatement

i am using hibernate spatial 4.3.2 along with hibernate 4.3.11 and my db is oracle 12c. I use hikariCP for connection pool. when I use hikacriCP I get an error that seems that cause is hibernate spatial can not access to the wrapped connection of…
2
votes
2 answers

Hibernate spatial jpa query not working

I have written spatial query to find nearest point from a location. But hibernate get exception. My Application with Spring boot 1.5.7 @Repository @Transactional(readOnly = true) public interface PlaceRepository extends JpaRepository
flopcoder
  • 1,195
  • 12
  • 25
2
votes
1 answer

Hibernate-spatial jpa with myql and Spring boot 1.5.7 not working

I want to use hibernate spatial with mysql and spring boot. I tried but failing. application.properties file given…
flopcoder
  • 1,195
  • 12
  • 25
2
votes
1 answer

Hibernate Spatial - Invalid endian flag value encountered

I have a Spring Boot project with Hibernate and Hibernate Spatial. One of the objects of the application was to find was to find all matches in area around current user. @Entity(name = "match") @Table(name = "MATCH") public class Match extends…
MrAolen
  • 21
  • 3
2
votes
2 answers

Is the Maven repository for hibernatespatial version 4 down?

I'm working on a project using hibernate and hibernate spatial version 4.0. In my pom files I have setup the repository like this: Hibernate spatial repo
Angusson
  • 21
  • 2
2
votes
1 answer

Mapping Error on Hibernate Spatial 5.0.4.Final and PostgreSQL geometry column

I want to bind a PostgreSQL column ("b_shp") of type "geometry". In particular the following query give "POLYGON" result: SELECT GeometryType(b_shp) ==> "POLYGON" I can't find the right annotation for the @Column "b_shp" in my @Entity. I've…
S. De Finis
  • 21
  • 1
  • 3
2
votes
0 answers

Is there any Java ORM framework other than hibernate-spatial to deal with PostGIS

I have been using hibernate-spatial to interact with postgis tables having Geography as a column. All content have been saved successfully using the hibernate-spatial but when we try to load the data from the postgis table then following got…
Amit Tamrakar
  • 512
  • 3
  • 13
2
votes
0 answers

Play Framework Unable to build entity manager factory when Working with PostGIS

I'm trying to work with PostGIS with Hibernate and JPA in play! framework but I'm stuck with this exception here is the error when ever work with the variable point in the Class Place (it was working fine before adding the class place): I'm Using…
Karim
  • 1,004
  • 8
  • 18
2
votes
1 answer

Hibernate search spatial embedded index query

I have two classes. User and Address. User: @Indexed @Entity @Table(name = "USERS") public class USER { @DocumentId @Id @Column(name = "ID") @GeneratedValue(strategy = GenerationType.TABLE,…
rishi
  • 2,564
  • 6
  • 25
  • 47
2
votes
1 answer

How to use INTERSECTS operation with Querydsl Spatial

I'm trying to use INTERSECTS operation with Querydsl: PolygonPath polygonpath = new PolygonPath(entityPath, "location"); Geometry geometry = Wkt.fromWkt("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))"); BooleanExpression…
jcgarcia
  • 3,762
  • 4
  • 18
  • 32
2
votes
0 answers

How to query postgis database using jpa?

I want to mix jpa with spatial queries. I'm using hibernate-spatial 1.1.1 an hib 3.6.x. There is already a solution here http://www.hibernatespatial.org/pipermail/hibernatespatial-users/2008-May/000200.html but i do not know if it is still valid,…
osh
  • 1,191
  • 4
  • 13
  • 21
1
vote
0 answers

Micronaut with Hibernate Spatial types deserialization

The essence of the question is to serialize and deserialize the Geometry class from Hibernate Spatial in the Micronaut framework. This is how the field is represented in my entity. import org.locationtech.jts.geom.Point; ... @Column(columnDefinition…
unvise
  • 11
  • 2
1
vote
0 answers

java.lang.IllegalArgumentException: Can't convert object of type org.postgresql.util.PGobject randomly

I am facing this problem randomly: I have a table with latitude,longitude and location type columns where location column is having geometry type and the data is entered correctly and also I am able to get data back sometime but sometime I get a…
Dhara Patel
  • 396
  • 3
  • 9
1
vote
1 answer

Hibernate Spatial: Cannot construct instance of `org.locationtech.jts.geom.Geometry`

I'm developing a routes app, to create, search or make routes in a city. This app has two different parts: a rest Service in Java, with a postgresql database and postgis, and a client app. The route that I'm creating has (among others) two fields…
JoseAG
  • 11
  • 3