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 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
    sc 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 double checked the file paths, and verified the file permissions as well as 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 for your help.

    PS: I initially posted this message in the Sandbox forum by mistake, apologies for the double posting.
    Last edited by Maia DEBS; 21 Jun 2023, 03:17.
Working...
X