List<SharpMap.Rendering.Label> as a SharpMap.Data.Provider

Topics: Data Access, General Topics
Jun 6, 2007 at 6:51 PM
Hi. Is it possible to use a List<SharpMap.Rendering.Label> as a SharpMap.Data.Provider? In which way?
Jun 11, 2007 at 9:00 AM
I think it's not possible, since the List you're speaking of has no geometry informations... so you couldn't know where to place your labels!
The only way could be having a layer of points and the ability for GeometryProvider (not implemented yet) to add feature data to point data.
Coordinator
Jun 19, 2007 at 7:14 AM
iako1 -

Why do you want to do this?
Jun 19, 2007 at 10:58 AM
Edited Jun 19, 2007 at 11:00 AM
My original problem is this (the use of a List such as a DataProvider was a particolar strategy):
I've got a map that shows the provinces of a region. My map is composed of 2 layer: a vector layer and a label layer. I've a problem with the label layer, because sometimes I've got a province's name that appear in great measure in another province. Is there a way to put a name inside the province's boundary?I've got only a shapefile and I take the provinces name from a shapefile column.
I hope you can understand me.
Thanks a lot.