It is because the data doesn't know it is sorted.
Add -sort _ID order- before you save the data.
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Daniel Lawson
> Sent: Monday, January 31, 2005 4:24 PM
> To: [email protected]
> Subject: st: Getting error message when using tmap
>
> Dear Statalisters,
>
> When I use tmap using a coordinate file I created from Census geography
> data, I consistently get an error message saying ``master data not
> sorted''
> Does anyone have any thoughts as to why I get this error from the
> following script? When I use Scott Merryman's find county-level maps,
> I do not have this problem; when I use SuperPUMA maps that I generated
> from the Census bureau's geography data, I get this error. I imagine
> this means that the problem is in how my polygon data are sorted, but I
> cannot figure out what the difference is between the setup for my data
> and Scott Merryman's. Does anyone have any suggestions?
>
>
> clear
> use http://solidarity.flanner.nd.edu/data/SPUMA.dta
> save SPUMA.dta
> clear
> set obs 9
> gen _ID = _n
> gen data = uniform()
> tmap chor data, id(_ID) map(SPUMA.dta)
>
> Thank you,
> Daniel Lawson
>
> *
> * 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/
*
* 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/