Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Creating a kml file

by roboticus (Canon)
on Dec 19, 2012 at 15:55 UTC ( #1009583=note: print w/ replies, xml ) Need Help??


in reply to Creating a kml file

RFMonk:

I just looked over the docs for Geo::KML::PolyMap. It looks like the problem is that you're passing in a single entity, rather than an array of entities. The docs are easy to interpret, because it shows a variably named $entity being created, and then later it shows a variable $entities being the parameter. It's easy to miss the singular to plural form. So it may work if you simply change $entities to [ $entities ] in the call--unless it's going to require more than one entity.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: Creating a kml file
Select or Download Code
Re^2: Creating a kml file
by Lotus1 (Chaplain) on Dec 19, 2012 at 16:01 UTC

    The OP also defines $data in the $entity as a string where the documentation specifies it should be a number.

Re^2: Creating a kml file
by RFMonk (Acolyte) on Dec 19, 2012 at 22:41 UTC
    Thank you very much!!!! Did not see that detail of plural and singular in the variables. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-07-25 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls