OGRLINEREF(1) GDAL OGRLINEREF(1) NAME ogrlineref - Create linear reference and provide some calculations using it. SYNOPSIS ogrlineref [--help] [--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 ] DESCRIPTION The ogrlineref program can be used to: o create a linear reference file from input data o return the "linear referenced" distance for the projection of the input coordinates (point) on the path o return the coordinates (point) on the path according to the "linear referenced" distance o return the portion of the path according to the "linear referenced" begin and end distances The ogrlineref creates a linear reference - a file containing a segments of special length (e.g. 1 km in reference units) and gets coordinates, linear referenced distances or sublines (subpaths) from this file. The utility does not require the M or Z components in the geometry. The results can be stored in any OGR supported format. Also some information is written to the stdout. --help Show this help message and exit --help-general Gives a brief usage message for the generic GDAL commandline options and exit. -progress Show progress. -quiet Suppress all messages except errors and results. -f Select an output format name. The default is to create a shapefile. -dsco = Dataset creation option (format specific) -lco = Layer creation option (format specific). -create Create the linear reference file (linestring of parts). -l The path to input linestring datasource (e.g. the road) -ln The layer name in datasource -lf The field name of unique values to separate the input lines (e.g. the set of roads). -p The path to linear references points (e.g. the road mile-stones) -pn The layer name in datasource -pm The field name of distances along path (e.g. mile-stones values) -pf The field name of unique values to map input reference points to lines. -r The path to linear reference file. -rn The layer name in datasource -o The path to output linear reference file (linestring datasource) -on The layer name in datasource -of The field name for storing the unique values of input lines -s The part size in linear units -get_pos Return linear referenced position for input X, Y -x Input X coordinate -y Input Y coordinate -get_coord Return point on path for input linear distance -m The input linear distance -get_subline Return the portion of the input path from and to input linear positions. -mb The input begin linear distance -me The input end linear distance EXAMPLE This example would create a shapefile (parts.shp) containing a data needed for linear referencing (1 km parts): ogrlineref -create -l roads.shp -p references.shp -pm dist -o parts.shp -s 1000 -progress AUTHOR Dmitry Baryshnikov COPYRIGHT 1998-2024 April 2, 2024 OGRLINEREF(1)