Hi,
I'm playing with some 3d data with a compound CRS (EPSG:7415), built
coupling a 2D flat CRS with
a vertical one.

Trying to render it fails in streaming renderer, because it's not possible
to go from the 2D envelope
of a WMS request to a 3D one... here is what's going on:

   1. The code receives a request to render a map, the bbox is obviously
   expressed in a flat CRS (by WMS spec, in this case), say EPSG:4326
   2. StreamingRenderer needs to filter on this bbox to get the data, sees
   it does not match the native CRS and tries a transformation to setup the
   filter
   3. ReferencedEnvelope attempts a 2d to 3d transformation using
   JTS.transformTo3D... which blows up because it's trying to pivot
   though DefaultGeographicCRS WGS84_3D, but there is no transformation
   between that and EPSG:7415

Now, leaving aside the notion of supporting vertical CRS transformations
(which we don't have good support for), the main issue here is that the
request wants to filter on a 2D area, so the reasonable approach would be
to transform the requested envelope to the 2D component of the 3D CRS, and
then set the z part of the query envelope to go from -INF to +INF (in other
terms, unspecified).

The current code, in the few cases where it works, goes from a 2D envelope
to a 3D one with Z that are zero, e.g., the
ReferencedEnvelopeTest.testTransformToWGS84 does the following one:

Source: ReferencedEnvelope[130.875825803896 : 130.898939990319,
-16.4491956225999 : -16.4338185791628]
Target: ReferencedEnvelope3D[130.875825803896 : 130.898939990319,
-16.4491956225999 : -16.4338185791628, 0.0 : 0.0]

Filtering wise this is not useful, if really applied it would only catch
objects that are intersecting the sea level...

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to