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.
Questions tagged [hibernate-spatial]
161 questions
0
votes
1 answer
Why Spatial Datatype can not hold more than 15 digit precision since it is using Double to hold the data?
I am trying to store Geo CoOrdinates inside mysql database Server. If my Coordinate precision value exceeds 15 digit then the value getting rounding off and get stored in the database. I believe it is happening because of this doc.
But interesting…

ArunRaj
- 1,780
- 2
- 26
- 48
0
votes
1 answer
Hibernate search (4.5) @Spatial as @IndexedEmbedded
I have an entity "Message" which has a @OneToMany relationship to a list (Set) of "Locations" - a Spatial entity (A message might have many locations --see below the classes). The index is created correctly, as seen with Luke.
When i try to create a…

foxTox
- 128
- 1
- 8
0
votes
1 answer
which function is good to check whether the given lat & lng is inside the polygon?
I have found the following mysql spatial functions which can check a given lattitude and longtitude is inside the polygon or not.
1 - MBR_Contains
2 - MBR_Within
Please guide me, which will give fast and accurate result to check a given point is…

ArunRaj
- 1,780
- 2
- 26
- 48
0
votes
1 answer
Can not store a double value for spatial datatype in Mysql5.6
I am trying to insert a polygon shape in a mysql database. Vertices of Polygon shapes consist of double values. To insert the value I have tried with the following query. But I got the following as my error.
INSERT INTO HIBERNATE_SPATIAL…

ArunRaj
- 1,780
- 2
- 26
- 48
0
votes
1 answer
Is it possible to store a geometry datatype in mysql 5.6 by using Hibernate-Spatial API?
I would like to persist co-ordinates of polygon shape in Mysql5.6. I have seen tutorial for Postgresql. http://www.hibernatespatial.org/documentation/02-Tutorial/01-tutorial4/
But They haven't specified any sample code for mysql. So I feel fear to…

ArunRaj
- 1,780
- 2
- 26
- 48
0
votes
1 answer
Choosing a database for cartesian coordinates
I'm trying to figure out, which database would be the best choice to store cartesian coordinates (x,y,z).
I want to query for
the distance between 2 positions,
which positions are in a sphere arround a given position,
which connections between…

Andy
- 5
- 4
0
votes
1 answer
Getting org.postgresql.geometric.PGpoint instead of org.postgis.PGgeometry in Hibernate Spatial
I've been struggling with this for a while. Running on Tomcat 7.0.47
Relevant Entity Class snippet:
@Column(name = "geopoint", columnDefinition = "org.postgis.Geometry")
@Type(type = "org.hibernate.spatial.GeometryType")
private…

Zerkz
- 686
- 1
- 6
- 25
0
votes
1 answer
Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory?
Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory or do i have to use a value proxy with my entityproxy?

osh
- 1,191
- 4
- 13
- 21
0
votes
1 answer
Type geometry not found with postgis and hibernate-spatial
I'm trying to setup a project with hibernate-spatial using postgis. Following the tutorial for hibernate-spatial 4.0-M1 I first run into the problem that the dependency postgis-jdbc-1.5.3.jar couldn't be found. Like suggested here by somebody I used…

JayBee
- 145
- 1
- 1
- 13
-1
votes
1 answer
Data truncation: Cannot get geometry object from data you send to the GEOMETRY field
hi i'm trying to insert and read geo data(POINT) to mySQL DB.
I am using JPA.
I got latitude and longitude from the frontend and I made a String like POINT(10 20) as wkt.
then by using WKTReader, I made a Point Object, made an entity , and call the…

GyeongEun Kim
- 21
- 4
-1
votes
1 answer
Spring Java JPA: Using specification with hibernate spatial
I am using Spring Boot for a project I'm working on using spatial data. For the spatial data I'm using Hibernate Spatial. This is the configuration for my entity:
@Column(name="LOCATION",columnDefinition="geometry(Point,4326)")
private Point…

Cerebres
- 343
- 3
- 16