comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Mapping countries
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Mapping countries [message #51701] Tue, 05 December 2006 11:54
Pete Warner is currently offline  Pete Warner
Messages: 14
Registered: July 2006
Junior Member
There are country shapefiles included with IDL.

IDL63\resource\maps\shape\country.shp
IDL63\resource\maps\shape\cntry02.shp

The second is at a higher resolution.


On Dec 4, 3:31 pm, David Fanning <n...@dfanning.com> wrote:
> Pawan writes:
>> I am trying to fill each country with different color in IDL and right
>> now I have no clue how to do it?
>> I know the map_set and can plot border of each country or can fill
>> color to entire continents but I do not know how to fill countries with
>> different colors?You will have to use shapefiles:
>
> http://www.dfanning.com/map_tips/shapefile.html
>
> I'm sure there are free country files. I would just
> do a Google search. Then, DRAWSTATES could probably
> be immediate adapted for this purpose.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Mapping countries [message #51733 is a reply to message #51701] Mon, 04 December 2006 12:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Pawan writes:

> I am trying to fill each country with different color in IDL and right
> now I have no clue how to do it?
> I know the map_set and can plot border of each country or can fill
> color to entire continents but I do not know how to fill countries with
> different colors?

You will have to use shapefiles:

http://www.dfanning.com/map_tips/shapefile.html

I'm sure there are free country files. I would just
do a Google search. Then, DRAWSTATES could probably
be immediate adapted for this purpose.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: The opposite of David's 15lbs tome
Next Topic: Re: A Programmer's Education

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:49:33 PDT 2025

Total time taken to generate the page: 0.00799 seconds