Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • shp2dta : Error when converting shape boundary files to Stata dataset

    Hi all,

    I am using shp2dta in Stata 14. I am also using Cshapes 2.0 data which maps the borders and capitals of independent states and dependent territories from 1886 to 2019. The data can be found here: https://icr.ethz.ch/data/cshapes/

    I followed the steps indicated in the help section:
    Code:
    ssc install spmap, replace
    ssc install shp2dta
    ssc install geo2xy 
    
    cd "$user/GIS"
    shp2dta using CShapes-2.0, database("CShapes_data") coordinates("Cshapes_coord") genid(_ID)
    But I get the following error message:
    Code:
     fread():   691  I/O error
                   fbufget():     -  function returned error
                  read_shp():     -  function returned error
                     <istmt>:     -  function returned error
    r(691);
    I doubled check the file paths, verified the file permissions and the file's integrity. I thought the issue might be related to my version of Stata but from what I understood shp2dta should work with Stata 14. Does anyone know what I did wrong? Many thanks.
Working...
X