The problem is actually not with wtkwriter but with the GML encoder.
It outputs 2 dimensions and I need to get all three. That's a problem 
for WFS supporting 3 dimensions.

For example, in PointTypeBinding I see the code:

if ("pos".equals(name.getLocalPart())) {
             Point point = (Point) object;

             DirectPosition2D dp = new DirectPosition2D();
             dp.setOrdinate(0, point.getX());
             dp.setOrdinate(1, point.getY());

             return dp;
         }


This should also support 3 dimensions.

Cheers
Niels

On 04/06/12 15:23, Andrea Aime wrote:
> On Mon, Jun 4, 2012 at 3:16 PM, Niels Charlier<ni...@scitus.be>  wrote:
>> I see now what the problem was: the Z coordinate is indeed populated, but it
>> is not outputted by WTKWriter. Which is a problem for WFS.
> The WKTWriter can write 3d, but you have to tell it so when constructing it:
> new WKTWriter(3)
>
> I guess we'll need some way to say that a geometry is 3d in the property
> data store.
> Have a look at the Hints.COORDINATE_DIMENSION hint and how it's used in
> https://jira.codehaus.org/browse/GEOT-4163
>
> Cheers
> Andrea
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to