|
Posted by Miguel Cruz on 07/29/06 18:20
usenet@isotopeREEMOOVEmedia.com wrote:
> Thanks for the reply. But I think GIS is beyond the need for this
> purpose. I don't want to plot points or regions on the globe. I
> just need to color in (on the fly) predefined sections of an
> otherwise static image. The fact that it's a map of political
> boundaries is essentially irrelevant.
>
> I suppose that what I need is more like paint-by-numbers, or a coloring book.
Two options spring to mind:
1) Create a bitmap image of the map in which you have good solid borders
between the states. Then you can just use imagefilltoborder() to paint
each state. You'll just need to identify a single set of coordinates
that sit within each state.
2) Put each of the states in separate image files, then when you want to
draw one of them on your map, use imagefilter() to "colorize" it to the
desired color, then overlay it onto your master map image. This is
probably a better approach overall as you will have more control over
the appearance. But it's more work.
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|