# ArcheoCAD

# Presentation

ArcheoCAD is a QGIS plugin that allows creating Polygons, Rectangles, Circles and Ellipses using a layer of points. It can also create polyline features. In order to do this, the Attribute table of the input layer must have a field containing the desired geometry output. The values of this attribute, depending on the output geometry, must be chosen from the list below (case-insensitive)

- Ellipse : e, ellipse, elps, o, oval, ovale

- Cercle : c, circle, cercle, crlc

- Rectangle : r, rectangle, rect

- Polygone : p, polygon, polygone, pg, polyg

- Polyline feature: polyline, polyligne, line, ligne, l, ln, pl

There are a few conditions to meet concerning input points during field survey:

- For circles, 2 points on the circumference and a diameter of the circle;

- For ellipses, 5 points on the circumference (preferably not too close to each other) ;

- For rectangles, 2 points representing the length of the trench.

For general polygons, the topographical points which represent vertices must follow one after another on the perimeter (as if we were drawing the polygon on a paper sheet with a pen). If these points were not taken in the correct order, you can add a “sort field” to the attribute table containing a sort order for the output polygons. On the dialog box, the type of the output layer can be chosen : Polygon or Polyline. If polyline is chosen, all the features, including closed features, will be created as polylines. If polygon is chosen, and the input layer contains both points with polyline and points with polygon geometry, two different layers will be generated : One of type polygon, which will contain the closed features, and one containing the polylines. The second layer will be named by adding the “_Polyline.shp” suffix to the name of the first one.

# Description of dialog boxes

## « Poly-circle-Ellipse » Dialog box

## « Rectangle » Dialog box

The source code is available at:

https://github.com/narimanInrap/ArcheoCAD.git