I have an area style with a geopen size of 2. At certain scales on complex polygons, the outline has spurs that shoot across the polygon. I can probably handle this by using a thinner outline at greater scales, but just wanted to show you an example. I've included 2 screen shots for explaination.
Drawing spurs are sertain scales
Ed,
Do you know the version you are working with? You can check the dll for the MapSuiteCommon.dll or you can call the GetVersion on the map itself. I am pretty sure we fixed this awhile back so I am curious to see what version you have. What we did was to default the values below in the Pen itself but maybe you went around it or something reverted.
The way to fix this is to add the following lines of code on the pens you use.
OutlinePen.LineJoin = DrawingLineJoin.Round;
OutlinePen.StartCap = DrawingLineCap.Round;
OutlinePen.EndCap = DrawingLineCap.Round;
David
Here is what GetVersion returned : MapSuiteCore:3.1.246;DesktopEdition:3.0.426
Here is the code where I set the style, gsb is the GeoSolidBrush:
vs.ValueItems.Add(new ValueItem(pair.Value.Id.ToString(), new AreaStyle(new GeoPen(GeoColor.SimpleColors.Black,2), gsb)));
Ed,
I have tested MapSuiteCore:3.1.246;DesktopEdition:3.0.426 for drawing complex area, it works, can not recreate your problem.
Have you try to use David’s code. I think your problem maybe caused by that. Here are two screen-shots compare use that code or not:
If you still have this problem, you can try to send us your data will be more helpful!
Thanks,
James
James,
I added the code to make the outline pen round and I still have the same issue. I have attached another image and the WKT of the polygon with the problem. Let me know if you need anything else.
Thanks, Ed
1313-spurshape.txt (207 KB)
Ed,
I attached a sample used the wkt your supplied, but I didn't see any spurs like you mentioned.
You can run my sample and see if show spurs or not. I think maybe some special environment caused this problem.
Please let me know if you have any more questions.
Thanks.
James
1318-TestSpurShape.zip (102 KB)
I ran the test app you sent and the spur happened on the load. I did not have to zoom in or out.
Ed
Ed,
It’s really caused by Windows environment. After I test all OS I have, get the following results.
Has Spur
Works
Windows XP sp2 x86
Windows 2003 sp2 x86
Window Vista sp1 x86
Windows XP sp2 x64
Windows Vista sp2 x64
Windows 7 build7100 x86
We have added this issue to our working items; maybe it will be fixed in next release.
Thank you finding this issue.
James
We are currently on Winxp sp2 x86, but are upgrading to sp3 for the next two years. Please try and verify or put in the work item to make sure it works with windows xp sp3 x86.
Thanks
Ed
Ed,
It has spur even the evironment is sp3. It seems that the reason is Microsoft, because it fixed in Windows7, you can try to search the specific hotfix or patch for fixing this problem.
When will you start upgrade your XP to sp3? This week we will release a new version, but it won’t fix this problem, we will try to fix it after that.
James
We are testing xp sp3 within the next two weeks. I will update this thread after our testing is complete.
Thanks,
Ed
Ed,
We put this problem as show-stop issue, if we figure out how to deal with it, we also will update this thread and let you know.
Thanks.
James
James,
I don’t think this is a show stopper issue but at least high. I am not sure there is much we can do with this assuming it is Windows specific. We will do some testing and at least we have an example.
David