mkpnt.Rd
This is a quick utility function that feeds into a workflow It takes either a string or two numbers If a string is provided the position is based on geocoding If x and y are provided they are assumed to be lon lat, (or lat lon) As this is just for the UK we can switch if they are typed in the wrong order by testing if x > y-
mkpnt(x = "Wareham, Dorset", y = 0)
x | If x is a string then the Geocoding is used to find the centre |
---|---|
y | If x and y are provided as numbers they are assumed to be lon and lat |
Sf point in British National grid
# NOT RUN { require(giscourse) conn<-connect() ## Geocoding mkpnt(x="Wareham, Dorset") ## Or for Longitude and lattitude mkpnt(x=-1,y=52) disconnect() # }