Ciao Martin,
I have checked around a bit and I have noticed that most part of the
time the CRS.getHorizontalCRS method really means give the horizontal
part of the crs, it does not seem to care much about having a derived
crs. Do you think it could be possible to slightly change the
behaviour of this method and avoid the unwrapping.

About the  3D GeographicCRS can you be more precise about what we
might need to do so that I can make some experiments with it.

Thx,
Simone.

On Jan 4, 2008 11:59 AM, Martin Desruisseaux
<[EMAIL PROTECTED]> wrote:
> Simone Giannecchini a écrit :
> >> * getHorizontalCRS returns the GeographicCRS or ProjectecCRS part that 
> >> apply
> >>   to the Earth's surface, so at the difference of 'getCRS2D' it has a real
> >>   geophysics meaning and for this reason is a commited API. Note however 
> >> that
> >>   if you have a DerivedCRS, this method will unwrap it up to the underyling
> >>   GeographicCRS or ProjectedCRS, which may not be what you want (it depends
> >>   what you want to do). Note also that current implementation will fail for
> >>   3D GeographicCRS with ellipsoidal height.
> >
> > It seems that this would be the right method to use for most of m
> > needs but I am wondering about what we could do about the cases you
> > mention here where the method would fail. I have not looked at the
> > method's code yet, do you think it would be hard/ possible to fix
> > them?
>
> The 3D GeographicCRS would requires some work, not only in 
> CRS.getHorizontalCRS
> but also (the most tricky part) in DefaultCoordinateOperationFactory.
>
> The unwrapping of DerivedCRS is not really a work that need to be done. It is 
> an
> arbitrary choice based on the assumption that GeographicCRS or ProjectedCRS is
> usually what we want when we think about "horizontal CRS", but that choice can
> be criticize. We may need to scan through getHorizontalCRS usage and see if 
> this
> choice still appropriate.
>
>         Martin
>
>



-- 
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041  Camaiore (LU)
Italy

phone: +39 0584983027
fax:      +39 0584983027
mob:    +39 333 8128928


http://www.geo-solutions.it

-------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to