Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Europe maps


From   Ulrich Kohler <kohler@wz-berlin.de>
To   psalsas@londecon.co.uk
Subject   st: Re: Europe maps
Date   Wed, 20 Apr 2005 12:48:58 +0200

Pau Salsas wrote:
> Uli, thanks a lot for your help.
>
> >You can produce maps with the boundary-file anyway if you set up the
> > master data by hand.
>
> I don't know how to do this.

Use the Stata Program -mif2dta- to produce the boundary dta File. 

To produce the nonsens master file simply proceed as follows

. set obs <number>

where <number> is the number of polygons in the boundary file. 

. gen id = _n 

This makes the idenitier variable which correspond to the _ID variable in the 
boundary file.

. gen xyz = uniform()

This makes an arbitrary quantitative variable to be drawn in the map.

. tmap choropleth xyz, id(id) map(boundary-file)

This produces the arbitrary non-sense map ... 

> >We made an arbitrary nonsense master file and got a nice European map (as
> > long as you don't mind that Turkey is not fully drawn).
>
> Could you send those *.dta over? Thanks.

No. We just tried it out and decided not to follow this path. Mainly because 
the boundary file did not contain Turkey. We did not kept a copy of it. 

> Is there a way of buying other mif and mid maps?

I don't know.

Uli

> -----Original Message-----
> From: Ulrich Kohler [mailto:kohler@wz-berlin.de]
> Sent: 20 April 2005 10:35
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: tmap-Europe
>
> Pau Salsas wrote:
> > I have read about the convenient tmap command (by Maurizio Pisati).
> > I am interested in geographic displays for political EU-25 (including the
> > 10 New Member States). However, I am unable to find the relevant *.mif
> > and *.mid files.  Is this something that is publicly available or we need
> > to buy it?.  If so, where does one buy this and what is exactly required
> > (i.e. do I have to ask only for the *.mif and *.mid data files of
> > Europe?).
>
> We have found a *.mif and *.mid file on  the somewhat suspicous side
>
> ftp://216.36.69.75/examples/
>
> and we were also able to produce a map with tmap from that files. However
> note that -mif2dta- gives an error message after producing the
> boundary-file. That is, the master-file is not produced. Somewhat seems to
> be wrong with the mid file from the side above.
>
> You can produce maps with the boundary-file anyway if you set up the master
> data by hand. We made an arbitrary nonsense master file and got a nice
> European map (as long as you don't mind that Turkey is not fully drawn).
>
> Getting a real master file is somewhat more complicated, as there are above
> 2000 polygons (mainly because of the many islands at the norwegian coast)
> in the boundary file and one somehow needs to find out which polygons
> belongs to one country.
>
> uli

-- 
kohler@wz-berlin.de
+49 (030) 25491-361


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index