GithubHelp home page GithubHelp logo

archaeology_scripts's Introduction

QGIS Python Scripts for Archaeology

This repository houses Python scripts intended for use within QGIS and the Archaeology sector.

ArchDensity

Description

The ArchDensity script calculates the total area in square meters of archaeological features within a specified excavation area. Additionally, it computes the density of these features within the excavation zone, excluding any invalid geometries during calculation.

Usage

To utilize the ArchDensity script:

  1. Open QGIS and access the Python Console.
  2. Copy and paste the script into the console or save it as a Python file in the QGIS Python directory.
  3. Ensure the necessary QGIS processing modules are installed.
  4. Execute the script and provide inputs for the Excavation Area and Archaeology Area.

Dependencies

  • QGIS (version X.X or later)
  • PyQt5 (QGIS-compatible version)

Transect Generator

Description

The Transect Generator script creates transects within a defined polygon area based on specified intervals and directions. It generates lines that intersect with the polygon layer, creating transects suitable for archaeological surveys or land analysis.

Usage

To generate transects using the script:

  1. Load the polygon layer defining the area in QGIS.
  2. Ensure the script is accessible within the QGIS Python environment.
  3. Invoke the generate_transects function and provide the required parameters: polygon layer name, interval distance, and direction.

Dependencies

  • QGIS (version X.X or later)
  • PyQt5 (QGIS-compatible version)

Example Usage

Here's an example of how to generate transects:

generate_transects("ExcavationArea", 10, "N-S")

archaeology_scripts's People

Contributors

a-graziano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.