I am trying to match latitude and longitude coordinates from a survey with their associated UK parliamentary constituencies.
To do so, I am under the impression I need to use the packages, "shp2dta" and "geoinpoly".
I've obtained the constituency shapefile here:
https://geoportal.statistics.gov.uk/...2c2ebeab92c0_2
I then went about converting it into a .dta format using shp2dta using the follwing command:
Code:
shp2dta using Westminster_Parliamentary_Constituencies__December_2017__Boundaries_UK.shp, database(A) coordinates(COORD) genid(ID)
This creates a promblem when I try to match my list of survey coordinates, with the UK parliamentary data. When I run the command which I hoped would work but obviously doesn't - i.e. the following:
Code:
geoinpoly lat long using coordinates
Y (latitude) must be between -90 and 90 in coordinates file
0 Response to Invalid Coordinates Using shp2dta
Post a Comment