bilaldursun1 / nettopologysuite

Automatically exported from code.google.com/p/nettopologysuite
0 stars 0 forks source link

Polygon.Reverse() causes InvalidCastException #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Calling Reverse() on a Polygon produces:
System.InvalidCastException : Unable to cast object of type 
'NetTopologySuite.Geometries.LineString' to type 
'NetTopologySuite.Geometries.LinearRing'.

The reason seems to be that the Reverse method is not overridden by LinearRing. 

Diff file attached.

Original issue reported on code.google.com by michael....@gmail.com on 6 Dec 2012 at 1:46

Attachments:

GoogleCodeExporter commented 9 years ago
I already noted and fixed that, but didn't check it in.
Thanks for pointing it out. r963

Original comment by felix.ob...@netcologne.de on 6 Dec 2012 at 8:14