mkpnt: Make a point

Description Usage Arguments Value Examples

Description

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-

Usage

1
mkpnt(x = "Wareham, Dorset", y = 0)

Arguments

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

Value

Sf point in British National grid

Examples

1
2
mkpnt(x="Wareham, Dorset")
mkpnt(x=-1,y=52)

dgolicher/giscourse documentation built on May 11, 2019, 3:11 p.m.