shaoqinglong11 发表于 2015-1-3 16:30
因为按照网友说法,要把shp和dbf文件转化成dta,就必须先放进dictionary变成dtc格式。或者,您知道如何将 ...
按照坛友jiangbeilu提供的帖子中提到:可用shp2dta命令(stata9.0以上版本)将.shp和.dbf文件转换成两个关联的.dta文件。
也就是说直接把.shp和.dbf转换为dta,不用再生产dct再转换。
下载外部命令shp2dta : ssc install shp2dta
help shp2dta 里面有例子说明
To demonstrate the use of shp2dta let's suppose we have two files, asia.dbf and asia.shp, in our
current working directory. Two convert these files to two Stata datasets we type:
. shp2dta using asia, data("asia_data") coor("asia_coordinates")
In the current working directory we now have two files, asia_data.dta and asia_coordinates.dta,
that have the converted data.