create_star: Create a Star object around a central point

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/create_star.R

Description

Create a Star object around a central point

Usage

1
2
create_star(UrbanCenter, BeamWidth = 10000, BeamLength = 70000,
  NSegments = 10, NBeams = 8)

Arguments

UrbanCenter

a SpatialPoint object

BeamWidth

width of each beam in meters

BeamLength

length of each beam in meters

NSegments

number of segments of each beam

NBeams

the number of beams of the star

Details

This function creates a Star object around a given UrbanCenter. It consists of NBeams times NSegments equally sized polygons of length BeamLength/NSegments and width BeamWidth, arranged in NBeams equally spaced beams of length Beamlength. The returned Star is a SpatialPolygonsDataFrame and is unprojected in WGS84 (EPSG:4326). It contains a field "OverallId" which contains unique ids for each segment, the first 6 numbers indicating the beam, the latter 6 numbers indicating the segment.

Value

SpatialPolygonsDataframe

Author(s)

Johannes Mast

See Also

create_beam, create_star_click

Examples

1
create_star_click(UrbanCenter)

JohMast/UrbanStars documentation built on May 28, 2019, 8:58 p.m.