- Home
- CRAN
**stplanr**: Sustainable Transport Planning**buff_geo**: Create a buffer of n metres for non-projected 'geographical'...

# Create a buffer of n metres for non-projected 'geographical' spatial data

### Description

Solves the problem that buffers will not be circular when used on non-projected data.

### Usage

1 |

### Arguments

`shp` |
A spatial object with a geographic CRS (WGS84) around which a buffer should be drawn |

`width` |
The distance (in metres) of the buffer |

`...` |
Arguments passed to rgeos::gBuffer() |

`silent` |
A binary value for printing the CRS details (default: FALSE) |

### Details

Returns a

### Examples

1 2 3 4 5 | ```
data("routes_fast")
sp::proj4string(routes_fast) <- CRS("+init=epsg:4326")
buff <- buff_geo(routes_fast, width = 100)
plot(buff)
plot(routes_fast, add = TRUE)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- angle_diff: Calculate the angular difference between lines and a...
- bb2poly: Convert a bounding box to a SpatialPolygonsDataFrame
- bbox_scale: Scale a bounding box
- buff_geo: Create a buffer of n metres for non-projected 'geographical'...
- calc_catchment: Calculate catchment area and associated summary statistics.
- calc_catchment_sum: Calculate summary statistics for catchment area.
- calc_moving_catchment: Calculate summary statistics for all features independently.
- calc_network_catchment: Calculate catchment area and associated summary statistics...
- cents: SpatialPointsDataFrame of home locations for flow analysis.
- crs_select_aeq: Select a custom projected CRS for the area of interest
- cyclestreet_pat: Retrieve personal access token.
- decode_gl: Decode Google polyline compressed string
- dist_google: Return travel network distances and time using the Google...
- dl_stats19: Download Stats19 data
- find_network_nodes: Find graph node ID of closest node to given coordinates
- flow: data frame of commuter flows
- flowlines: SpatialLinesDataFrame of commuter flows
- format_stats19_ac: Format UK 'Stats19' road traffic casualty data
- format_stats19_ca: Format UK 'Stats19' road traffic casualty data
- format_stats19_ve: Format UK 'Stats19' road traffic casualty data
- gclip: Crops spatial object x to the bounding box of spatial object...
- gprojected: Perform GIS functions on a temporary, projected version of a...
- graphhopper_pat: Retrieve personal access token.
- gsection: Function to split overlapping SpatialLines into segments
- gtfs2sldf: Import GTFS shapes and route data to SpatialLinesDataFrame.
- is_linepoint: Identify lines that are points
- islines: Do the intersections between two geometries create lines?
- line2df: Convert SpatialLinesDataFrame objects to a data.frame with...
- line2points: Convert a SpatialLinesDataFrame to points
- line2route: Convert straight SpatialLinesDataFrame from flow data into...
- line_bearing: Find the bearing of straight lines
- lineLabels: Label SpatialLinesDataFrame objects
- line_midpoint: Find the mid-point of lines
- locate2spdf: Return SpatialPointsDataFrame with located points from OSRM...
- mapshape: Simplify geometry of spatial objects with the mapshaper...
- mapshape_available: Does the computer have mapshaper available?
- nearest2spdf: Return SpatialPointsDataFrame with nearest street from OSRM...
- nearest_cyclestreets: Generate nearest point on the route network of a point using...
- nearest_google: Generate nearest point on the route network of a point using...
- nearest_osm: Generate nearest point on the route network of a point from...
- n_vertices: Retrieve the number of vertices from a SpatialLines or...
- od2line: Convert flow data to SpatialLinesDataFrame
- od2odf: Extract coordinates from OD data
- od_dist: Quickly calculate Euclidean distances of od pairs
- od_radiation: Function that estimates flow between points or zones using...
- onewaygeo: Aggregate flows so they become non-directional (by geometry -...
- onewayid: Aggregate ods so they become non-directional, e.g. by summing...
- overline: Convert series of overlapping lines into a route network
- plot-SpatialLinesNetwork-ANY-method: Plot a SpatialLinesNetwork
- points2flow: Convert a series of points into geographical flows
- points2line: Convert a series of points, or a matrix of coordinates, into...
- points2odf: Convert a series of points into a dataframe of origins and...
- read_stats19_ac: Import and format UK 'Stats19' road traffic casualty data
- read_stats19_ca: Import and format UK 'Stats19' road traffic casualty data
- read_stats19_ve: Import and format UK 'Stats19' road traffic casualty data
- read_table_builder: Import and format Australian Bureau of Statistics (ABS)...
- reproject: Reproject lat/long spatial object so that they are in units...
- route_cyclestreet: Plan a single route with CycleStreets.net
- route_graphhopper: Plan a route with the graphhopper routing engine
- routes_fast: SpatialLinesDataFrame of commuter flows on the travel network
- routes_slow: SpatialLinesDataFrame of commuter flows on the travel network
- route_transportapi_public: Plan a single route with TransportAPI.com
- SpatialLinesNetwork: Create object of class SpatialLinesNetwork from...
- SpatialLinesNetwork-class: An S4 class representing a (typically) transport network
- stplanr-package: *stplanr: Sustainable Transport Planning with R*
- summary-SpatialLinesNetwork-method: Print a summary of a SpatialLinesNetwork
- sum_network_routes: Summarise shortest path between nodes on network
- table2matrix: Return Matrix containing travel times between origins and...
- toptail: Clip the first and last n metres of SpatialLines
- toptail_buff: Clip the beginning and ends SpatialLines to the edge of...
- toptailgs: Clip the first and last n metres of SpatialLines
- update_line_geometry: Update line geometry
- viaroute: Query OSRM service and return json string result
- viaroute2sldf: Convert json result of OSRM routing query to...
- weightfield: Get or set weight field in SpatialLinesNetwork
- writeGeoJSON: Write to geojson easily
- zones: SpatialPolygonsDataFrame of home locations for flow analysis.