bilaldursun1 / nettopologysuite

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

Error in NetTopologySuite.CoordinateSystems.Transformation.DotSpatial.Projections #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have found a problem when using DotSpatialMathTransform. There is a bug on 
line 235 of 
NetTopologySuite.CoordinateSystems.Transformation.DotSpatial.Projections 

The current code reads:
234       ret.SetOrdinate(i, Ordinate.X, xy[j++]);
235       ret.SetOrdinate(i, Ordinate.X, xy[j++]);

When in fact line 235 should assign to Ordinate.Y.

The effect is that the Longitude value is placed in the Latitude and the 
Longitude holds the original Longitude value.

I think its pretty easy to see the fault but I have posted test code on  
stackoverflow at 
http://stackoverflow.com/questions/17705061/error-when-using-nettopologysuite-tr
ansformgeometry 

I also note that the NuGet package does not include this code, which is a pity.

Jon Smith - Selective Analytics

Original issue reported on code.google.com by jon.sm...@selectiveanalytics.com on 18 Jul 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Thanks for reporting, fixed in trunk r1065.
There are no plans to include the code in a nuget package.

Original comment by felix.ob...@netcologne.de on 18 Jul 2013 at 2:31