Details
Description
An update of certain geometry collection is not possible, as Geometry.equals method of JTS does not support at least certain types of GeometryCollections.
Result is an error with message: This method does not support GeometryCollection arguments
Example Geometry:
GEOMETRYCOLLECTION (
POLYGON ((
4465427.01287204 5331922.44208214,
4465437.76279866 5331886.55464433,
4465466.64028524 5331897.63869739,
4465427.01287204 5331922.44208214
)),
POINT (
4465454.97619893 5331898.86085942
),
LINESTRING (
4465449.05410193 5331870.44579147,
4465456.10962711 5331883.54890965,
4465483.72696851 5331878.30766238,
4465481.91269061 5331908.94880028,
4465461.35087438 5331923.26143707
))
Create a Feature with the geometry an write it into a JDBC Datastore. Try to edit the feature without modifying the geometry. Edit will fail as the equal method of JTS throws Exception.
Code section where exception is thrown:
In the class JDBCFeatureWriter:
if (live != null) {
if (live.equals(current)) {
// no modifications made to current
live = null;
current = null;
In the class JDBCTextFeatureWriter
if (!DataUtilities.attributesEqual(liveAtt, currAtt)) {
if (LOGGER.isLoggable(Level.INFO))
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Andrea Aime [ aaime ] | |
| Fix Version/s | 2.5.8 [ 15543 ] | |
| Priority | Critical [ 2 ] | Major [ 3 ] |
| Fix Version/s | 2.5.9 [ 15876 ] | |
| Fix Version/s | 2.5.8 [ 15543 ] |