A few options come to mind. It's not clear whether your final output will be as vector or bitmap, but either way you could just use imagemagick: translate the latitude and longitude into coordinates relative to the size of your image and then drop a symbol in at that point. You can then output the final image in whatever form you like (including eps, with help from ghostscript, but afaik only bitmap files in eps format, not true vector files).

or if this for the web, it might be easier just to output a set of coordinates and read them into a flash movie, with a bit of scripting there to put symbols in the right places.

if the goal is vector artwork for print, it's a bit harder. You could look into the various pdf modules, which will give a file that illustrator can read natively but which you'd have to translate to get into anything but the latest version of quark.

a better option might be to use adobe's the W3C's SVG format. There's a set of modules that will allow you to build the xml-based files it uses: it looks ideal for symbol placement, but would probably need to be combined with readymade files if complex backgrounds are involved (which ought to be easy, given the nested structure of the file). Again, translation would be required before use in print.

SVG boosterism from adobe, more restrained overview from xml.com.


In reply to Re: vector graphics and latitude and longitude and Perl .. by thpfft
in thread vector graphics and latitude and longitude and Perl .. by Alex the Serb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.