So far I tried the following:

featureSource = ds.getFeatureSource(FEATURE_TYPE_NAME);
DefaultQuery query = new DefaultQuery(DefaultQuery.ALL);
Hints hints = new Hints(Hints.COORDINATE_DIMENSION, new Integer(3),
                                          Hints.FEATURE_2D, Boolean.FALSE);
query.setHints(hints);
featureCollection = featureSource.getFeatures(query);

That was the kind of thing you were meaning? I tried the hints that 
seemed the most likely from the list that the Hints object provides. 
Unfortunately it doesn't seem to make a difference, I just get features 
with the X,Y components as before. Does anyone know if I'm on the right 
track, or do I need to provide a different CoordinateSequenceFactory as 
well?

Mark

On 14/07/10 15:20, Jody Garnett wrote:
> We had some hints to try and pull down additional ordinates for working with 
> 3D data. Check Query Hints for the constant used.
>
> Jody
>
> On 13/07/2010, at 11:08 PM, Mark Payne wrote:
>
>    
>> Hi all,
>>
>> I have a PostGIS database in which all the geometries are 4D (XYZM)
>> although the CRS is 2D as is commonly the case. I create a PostGIS data
>> store and use it to extract features from the database, but I find that
>> it only retrieves the X and Y components. The Z component is always set
>> to NaN. Does anyone know if there is a way of forcing the data store to
>> include the Z value?
>>
>> Thanks
>>
>> -- 
>> Mark Payne
>> Development Engineer
>>
>> Tel: +44 (0) 131 447 4200          Address: SeeByte Ltd.
>> Support Tel: +44 (0) 131 510 4200           Level 7, Orchard Brae House
>> USA Tel (UK Hours): +1 (619) 241 4393       30 Queensferry Road
>> Fax: +44 (0) 131 447 4911                   Edinburgh, EH4 2HS
>> Web: http://www.seebyte.com                 Scotland, UK
>>
>> | This message is confidential and may be privileged. If it is
>> | not for you please inform us then delete it. If the content is
>> | not about the business of the company or its clients then the
>> | message is neither from nor sanctioned by SeeByte Limited which is
>> | a company registered in Scotland (reg. number SC194014) with its
>> | registered office at the address stated above.
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>      
>    


-- 
Mark Payne
Development Engineer

Tel: +44 (0) 131 447 4200          Address: SeeByte Ltd.
Support Tel: +44 (0) 131 510 4200           Level 7, Orchard Brae House
USA Tel (UK Hours): +1 (619) 241 4393       30 Queensferry Road
Fax: +44 (0) 131 447 4911                   Edinburgh, EH4 2HS
Web: http://www.seebyte.com                 Scotland, UK

| This message is confidential and may be privileged. If it is
| not for you please inform us then delete it. If the content is
| not about the business of the company or its clients then the
| message is neither from nor sanctioned by SeeByte Limited which is
| a company registered in Scotland (reg. number SC194014) with its
| registered office at the address stated above.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to