If you will always be colouring in the same map predefined areas (like counties, or electoral disctricts, for a topical one) rather than arbirary ones, then you might want to consider something simple to deal with like SVG. You prepare the map in a graphics package like Illustrator, save it as SVG. SVG is a XML-based format, so it's text.

If you spend a little time upfront giving the county-outlines a meaniful name or ID ('TX', 'CA') then your colouring-in phase becomes a simple search/replace on a text file, which perl has Several Ways to do.

I believe PDF can be dealt with similarly. If you need a PNG or something eventualy, for a web app, then there are tools around to render SVG to a bitmap format.

Several graphics packages come with pretty decent maps in their clipart, too. CorelDRAW! certainly used to have good outline maps packaged with it.


In reply to Re: Geographical Map by howie
in thread Geographical Map by xorl

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.