On Tue, Jan 18, 2011 at 11:55 PM, Sjoerd Brandsma <sbrandsma@anonymised.com> wrote:
Hi,
Minor steps have been made so far. Only two days of initial effort has been
put in so don't expect much 
Changes made:
Geotools
- Modification in gt-jdbc-postgis to be able to get postgis data:
use ST_AsEWKB instead of ST_AsBinary because ST_AsBinary ony returns X,Y
removed force_2d from query
Hmm... that might end up breaking WMS. There is a hint to return flat features,
the store should be modified to respect it.
- Modification in gt-referencing:
added DirectPosition3D class
- couple of gml/geometry modifications in gt-main
- couple of modifications in gt-xsd-gml3
- couple of modifications in gt-xsd-api
Makes sense.
JTS
- added getCoordDimensions function to geometry and implementors
- modified WKTWriter to be able to write 3d data
Are those both strictly necessary? Patching JTS is problematic, we
only used stock
releases so far.
It would be nicer, imho, to keep the knowledge that a certain geometry is 3d
as part of the GeometryDescriptor, possibly as an entry in that class metadata
map.
Geoserver
- temporary modification for WGS84 bounding box calculation when adding 3D
vector layers
This should be done only in case of 3d data as well.
I'll probably forget some changes that will appear when I'll do proper
source check.
Above modifications make it possible to get 3D GML data from a postgis
database using Geoserver.
Currently we only tested this with POINT in EPSG:7415 (Amersfoort RD new +
NAP).
We will also test LINESTRING and POLYGON pretty soon.
Ah ok, so by 3D you really mean planar geometry with 3d coordinates, not solids,
right?
Cheers
Andrea
--
Ing. Andrea Aime
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-----------------------------------------------------