Skip to main content

CLI tool to convert TIF files to GeoJSON with automatic mask generation using Meta AI's Segment Anything Model (SAM)

Project description

TIF to GeoJSON Converter

A CLI tool that converts TIF files to GeoJSON format with automatic mask generation.

Installation

pip install ortho-masker

Usage

# Basic usage
ortho-masker input.tif output.geojson

# With options
ortho-masker input.tif output.geojson --threshold 0.5 --simplify 0.01

Options

  • --threshold: Threshold for mask generation (default: 0.5)
  • --simplify: Simplification tolerance for geometries (default: 0.01)
  • --band: Band index to use for mask generation (default: 1)
  • --help: Show help message

Development

Setup

git clone https://github.com/nickmccarty/ortho-masker.git
cd ortho-masker
pip install -e ".[dev]"

Running Tests

pytest

Code Formatting

black src/ tests/

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orthomasker-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orthomasker-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file orthomasker-0.1.0.tar.gz.

File metadata

  • Download URL: orthomasker-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for orthomasker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9f01b781de76ff8ec8d80fb185ed4c4ef48dbbf3eb1225fe2ba04162b0681c2f
MD5 1f3c40f034e6b8b24a3da83e3def3e52
BLAKE2b-256 e174bf6a0bfa03aaa8a436bf390fb50e34c306c766d4f161f0d693d876348be6

See more details on using hashes here.

File details

Details for the file orthomasker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: orthomasker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for orthomasker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4103d7427192fafd8ac955994a51be4d63ec831c99b86faadfb772ef6f83b955
MD5 19ae0a35db8677faf071e8dc553b9cad
BLAKE2b-256 eba03201b991974edf6e005a3cd8124f017086d73352542357de081f68e23bf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page