Frank Gasdorf ha scritto:
> Hi Andrea, Hello Justin,
> 
> I startet writing a test class for the DefaultMapLayer getBounds method.
> Would you agree if we shoud cover the following cases:
> - featureSource.getSchema().getCoordinateReferenceSystem() returns null -> 
> returns an empty ReferencedEnvelope 

why empty? in this case I would try to return an envelope without any
crs and have the client side handle the lack of CRS

> - featureSource.getBounds() returns null -> returns an empty 
> ReferencedEnvelope (could be because to expensive for some data sources)

ok

> - featureSource.getBounds() returns a ReferencedEnvelope -> return the 
> returned ReferencedEnvelope 

ok

> - featureSource.getSchema().getCoordinateReferenceSystem() returns CRS  and 
> featureSource.getBounds() returns null -> returns the envelope based on the 
> CoordinateReferenceSystem

hmmm... I don't actually like this behaviour much, but it was already 
there, so ok

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to