GA tool for validating geospatial data with topology checks, coordinate system validation, and more.
Project description
Geospatial-Data-Validation-Tool
Overview
The Geospatial Data Validation Tool is designed to facilitate the validation and verification of geospatial datasets. This tool helps ensure the quality and consistency of geospatial data through various checks and validations. It supports common geospatial formats such as Shapefiles and GeoJSON.
Features
-
Topology Checks
- Detect overlapping polygons, gaps, or slivers.
- Check for self-intersecting geometries.
-
Coordinate System Validation
- Verify that datasets use consistent coordinate reference systems (CRS).
- Offer automatic re-projection options.
-
Data Completeness
- Identify missing attributes or incomplete records.
- Validate attribute data types and value ranges.
-
Error Reporting
- Generate detailed reports with visualizations of detected issues.
- Provide recommendations for fixing errors.
-
Input/Output Formats
- Support for common geospatial formats including Shapefiles, GeoJSON, and others.
Installation
To install the tool, clone this repository and install the required dependencies using pip:
git clone https://github.com/yourusername/Geospatial-Data-Validation-Tool.git
cd Geospatial-Data-Validation-Tool
conda env create -f environment.yml
conda activate geovalidator
Usage
Load and Validate Geospatial Data
To load a GeoJSON file and perform validations, use the following script:
import geopandas as gpd
from geovalidator.validators.topology import detect_overlaps, detect_gaps, detect_slivers, check_self_intersection
# Load the GeoJSON file
file_path = 'path/to/your/file.geojson'
gdf = gpd.read_file(file_path)
# Apply validation functions
overlapping_polygons = detect_overlaps(gdf)
gaps = detect_gaps(gdf)
slivers = detect_slivers(gdf, area_threshold=0.01) # Adjust area_threshold as needed
self_intersections = check_self_intersection(gdf)
# Print results
print("Overlapping Polygons:")
print(overlapping_polygons)
print("\nGaps:")
print(gaps)
print("\nSlivers:")
print(slivers)
print("\nSelf-Intersecting Geometries:")
print(self_intersections)
Contact
Software Developer
License and Distribution
Geospatial-Data-Validation-Tool is distributed by BillyZ under the terms of the {type of license you choose} License. See LICENSE in this directory for more information.
Privacy & Terms of Use
Geospatial-Data-Validation-Tool abides to all of BillyZ's privacy and terms of use as described at https://ashmall.com/Privacy-Terms-of-Use.html.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poly_validator-0.1.0.tar.gz
.
File metadata
- Download URL: poly_validator-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d154c60af85865a7d95b95e5e5505c7b3f3967b05c0de6b36f0eaf324b12a8d |
|
MD5 | 48836fdc321f9604c52b129f2f85e2cf |
|
BLAKE2b-256 | 796ce1d0b9c8a057dad142c6f3c71d5b23263b56f2d2e3920fab95bcf9fc37b6 |
File details
Details for the file poly_validator-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: poly_validator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3aa9c734ac5acdcc9bb51245ab02dc1ee38776f26847e84c7363b263c0bba7b |
|
MD5 | f8b24f64a7d4c509d454e8cec3702705 |
|
BLAKE2b-256 | abf38b097e73186d389811c47fa215b2da70bece57dcba327e9220a56bdf2074 |