Andrea Aime a écrit :
>> ReferencedEnvelope reference(ReferencedEnvelope)
> 
> Yep, it is a sort of a copy constructor, but with a check for null 
> before doing so.

Renaming it as "copy(ReferencedEnvelope)" would make its intend clear and avoid 
confusion with other "reference" methods, which are rather converter...



>> ReferencedEnvelope reference(Envelope)
>> --------------------------------------
> if it's not, a JTS Envelope (that's
> what the argument is) has no CRS

Ah, I missed the fact that the Envelope was the JTS one (I confused with the 
GeoAPI one). Then you are right, we can hardly get the correct CRS.

Just renaming the first "reference" as "copy" would seems quite nice to me then 
:)

        Martin


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to