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