Announcement

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

  • Can't import 2011 India district shapefile

    We need a 2011 India district shapefile (N=640 districts). I found a handful around the web (e.g., Survey of India, a different github site, etc.) but have not been able to import any .shp file into stata:

    . shp2dta using India-Districts-2011Census.shp, data(di2011d) coor(di2011c) replace
    India-Districts-2011Census.shp: invalid shape file

    OR:

    . shp2dta using 2011_Dist.shp, data(i2011d) coor(i2011c) replace
    bufget(): 3300 argument out of range
    fbufget(): - function returned error
    read_dbf(): - function returned error
    <istmt>: - function returned error
    r(3300);

    I have stata 14.2 running on Mac OS 10.12.6

    Is there a shapefile (or better stata files) that anybody has used successfully?
    Thanks,
    Reeve Vanneman
    University of Maryland

  • #2
    The likelihood of a Statalist member knowing a shapefile guaranteed to work in Stata is somewhat less than the likelihood of someone reproducing your problem and finding a solution using one of your current shapefiles.

    You have come very close to giving a reproducible example of your problem, should someone want to experiment. What you have omitted is a precise source of one of the many files that fails. Can you perhaps post a URL for an easily-obtainable version of the shapefile that you have confirmed fails in exactly the way you describe?

    Beyond that, perhaps you could take a few moments to review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Comment


    • #3
      found one...

      Comment


      • #4
        India states and districts are here:
        https://github.com/datameet/maps/blo...ps/Boundaries/

        Check the recency and accuracy versus:
        http://censusindia.gov.in/2011census/maps/maps2011.html

        Click image for larger version

Name:	india-map.png
Views:	1
Size:	44.0 KB
ID:	1489937

        Comment

        Working...
        X