This project has moved and is read-only. For the latest updates, please go here.

MapInfo vs SharpMap angle-rotation

Feb 2, 2007 at 8:53 AM
First, for information i will quote Oliver's posts about label rotation:
"I Found that RotationColumn accepts only int values like 65, 340, 230, 560 ans it doesn't accept float values like: 316.345, 23.00123
I mean It accepst float value, but the alignment will be wrong."

What I have discovered is that MapInfo rotates labels in the opposite direction, compared to SharpMap (which uses Windows GDI). Speaking more generally, MapInfo stores angle value as like (360-SameAngleInSharpMap).
For example, to show MapInfo's angle=45 correctly in SharpMap, you need to modify the DataSource of the .shp (or whatever file you converted .tab into), so that instead of 45 there would be angle=360-45=315, or just make that angle negative (angle=-45).
I think that it's only MapInfo's issue, since I haven't seen any threads here about incorrect rotation.

Feb 2, 2007 at 1:19 PM
This discussion has been copied to Work Item 7923. You may wish to continue further discussion there.