Nice dose of caution; but it should be fine - we kind of thought this
one through when we introduced ReferencedEnvelope.

Interfaces:
- ReferencedEnvelope <- BoundingBox <- Envelope (GeoAPI)

Classes:
- ReferencedEnvelope <- Envelope (JTS)

The Envelope (GeoAPI) is very generic and allows for multiple dimensions
- getCenter(int)
- getCoordinateReferenceSystem()
- getDimension()
- getLength( int )
- getLowerCorner()
- getMaximum(int)
- get Median(int)
- getMinimum(int)
- getSpan(int)
- getUpperCorner(int)

BoundingBox extends this with some additional helper methods for the
common 2D case; and carefully does not conflict with JTS Envelope.
- contains( double, double )
- contains( BoundingBox )
- contains( DirectPosition )
- getHeight() - helper method for getSpan( int )
- getMaxX() - backs onto getMaximum( int )
- getMin() - backs onto getMinimum( int )
- getWidth() - backs onto getSpan( int )
- include( double, double )
- include( BoundingBox)
- intersects( BoundingBox)
- isEmpty()
- setBounds( BoundingBox )
- toBounds( CoordinateReferenceSystem )

We should consider BoundingBox interface as pure syntatic sugar.

Jody

On Tue, Jun 9, 2009 at 8:07 PM, Simone
Giannecchini<[email protected]> wrote:
> I have a few doubts about the update of ReferencedEnvelope. Are you
> sure it is already capable of doing 3D semantic-wise?
> It implementes BoundingBox which is purely 2D and that's why it is
> used almost everywhere in the feature code. If we start to put 3d
> envelopes in it, we would be clearly violating the BoundingBox
> interface or, put it another way, what is going to be the meaning of x
> and y with a 3D crs ( it might seem a naive question and probably is,
> but I am trying to understand which assumptions we are making).
>
>
> Simone.
> -------------------------------------------------------
> Ing. Simone Giannecchini
> GeoSolutions S.A.S.
> Owner - Software Engineer
> Via Carignoni 51
> 55041  Camaiore (LU)
> Italy
>
> phone: +39 0584983027
> fax:      +39 0584983027
> mob:    +39 333 8128928
>
>
> http://www.geo-solutions.it
> http://simboss.blogspot.com/
> http://www.linkedin.com/in/simonegiannecchini
>
> -------------------------------------------------------
>
>
>
> On Tue, Jun 9, 2009 at 10:26 AM, Jody Garnett<[email protected]> wrote:
>> First of all - a solid +1
>>
>> I really like how you have used the facilities of the feature model to
>> store the extra information about Z or M handling.
>>
>> I am tempted to provide a Types.getDimension( GeometryAttribiute )
>> implementation that:
>> - consults the hint
>> - looks at the CRS dimension if the hint is not provided
>>
>> We have a factory finder for a single JTS GeometryFactory; so if you
>> need to take more control over the CoordinateSequence used we should
>> be able to do so; this factory finder is not used in very many places;
>> but it does provide the opportunity.
>>
>> Nice work Andrea,
>> Jody
>>
>> On Mon, Jun 8, 2009 at 8:14 PM, Andrea Aime<[email protected]> wrote:
>>> Hi all,
>>> following previous discussions on the mailing list
>>> I've put togheter the following proposal:
>>> http://docs.codehaus.org/display/GEOTOOLS/Partial+3D+data+support
>>>
>>> Feedbacks and votes welcomed. Please review at your earlies
>>> convenience.
>>>
>>> Cheers
>>> Andrea
>>>
>>> --
>>> Andrea Aime
>>> OpenGeo - http://opengeo.org
>>> Expert service straight from the developers.
>>>
>>> ------------------------------------------------------------------------------
>>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
>>> looking to deploy the next generation of Solaris that includes the latest
>>> innovations from Sun and the OpenSource community. Download a copy and
>>> enjoy capabilities such as Networking, Storage and Virtualization.
>>> Go to: http://p.sf.net/sfu/opensolaris-get
>>> _______________________________________________
>>> Geotools-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Geotools-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to