Hi,

I missed that for a long time. In order to see the Z coordinate in H2 we 
have only to replace the following function in ValueGeometry.java:

    /**
>      * Get the value in Well-Known-Text format.
>      *
>      * @return the well-known-text
>      */
>     public String getWKT() {
>         return new WKTWriter().write(getGeometryNoCopy());
>     }
>

By this

    /**
>      * Get the value in Well-Known-Text format.
>      *
>      * @return the well-known-text
>      */
>     public String getWKT() {
>         return new WKTWriter(*3*).write(getGeometryNoCopy());
>     }
>

 
*2* is the default dimension output of WKTWriter. 

Unlike WKBWriter we don't have to check for dimension because WKTWriter 
will not write Z if Z is NaN.

Thank you,

Regards,

-Nicolas Fortin
RISING, IRSTV FR CNRS 2488

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to