This project has moved and is read-only. For the latest updates, please go here.

a couple bugs in Trunk with my solutions

Jan 30, 2013 at 8:17 PM


I'm a couple hours into using SharpMap. It's quite nice and I just wanted to share that I've found a couple issues in Trunk:

- In TileLayer.cs GetTileOnThread expects 5 arguments but only 4 are provided. I fixed it simply by adding true for the retry argument:

  new object[] {_source.Provider, info, _bitmaps, waitHandle, true /* added */});

- Using SharpMap.Data.Providers.GeometryProvider in combination with a custom theme leads to an exception because the intersection query is not implemented. I worked around this via the following (which for my purposes appears adequate):

class MyGeometryProvider : SharpMap.Data.Providers.GeometryProvider
        private SharpMap.Data.FeatureDataTable features;

        public MyGeometryProvider(SharpMap.Data.FeatureDataTable features) : base(features)
            this.features = features;

        public override void ExecuteIntersectionQuery(GeoAPI.Geometries.Envelope box, SharpMap.Data.FeatureDataSet ds)