lawn_point: Create a point

Description Usage Arguments Value See Also Examples

View source: R/point.R

Description

Create a point

Usage

1
lawn_point(coordinates, properties = NULL)

Arguments

coordinates

A pair of points in a vector, list or json, of the form e.g., c(longitude,latitude).

properties

A list of properties. Default: NULL

Value

A data-Feature<(data-Point)>

See Also

Other data functions: lawn_featurecollection(), lawn_feature(), lawn_filter(), lawn_geometrycollection(), lawn_linestring(), lawn_multilinestring(), lawn_multipoint(), lawn_multipolygon(), lawn_polygon(), lawn_random(), lawn_remove(), lawn_sample()

Examples

1
2
3
4
5
6
7
lawn_point(c(-74.5, 40))
lawn_point(list(-74.5, 40))
lawn_point('[-74.5, 40]')
lawn_point(c(-74.5, 40), properties = list(name = 'poly1', population = 400))

# Make a FeatureCollection
lawn_featurecollection(lawn_point(c(-74.5, 40)))

lawn documentation built on Jan. 6, 2021, 5:07 p.m.