GML2 encoding can intermittently encode null values in place of geometries

Description

This seems to be happening after a while and only if the source has a mix of simple and multi-geometries. The issue seems to be caused by direct class comparison (g.getClass() equals Point) in the GML encoder vs using instanceof.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:34 PM

CodeHaus Comment From: aaime - Time: Thu, 28 Apr 2011 01:52:31 -0500
---------------------
By user reports with this patch applied the issue does not seem to be happening anymore

codehaus
April 10, 2015, 3:34 PM

CodeHaus Comment From: aaime - Time: Thu, 28 Apr 2011 06:02:28 -0500
---------------------
This is actually related to <a href="https://jira.codehaus.org/browse/GEOT-3549" title="PostGIS dialect may not honor the provided geometry factory" class="issue-link" data-issue-key="GEOT-3549"><strike>GEOT-3549</strike></a>, the thread local used there might have been using another factory that actually generated subclasses of the base JTS geometries, which would not have been working with the GML encoder without this patch

Andrea Aime
February 15, 2017, 11:45 AM

Mass closing all resolved issues not modified in the last 4 weeks

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure