gdalUtils (version 2.0.1.5)

ogrlineref: ogrlineref

Description

R wrapper for ogrlineref: create a linear reference

Usage

ogrlineref(help_general, progress, quiet, f, dsco, lco, create, l, ln, lf, p,
  pn, pm, pf, r, rn, o, on, of, s, get_pos, x, y, get_coord, m, get_subline, mb,
  me, ignore.full_scan = TRUE, verbose = FALSE)

Arguments

help_general
Logical. Show the usage.
progress
Logical. Show progress.
quiet
Logical. Suppress all messages except errors and results.
f
Character. format_name. Select an output format name. The default is to create a shapefile.
dsco
Character. "NAME=VALUE". Dataset creation option (format specific).
lco
Character. "NAME=VALUE". Layer creation option (format specific).
create
Logical. Create the linear reference file (linestring of parts).
l
Character. src_line_datasource_name. The path to input linestring datasource (e.g. the road)
ln
Character. layer_name. The layer name in datasource
lf
Character. field_name. The field name of uniq values to separate the input lines (e.g. the set of roads)
p
Character. src_repers_datasource_name. The path to linear references points (e.g. the road mile-stones)
pn
Character. layer_name. The layer name in datasource.
pm
Character. pos_field_name.The field name of distances along path (e.g. mile-stones values)
pf
Character. field_name. The field name of uniq values to map input reference points to lines
r
Character. src_parts_datasource_name. The path to linear reference file
rn
Character. layer_name. The layer name in datasource.
o
Character. dst_datasource_name. The path to output linear reference file (linestring datasource)
on
Character. layer_name. The layer name in datasource.
of
Character. field_name. The field name for storing the uniq values of input lines
s
Numeric. step. The part size in linear units.
get_pos
Logical. Return linear referenced postion for input X, Y
x
Numeric. long. Input X coordinate
y
Numeric. lat. Input Y coordinate
get_coord
Logical. Return point on path for input linear distance.
m
Numeric. position. The input linear distance
get_subline
Logical. Return the portion of the input path from and to input linear positions
mb
Numeric. position. The input begin linear distance.
me
Numeric. position. The input end linear distance
ignore.full_scan
Logical. If FALSE, perform a brute-force scan if other installs are not found. Default is TRUE.
verbose
Logical. Enable verbose execution? Default is FALSE.

Details

This is an R wrapper for the 'ogrlineref' function that is part of the Geospatial Data Abstraction Library (GDAL). It follows the parameter naming conventions of the original function, with some modifications to allow for more R-like parameters. For all parameters, the user can use a single character string following, precisely, the gdalinfo format (http://gdal.org/ogrlineref.html), or, in some cases, can use R vectors to achieve the same end.

The utility can be used for:

  • create linear reference file from input data
return the "linear referenced" distance for the projection of the input coordinates (point) on the path return the coordinates (point) on the path according to the "linear referenced" distance return the portion of the path according to the "linear referenced" begin and end distances

References

http://www.gdal.org/ogrlineref.html

Examples

Run this code
# No examples ATM for this function.

Run the code above in your browser using DataCamp Workspace