Support for 3d point?

3 messages Options
Embed this post
Permalink
eroussel

Support for 3d point?

Reply Threaded More More options
Print post
Permalink
Hello,

I would like to know if the current release of Hibernate Spatial  
supports 3d points on PostGIS, and if yes, if there is any example of  
how to do that.

Thanks in advance.


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

Re: Support for 3d point?

Reply Threaded More More options
Print post
Permalink
Yes, 3D points are supported. You just need to create an object with  
a point geometry attribute (JTS Geometry package), set its X,Y,Z  
coordinates, then persist it using Hibernate. Check also the tutorial  
on http://www.hibernatespatial.org/tutorial.html

Regards,

Karel

On 11 Mar 2009, at 22:16, [hidden email] wrote:

> Hello,
>
> I would like to know if the current release of Hibernate Spatial
> supports 3d points on PostGIS, and if yes, if there is any example of
> how to do that.
>
> Thanks in advance.
>
>
> _______________________________________________
> 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
eroussel

Re: Support for 3d point?

Reply Threaded More More options
Print post
Permalink
Thanks. I got it working; what prompted my question was that while querying the DB (with SQL) after inserting 3D waypoints I was unable to output the Z value. But by programmatically querying the DB from Java and logging the returned entities I was able to prove that the Z value was actually stored in the DB. I don't know exactly why I couldn't retrieve the Z value from PostgreSQL/PostGIS directly however.


Karel Maesen wrote:
Yes, 3D points are supported. You just need to create an object with  
a point geometry attribute (JTS Geometry package), set its X,Y,Z  
coordinates, then persist it using Hibernate. Check also the tutorial  
on http://www.hibernatespatial.org/tutorial.html

Regards,

Karel

On 11 Mar 2009, at 22:16, eroussel_register@mac.com wrote:

> Hello,
>
> I would like to know if the current release of Hibernate Spatial
> supports 3d points on PostGIS, and if yes, if there is any example of
> how to do that.
>
> Thanks in advance.
>
>
> _______________________________________________
> hibernatespatial-users mailing list
> hibernatespatial-users@lists.hibernatespatial.org
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users

_______________________________________________
hibernatespatial-users mailing list
hibernatespatial-users@lists.hibernatespatial.org
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users