datta07 / INDIAN-SHAPEFILES

Shape files and Geojson files for various categories of India.
MIT License
91 stars 63 forks source link

invalid geometry in districts geojson #10

Open shubhamdutta26 opened 4 days ago

shubhamdutta26 commented 4 days ago

Hello, I am trying to import your awesome maps of India into R using the sf package. When computing centroids for the districts its giving me an error: Loop 74 is not valid: Edge 1639 crosses edge 1650 It seems that the error is occuring here in the district of North & Middle Andaman: ` dtname stname stcode11 dtcode11 year_stat SHAPE_Length SHAPE_Area OBJECTID test Dist_LGD State_LGD geometry

1 North & Middle Andaman ANDAMAN & N… 35 639 2011_c 3176701. 3.65e9 263 NA 632 35 (((92.78642 12.07485, 92…`
datta07 commented 19 hours ago

can you elaborate from which district file (is it Indian districts file or A&N district file) you are getting this error you are getting this error?

shubhamdutta26 commented 19 hours ago

It is happening in the INDIA_DISTRICTS.geojson file.