Hi, I am a newbie.
I only recently found what Sharpmap can do for me. believe me its a great product!
I have one tiny problem though and I have only a little time to spare. I am using SharpMap build 0.0.9.
My code look like this:
Point bottomLeftPoint = new Point(e.X - 10,e.Y -10);
Point upperRightPoint = new Point(e.x = 10, e.Y + 10);
SharpMap.Geometries.Point bottomLeftWorldPoint = map.ImageToWorld((bottomLeftPoint);
SharpMap.Geometries.Point upperRightWorldPoint = map.ImageToWorld((upperRightPoint);
SharpMap.Geometries.BoundingBox bb =new SharpMap.Geometries.BoundingBox(worldBottomLeftPoint,worldUpperRightPoint);
SharpMap.Data.FeatureDataSet fds =new SharpMap.Data.FeatureDataSet();
foreach(SharpMap.Layers.Vectorlayer layer in map.Layers)
if( !layer.DataSource.IsOpen) layer.DataSource.Open();
There are many layers on the map, but not one of them returns any data.
When I went through the source code provided I found that the data gets loaded into the FeatureDataTable but when it's added to the FeaturedataSet, the FeatureDataSet doesn't show any data.
As such I am unable to retrieve any data and hence can't get my application to work!
Please help as I don't have much time on my hands. the Boundingrectangle is correct because it can fetch data into the table but the dataset being returned doesn't contain the table containing the data.
Is this a bug? Or have I missed out on something.