This project has moved. For the latest updates, please go here.

Incorrect indexing!

Topics: SharpMap v0.9 / v1.x, SharpMap v2.0
Sep 9, 2007 at 8:51 PM


I found a small bug in Sharpmap.CoordinateSystems.Transformation

class GeometryTransform

public static MultiPoint TransformMultiPoint(MultiPoint points, IMathTransform transform)

pts.Add(new double2 {points0.X, points1.Y });

Should be:
pts.Add(new double2 {pointsi.X, pointsi.Y });


Sep 9, 2007 at 10:32 PM
Thanks scaprio!

Which source tree is this in? I can't find it in v2.0, which is still not using Proj.Net.
Sep 10, 2007 at 8:16 AM

I made a checkout with the CPC tool and the bug is both in the \branches\2.0 version as well as in the Trunk release.

Checking out with CPC should give me the latest version, or have I missed something?
Sep 10, 2007 at 8:30 AM
Ah, I see... /branches/2.0 is currently not used, since we are hosting it on Google projects for now. As for v1.0, we are using Proj.Net now, and that doesn't use Geometry instances, it uses double values.

Perhaps it is in the code which converts a Multipoint into a double array to be passed ot Proj.Net?
Sep 10, 2007 at 10:30 AM
Yeah that's the one!

So how can I download the v2.0 then, couldm't find anything on your site at google projects?
Sep 10, 2007 at 3:13 PM
The repository is here:
Sep 11, 2007 at 2:37 PM
Thanks for your guidance!