This project is read-only.

Drawing across dateline

Aug 6, 2014 at 9:47 PM
Edited Aug 8, 2014 at 7:00 PM
I have a program that needs to be able to draw lines across the the international dateline. Is that supported by the new datelinecrossingmap? I can't seem to make it work.

Edit: Here is an example of what we would like to work across the dateline
Aug 6, 2014 at 9:58 PM
The Dateline crossing map only works correctly with the WGS84 datum Mercator projection. Are you using the this projection?
Aug 6, 2014 at 10:00 PM
I am using DotSpatial.Projections.Proj4Datum.WGS84.ToString() is that correct?
Aug 6, 2014 at 10:04 PM
Edited Aug 6, 2014 at 10:05 PM
Here is an example of how it looks

I would like those lines to cross the dateline instead of going across the other way.
Aug 8, 2014 at 7:01 PM is a snapshot of what we would like to work drawing across the dateline. We would also like to be able to rotate the map and print the map following legs.
Aug 11, 2014 at 8:04 PM
So I am going to hack this together myself.

I am going to detect when a line will cross the 180 ,-180 line and then draw two lines instead which each one going up to the edge of the line.

For symbols I found I can draw them twice one on the left and once on the right. You can actually draw at -181 or even -190 lat and long and each one will make up half.
Aug 11, 2014 at 9:25 PM
Ah now I understand, I think the dateline crossing map doesn't support that. Your hack would probably be the best thing for you to do at this point.