CollectionDataStore.getBounds returns wrong bounds
--------------------------------------------------
Key: GEOT-1454
URL: http://jira.codehaus.org/browse/GEOT-1454
Project: GeoTools
Issue Type: Bug
Components: core main
Affects Versions: 2.3.4, 2.4.0, 2.5.0
Environment: applies to all environments
Reporter: Erik Lovlie
Assignee: Jody Garnett
The method CollectionDataStore.getBoundsInternal(Query) returns the wrong
envelope if the first feature in the feature collection is not contained in the
filter. This is because the calculated envelope is initialized to the envelope
of the first feature in the collection:
[org.geotools.data.collection.CollectionDataStore.java line 142]
envelope = iterator.next().getPrimaryGeometry().getEnvelopeInternal();
Instead it should be initialized it to a null-envelope like this:
[org.geotools.data.collection.CollectionDataStore.java line 142]
envelope = new Envelope();
There is no reason for doing this, so it should be fixed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
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