LandSurveyCodesImport.processing.codification.geom_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.geom_from_points.circle2points(points, layerType)[source]#
Returns a circle from two points
- points: list of coordinates
Must contain two points
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.circle3points(points, layerType)[source]#
Returns a circle from three points
- points: list of coordinates
Must contain three points
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.circleCenterDiameter(points, layerType, parameters)[source]#
Returns a circle from a point and a diameter
- points: list of coordinates
Must contain only one point
- parameters: list of number
Must contain only one number. It’s the diameter of the circle.
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.circleCenterRadius(points, layerType, parameters)[source]#
Returns a circle from a point and a radius
- points: list of coordinates
Must contain only one point
- parameters: list of number
Must contain only one number. It’s the radius of the circle.
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.rectangle2PointsHeight(points, layerType, parameters)[source]#
Returns a rectangle from two points and a height
- points: list of coordinates
Must contain two points
- parameters: list of number
Must contain only one number. It’s the height of the rectangle.
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.rectangle3PointsDistance(points, layerType)[source]#
Returns a rectangle from three points (third point is the distance from second point)
- points: list of coordinates
Must contain two points
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)
- LandSurveyCodesImport.processing.codification.geom_from_points.rectangle3PointsProjected(points, layerType)[source]#
Returns a rectangle from three points (distance is the projection of the third point on the segment p1 - p2)
- points: list of coordinates
Must contain two points
- layerType: int
QGIS identifiant of the layer type (0: Point, 1: LineString, 2: Polygon)