Parliamentary Constituency data of India

91 views
Skip to first unread message

Anmol Gupta

unread,
Feb 5, 2024, 1:06:01 PM2/5/24
to datameet
Hi everyone,

Wanted to ask if anyone knew how to obtain the parliamentary constituency data of a particular location from its latitude and longitude in Excel. Any tutorial would help. 

Also, would anyone have shapefiles of updated parliamentary constituencies for the 2024 election? The most recent shapefiles I could find are from 2014 and don't account for delimitation of regions like J&K.

Thank you in advance!

Regards,
Anmol

Nikhil VJ

unread,
Feb 8, 2024, 5:29:19 AM2/8/24
to data...@googlegroups.com
Hi Anmol,

Datameet's maps repo has PC boundaries as of 2019, and I don't know about changes since then (if anyone knows, pls tell):
https://github.com/datameet/maps/tree/master/parliamentary-constituencies

How to obtain from latitude-longitude: Sharing a way to do in QGIS, there's other ways in python etc.

In any case, first step would be to save that excel to CSV format.

QGIS: Layer > Add Layer > Delimited text layer > load the csv
Drag-drop the parliamentary constituencies shapefile onto the map, will be added come as another layer of polygons.
Processing Toolbox > Join Attributes by Location
Choose the point layer at top, the polygon layer at bottom, and check "are within" box in middle.

Run it, and after that the points layer will be having the columns from PC layer, value being the constituency they're in.

--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


--
Datameet is a community of Data Science enthusiasts in India. Know more about us by visiting http://datameet.org
---
You received this message because you are subscribed to the Google Groups "datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datameet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/datameet/b0d6e3bc-5df2-4c62-b0eb-6fcc5e1b1cb3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages