How to query the spatial data?

3 messages Options
Embed this post
Permalink
Coquelicot-2

How to query the spatial data?

Reply Threaded More More options
Print post
Permalink
Dear all,

maybe this is a stupid question but - how can I query for my spatial
data? is there any general documentation what HQL can I use?

big thanks,

--
Lukasz
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
Ola Sijuade

Re: How to query the spatial data?

Reply Threaded More More options
Print post
Permalink


 Hello All;

I am in the same situation as well!!! Do anyone know how to map, persist data using the hibernate JGeometry framework. I have used the provided hibernatespatial example/tutorial.

Cheers!!!

OS

--Original Message-----
From: Coquelicot <[hidden email]>
To: [hidden email]
Sent: Thu, 26 Jun 2008 10:56 am
Subject: [hibernatespatial-users] How to query the spatial data?

Dear all,

maybe this is a stupid question but - how can I query for my spatial
data? is there any general documentation what HQL can I use?

big thanks,

-- 
Lukasz
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
Karel Maesen

Re: How to query the spatial data?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Coquelicot-2
Hi Lukasz,

The best way to query spatial data is to use the SpatialRestrictions  
static factory class. (it's in the package  
org.hibernatespatial.criterion). This factory creates hibernate  
Criterion instances that you can add to a Criteria instance.

The HQL functions are not yet fully documented, but they generally  
have the same name and signature as specified in OGC specification  
Simple Features Implementation Specification version 1.1 (can be  
downloaded from: http://portal.opengeospatial.org/files/?
artifact_id=829). See esp. section 2.1.1 . With these exceptions:
- Union is renamed to geomunion (since union is an SQL keyword)
- instance methods become functions with the _this_ object as first  
argument.

Hope this helps.

Regards,

Karel Maesen



On 26 Jun 2008, at 16:56, Coquelicot wrote:

> Dear all,
>
> maybe this is a stupid question but - how can I query for my spatial
> data? is there any general documentation what HQL can I use?
>
> big thanks,
>
> --
> Lukasz
> _______________________________________________
> hibernatespatial-users mailing list
> [hidden email]
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users