Re: Creating KML error [message #91442 is a reply to message #91439] |
Wed, 15 July 2015 11:49   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 7/15/15 7:38 AM, nata wrote:
> Hi guys,
>
> What am I doing wrong:
>
> plot=plot([!values.f_nan],[!values.f_nan], xrange=[-50,-40], yrange=[70,80])
> ax = plot.axes
> ax[0].hide = 1
> ax[1].hide = 1
> ax[2].hide = 1
> ax[3].hide = 1
>
> poly=polygon([-47,-43,-43,-47,-47],[72.5,72.5,77.5,77.5,72.5 ],/data,color='black')
> poly.save, 'square.kml'
>
> % SAVE: Error writing file Expression must be a structure in this context:
> SMAP.
>
> Even when I try "plot.save, 'square.kml'" I get the same error...
>
> help, !version, /str
> ** Structure !VERSION, 8 tags, length=104, data length=100:
> ARCH STRING 'x86_64'
> OS STRING 'linux'
> OS_FAMILY STRING 'unix'
> OS_NAME STRING 'linux'
> RELEASE STRING '8.4'
> BUILD_DATE STRING 'Sep 27 2014'
> MEMORY_BITS INT 64
> FILE_OFFSET_BITS
> INT 64
>
> Thank you in advance for your help,
> nata
I'm not sure, but it would make sense to me if KML/KMZ output was only
available from MAP.
In any case, a better error message would be useful.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
|
|
|