ThinkGeo.com    |     Documentation    |     Premium Support

High Res Rendering has spikes in it

Hey,


I've got a question about rendering hi res layers.  They are built from wkt.  The main one I'm having a problem with is basically an outline of the US.  I have a linewidth of 3, and thats making spikes at all the tiny little nooks and crannies along the coast(in NY and NJ it's really bad at low zoom levels).  Moving to 1 gets rid of the artifacts but the overlay is hardly as prominent as I'd like.  Is there some sort of smoothing technique that ThinkGeo has?  I want the width and the accuracy, just not the artifacts.


 


Any help would be most appreciated.  I know in ThinkGeo 2 there was a smoothingmode.  Not sure if that's what I should be looking for, or something else. 


Thanks again!


 


 



Tom, 


We have 2 properties for that. One is Map.SmoothingMode and the other is Map.CompositingQuality. They are all GDI+ properties and you can set both of them to “HighQuality”. 
 
However, it might not remove all your spikes even you set that. It’s a GDI+ issue that in one line, if 2 adjacent points are very close and the width of the line is not thin, it will have spikes. You can see the attached GDI+ demo that even with the ComposingQualith and SmoothingMode both set to HighQuality, there are still spikes.
 

Reset the styles can solve that issue. For example, originally you set the width of the US outline to 3 from ZoomLevel10 to ZoomLevel20, you can change the within to 2 for ZoomLevel10 and apply the width of 3 only from ZoomLevel11 to ZoomLevel20.  As the width gets fewer, you have less possibility to see spikes within ZoomLevel10; also when zoom in to ZoomLevel11, the distance between 2 adjacent points gets larger so it also has little possibility to have spikes there. Have a couple of try on that and I think it’s no doubt to remove all the spikes.
 
Please let us know for any queries.
 
Ben

191-SpikeSample.zip (9.49 KB)

Ben,


 


That makes sense.  I appreciate the reply, and we'll try a few things to sort it out.


 


Thanks again!


 


 



Let me know for any more queries. Tom.