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

Home » Public Forums » archive » Re: map_image edge distortion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: map_image edge distortion [message #63531 is a reply to message #63529] Wed, 12 November 2008 05:37 Go to previous messageGo to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Nov 11, 10:19 pm, David Fanning <n...@dfanning.com> wrote:
> mankoff writes:
>> I'm confused by few simple commands. I'm trying to produce a basic map
>> (for cutting up and putting into Google Maps). It needs to be mercator
>> projection, square, and some multiple of 256x256. I thought the
>> following code might do it:
>
>> data = randomu(foo,64,64)
>> window, 0, xsize=256,
>> ysize=256
>> map_set, 0, 0, /mercator, position=[0,0,1,1]
>> img = map_image( data, xx, yy, xs, ys, /compress )
>> img = bytscl( img )
>> tv, img, xx, yy, XSIZE=xs, YSIZE=ys
>> img = tvrd()
>> write_png, 'map.png', img, r,g,b
>
>> But the resulting PNG has sidebars for some reason. What am I doing
>> wrong?
>
> I think you need to add a NOBORDER keyword to your MAP_SET
> command.
>

Thank you, that definitely helps. But now there is a 1 pixel border on
the left edge only. Am I missing a /I_REALLY_MEAN_IT_NO_BORDER
keyword?

-k.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: SCHOOL LOAN
Next Topic: IDL Workbench Debugging

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

Current Time: Mon Dec 01 12:05:40 PST 2025

Total time taken to generate the page: 3.04468 seconds