G'Day Bruce,
I had a look at the JTS class on trunk and found that it has been fixed
up using generics:
> final List<Coordinate> coords = new ArrayList<Coordinate>();
> final List<LineString> lines = new ArrayList<LineString>();
> while (!iterator.isDone()) {
> switch (iterator.currentSegment(buffer)) {
> case PathIterator.SEG_CLOSE: {
> if (!coords.isEmpty()) {
> coords.add( coords.get(0) );
> lines.add(factory.createLinearRing(
> (Coordinate[]) coords.toArray(new
> Coordinate[coords.size()])));
> coords.clear();
> }
> break;
> }
> ...
Your bug report did not list which version of GeoTools is affected by
GEOT-1813; perhaps your patch is for GeoTools 2.4.x?
Jody
Bruce Adam wrote:
> Hi all,
>
> I've attached a patch that fixes a class cast exception in JTS.java. I
> read on the website that if I hadn't heard back after a few days I
> should mail the dev list with a pointer to the issue and ask the list to
> see how to take things forward from here.
>
> The Jira issue is:
> http://jira.codehaus.org/browse/GEOT-1813
>
> Please let me know of anything else I should do. I can be reached at
> bruce dot adam at tomtom dot com
>
> Regards, Bruce.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel