Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.47 KB

Vector Processing Tools

Overview

This repository contains two Python scripts designed for processing shapefiles:

  1. Polygon Splitter: This script splits polygons with a vertex count greater than or equal to 500 while retaining their properties in the output file.
  2. Polygon Simplifier: This script simplifies geometries in a shapefile by reducing the vertex count of polygons while preserving their shape using Ramer-Douglas-Peucker algorithm.

Both scripts leverage the powerful geopandas library, along with shapely for geometric operations and tqdm for progress visualization.

Requirements

To run these scripts, you need an Anaconda or Miniconda environment with the following dependencies:

  • Python 3.9
  • GDAL
  • Shapely
  • TQDM
  • GeoPandas

Installation Steps

  1. Install Anaconda/Miniconda: If you haven't installed Anaconda or Miniconda, download and install it from the official website.

  2. Create a New Conda Environment: Open a terminal or Anaconda Prompt and create a new conda environment:

    conda create -n geospatial_tools python=3.9 gdal geopandas shapely tqdm
  3. Activate the Conda Environment:

    conda activate geospatial_tools
    

Notes:

  • You can customize this template further based on your project's specific details or additional instructions you might want to include.

Let me know if you need any further modifications or additional sections!