From: Ted D. <ted...@jp...> - 2005-02-10 17:59:47
|
What I did in the past was to use a heuristic that said something like: if the next point jumps more than 80% (or something like that) of the full map range, then do a linear interpolation to find the point at the boundary and add that to the line. Then split the line and start a new curve on the other side. We probably won't get to working on this until Apr-May but I'll let you know what we come up with. I'll try to set up some type of general purpose functions and then you can decide if they have a place in the basemap module. Ted At 09:52 AM 2/10/2005, Chris Barker wrote: >Ted Drain wrote: >>Jeff, >>One thing I do need to be able to do is to create line plots that "wrap >>around" a map. We generate a lot of ground tracks that use a Mercator >>projection covering the whole globe (x=-180->180, y=-90->90) and if the >>line goes off one edge, we need to wrap it around to the other edge >>instead of drawing a line segment all the way across the page. > >Yes, this really is a pain. If you work out a good solution, please let me >know, or post it to the list. I'd love to have a similar feature in my >wxPython FloatCanvas. > >-Chris > > >-- >Christopher Barker, Ph.D. >Oceanographer > >NOAA/OR&R/HAZMAT (206) 526-6959 voice >7600 Sand Point Way NE (206) 526-6329 fax >Seattle, WA 98115 (206) 526-6317 main reception > >Chr...@no... |