FilterOpsComplxTypes makes use of geometryUserData()
----------------------------------------------------
Key: GEOT-693
URL: http://jira.codehaus.org/browse/GEOT-693
Project: GeoTools
Type: Bug
Components: filter & expression
Versions: 2.1.0, 2.2.M0
Reporter: Jody Garnett
Priority: Minor
Workaround - have something (anything) for your Geometry user data object.
Right now the JTS Geometry "user data" file is not used for anything, for a
couple of months we used it to hold a CoordinateReferenceSystem and apparently
some of that code lives on.
>From FilterOpsComplexTypes:
if (lf.getLeftGeometry().getType() ==
org.geotools.filter.ExpressionType.LITERAL_GEOMETRY) {
ai.addAttribute(getNamespace().toString(), attrs[0].getName(),
null, "string",
((Geometry)
lf.getLeftGeometry().getValue(null)).getUserData().toString());
} else {
ai.addAttribute(getNamespace().toString(), attrs[0].getName(),
null, "string",
((Geometry)
lf.getRightGeometry().getValue(null)).getUserData().toString());
}
The correct location for this writer to discover the CRS is by way of
getFeatureType().getDefault().getCRS().toString()
--
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:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel