LandSurveyCodesImport.processing.codification.line_from_points module#

/***********************************************************************

A QGIS plugin

This plugin allows you to easily import data from a land survey (GPS or total station) to draw automatically in a database using a codification (aka Field Codes).

begin : 2018-04-05 git sha : $Format:%H$ copyright : (C) 2018 by Loïc Bartoletti (Oslandia) email : loic.bartoletti@oslandia.com

***********************************************************************/

/***********************************************************************
  • This program is free software; you can redistribute it and/or modify *

  • it under the terms of the GNU General Public License as published by *

  • the Free Software Foundation; either version 2 of the License, or *

  • (at your option) any later version. *

***********************************************************************/

LandSurveyCodesImport.processing.codification.line_from_points.lineFromPoints(points, layerType, parameters)[source]#

Returns a line from the points

points: list of coordinates

Contains at least one point

parameters: list
Codification for the special points on a line:
  1. Arc (3 points consecutively must have this code)

layerType: int

QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)