Difference between FeatureBounds and FeatureCollectionBounds
------------------------------------------------------------
Key: GEOT-1944
URL: http://jira.codehaus.org/browse/GEOT-1944
Project: GeoTools
Issue Type: Bug
Components: data arcsde
Affects Versions: 2.5-M3
Reporter: Jody Garnett
Assignee: Gabriel Roldán
We have a report of bounds calculations going astray from an ArcSDEDataStore
FeatureID based query.
{code}
FeatureStore<SimpleFeatureType, SimpleFeature> store =
highlightLayer.getResource(FeatureStore.class, null); FilterFactory ff =
CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints()); if
(featureId != null) {
FeatureCollection<SimpleFeatureType, SimpleFeature> result =
store.getFeatures(ff.id(FeatureUtils.stringToId(ff, featureId)));
System.out.println("Collenction bounds: "+result.getBounds());
iterator = result.features();
if (iterator.hasNext()) {
feature = iterator.next();
System.out.println("Feature bounds: "+feature.getBounds());
iterator.close();
}
}
{code}
With the results:
| Collenction bounds: | ReferencedEnvelope[0.0 : 9.223372036854776E18, 0.0 :
9.223372036854776E18] |
| Feature bounds: | ReferencedEnvelope[370196.28006616497 :
371785.09008811245, 533285.0981532441 : 534050.1321273892] |
The bug report is from a fork of ArcSDEDataStore; the changes have been
attached as a patch to an earlier bug Report. Gabriel and Jody reviewed the
fork and although I cannot remember the details we could not understand /
justify the changes made.
--
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel