This project has moved. For the latest updates, please go here.

Custom renderer scenario

Topics: General Topics, SharpMap v2.0, WinForms Controls
Dec 22, 2008 at 4:21 PM


I have data with trajectories of people represented as a set of points with unique id for every person

I'd like to show all the trajectories with the following properties

1. Points which belong to one trajectory are connected with lines

2. Every trajectory has its own color

3. I can "play" with trajectory/ies like highlighting , selection and so on.

I understand that some custom renderer must be implemented which can be linked to a layer with trajectories. However it is very difficult to trace the logic of 

version 2 without any tutorial and help, so if somebody can give general or specific guidelines i will be very grateful.


Dec 22, 2008 at 9:33 PM
I would try to do that with a custom provider. Instead of returning the points you could return a Linestring that is made up by the set of points belonging to a person as Geometry. You could use Theming to colorize them.

hth FObermaier
Dec 22, 2008 at 9:51 PM

Thanks. It looks like a feasible solution. Can you point me to an example how to use Theming?

Dec 22, 2008 at 10:39 PM
I dont have an v2.0 example right now, but I think it is not that much different from v0.9 so it might be a good start to look here:
Styling based on feature data

hth FObermaier