comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » map projection polygon problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
map projection polygon problem [message #1864] Wed, 23 March 1994 09:16
ian is currently offline  ian
Messages: 26
Registered: February 1992
Junior Member
I wish to plot little polygons on a map projection using "polyfill".
This works fine except at the edges of the plot where everything
goes haywire. When half the polygon is "around the back" of the planet
the co-ordinates do not get transformed correctly and the polygon
streaks across to the edge of the screen.

To see the problem try this simple program :

--------------------------------------------

pro poly_plot

; set co-ords for polygon

lat = [0,10,0,-10,0]
lon = [-10,0,10,0,-10]

map_set,0,0,/ortho,/cont,/noborder
loadct,5

; plot polygon
polyfill,lon,lat,color=50

; now put polygon at edge of plot

lon = lon + 85.0

polyfill,lon,lat,color=100

end

------------------------------------------------

If someone has an _uncontrived_ solution please post or e-mail it to me.

Thanks

Ian
ian@denali.gsfc.nasa.gov
[Message index]
 
Read Message
Previous Topic: Changing [XY]_SCROLL_SIZE
Next Topic: Re: Structures and Call_External

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 09:51:00 PDT 2025

Total time taken to generate the page: 1.60006 seconds