A program for splitting a large AOI into smaller tasks.
Project description
fmtm-splitter
This is a program to split polygons into tasks using a variety of algorythms. It is a class that can be used by other projects, but also a standalone program. It was originally developed for the FMTM project, but then converted so it can be used by multiple projects.
The class takes GeoJson Polygon as an input, and returns a GeoJson file Multipolygon of all the task boundaries.
Split By Square
The default is to split the polygon into squares. The default dimension is 50 meters, but that is configurable. The outer square are clipped to the AOI boundary.
Split By Feature
The split by feature uses highway data extracted from OpenStreetMap, and uses it to generate non square task boundaries. It can also be adjusted to use the number of buildings in a task to adjust it's size.
Custom SQL query
It is also possible to supply a custom SQL query to generate the tasks.
The fmtm-splitter program
options:
-h, --help show this help message and exit
-v, --verbose verbose output
-o OUTFILE, --outfile OUTFILE Output file from splitting
-m METERS, --meters METERS Size in meters if using square splitting
-b BOUNDARY, --boundary BOUNDARY Polygon AOI
-s SOURCE, --source SOURCE Source data, Geojson or PG:[dbname]
-c CUSTOM, --custom CUSTOM Custom SQL query for database]
This program splits a Polygon (the Area Of Interest) The data source for existing data can'be either the data extract used by the XLSForm, or a postgresql database.
examples:
fmtm-splitter -b AOI
fmtm-splitter -v -b AOI -s data.geojson
fmtm-splitter -v -b AOI -s PG:colorado
Where AOI is the boundary of the project as a polygon
And OUTFILE is a MultiPolygon output file,which defaults to fmtm.geojson
The task splitting defaults to squares, 50 meters across
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 fmtm-splitter-0.1.0.tar.gz
.
File metadata
- Download URL: fmtm-splitter-0.1.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cedd11b1013579d2958e9bd119e4ea8a4d79c5426e649512fff78757065c1be |
|
MD5 | cfc2717b0223f9035010353d865732f5 |
|
BLAKE2b-256 | abd805d426f6197c31d7c4775713034e1ab3e8788c2d19d103f8f6f67f6c16cc |
File details
Details for the file fmtm_splitter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fmtm_splitter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20ee1d3bae0e8345a8af5e4621f592a7fd8a4f1ee4a0c78d6d834c0832239cd2 |
|
MD5 | 3b86c0618290995ced6500be3dce3093 |
|
BLAKE2b-256 | 5d361e93ec69c96a999d8ba0f7d4cd25a7352949c623ca4806c3512c33c5dca2 |