R wrapper for ogrlineref: create a linear reference
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
)
Logical. Show the usage.
Logical. Show progress.
Logical. Suppress all messages except errors and results.
Character. format_name. Select an output format name. The default is to create a shapefile.
Character. "NAME=VALUE". Dataset creation option (format specific).
Character. "NAME=VALUE". Layer creation option (format specific).
Logical. Create the linear reference file (linestring of parts).
Character. src_line_datasource_name. The path to input linestring datasource (e.g. the road)
Character. layer_name. The layer name in datasource
Character. field_name. The field name of uniq values to separate the input lines (e.g. the set of roads)
Character. src_repers_datasource_name. The path to linear references points (e.g. the road mile-stones)
Character. layer_name. The layer name in datasource.
Character. pos_field_name.The field name of distances along path (e.g. mile-stones values)
Character. field_name. The field name of uniq values to map input reference points to lines
Character. src_parts_datasource_name. The path to linear reference file
Character. layer_name. The layer name in datasource.
Character. dst_datasource_name. The path to output linear reference file (linestring datasource)
Character. layer_name. The layer name in datasource.
Character. field_name. The field name for storing the uniq values of input lines
Numeric. step. The part size in linear units.
Logical. Return linear referenced postion for input X, Y
Numeric. long. Input X coordinate
Numeric. lat. Input Y coordinate
Logical. Return point on path for input linear distance.
Numeric. position. The input linear distance
Logical. Return the portion of the input path from and to input linear positions
Numeric. position. The input begin linear distance.
Numeric. position. The input end linear distance
Logical. If FALSE, perform a brute-force scan if other installs are not found. Default is TRUE.
Logical. Enable verbose execution? Default is FALSE.
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
The ogrlineref program can be used to create a linear reference - a file containing a segments of special length (e.g. 1 km in reference units) and get coordinates, linear referenced distances or sublines (subpaths) from this file. The utility not required the M or Z values in geometry. The results can be stored in any OGR supported format. Also some information writed to the stdout.
This function assumes the user has a working GDAL on their system. If the "gdalUtils_gdalPath" option has been set (usually by gdal_setInstallation), the GDAL found in that path will be used. If nothing is found, gdal_setInstallation will be executed to attempt to find a working GDAL.
# NOT RUN {
# No examples ATM for this function.
# }
Run the code above in your browser using DataLab