On Fri, Aug 3, 2012 at 11:55 PM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:

> Take also into consideration the data sources, that has implication as
> well.
> In PostGIS you can declare a 2D CRS and then specify the number of
> dimensions
> is 3 or 4, that's perfectly fine with the database, and I guess we should
> be able to
> support 3D bboxes against that case too. How is that going to play if the
> plan
> is to only use the CRS to figure out the dimensions?
> Would having  some information in the GeometryDescriptor user
> data section that provides the true dimension regardless of the chosen CRS
> work better in general?
>

This went a bit off the tangent, but here is the part that affects the
filtering code.
Say I have a layer in postgis that is declared as EPSG:4326 with dimension=3
(perfectly legit in postgis), how am I going to filter it using BBOX3D?
It seems whatever I do I might be in some issue from some point of view:
* if I state the crs is EPSG:4326 then the dimensionality check in
  ReferencedEnvelope3D.checkCoordinateReferenceSystemDimension()
  will make it impossible to build the filter
* as a user I could know that I have to use EPSG:4327 instead, but this
  will make the CRS inconsistent with the one on the DBMS.. besides that,
  I don't see an immediate way for automated code to build the "3d
equivalent"
  of a 2d system, and the layer will be declared in the feature type as
having
  EPSG:4326 (since that's what we reflect out of the database)

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 962313
mob:   +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
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