StreamingRenderer fails to render a shapefile feature when trying to convert
from CoordinateArraySequence to LiteCoordinateSequence
-----------------------------------------------------------------------------------------------------------------------------------
Key: GEOT-2958
URL: http://jira.codehaus.org/browse/GEOT-2958
Project: GeoTools
Issue Type: Bug
Components: core render, data shapefile
Affects Versions: 2.6.1, 2.6.0
Reporter: Milton Jonathan
Assignee: Andrea Aime
Priority: Minor
Fix For: 2.6.2
Attachments: Continente_guanabara.zip, RenderShapefile.java
The attached shapefile was seen to generate exceptions when trying to render
with a StreamingRenderer. The problem is caused by a specific feature, that
fails with a ClassCastException when trying to cast from a
CoordinateArraySequence to a LiteCoordinateSequence (in LiteShape2's
constructor). Debugging indicates that the referred feature's geometry had a
declared LiteCoordinateSequenceFactory, but deep inside the shell of its
MultiPolygon's polygon was actually a CoordinateArraySequence.
The strangest thing here is that:
- no such errors arise when using ShapefileRenderer with the referred shapefile
- no such errors arise when using StreamingRenderer with other shapefiles
Attachments include:
- the shapefile that causes the errors
- a simple Java program that renders output to a JPanel (used for testing)
--
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel