Hi all,

While I was working on a plugin for uDig, it occured to me, that the 
org.geotools.geometry.jts.ReferencedEnvelope throws an exception from 
the constructor, if I try to set the CRS to a CRS with not exactly 2 
dimensions. I guess there is a reason for this, but I don't see it :) 
What would be the problem if I would set a 3 dimensional CRS? As I saw 
every method works with the firs two coordinates hardcodedly, so there 
should be no problems, if it would only check for 2 <= dimensions.

With the current implmentation of the Default* classes, even a 
SimpleFeature.getBounds() fails with the same error.

Now I change the test for <=, and check if it works or not.

Thanks,
Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to