semvec/pypi-packages huggingface dataset:
gps-helper 1.1.5
GPS helper module
License: MIT
Requires Python: >=3.5

![Logo](logo_hi.png)

[![pypi](https://img.shields.io/pypi/v/gps_helper.svg)](https://pypi.python.org/pypi/gps_helper)
[![Docs](https://readthedocs.org/projects/gps-helper/badge/?version=latest)](http://gps-helper.readthedocs.io/en/latest/?badge=latest)
[![travis](https://travis-ci.com/gps-helper/gps-helper.svg?branch=master)](https://travis-ci.com/gps-helper/gps-helper)
[![Coverage Status](https://coveralls.io/repos/github/gps-helper/gps-helper/badge.svg?branch=master)](https://coveralls.io/github/gps-helper/gps-helper?branch=master)

Tools and examples for GPS

## Documentation

Documentation is hosted on [readthedocs](https://gps-helper.readthedocs.io). Interactive 
[Jupyter notebooks](https://gps-helper.readthedocs.io/en/latest/nb_examples.html) are viewable and also included this 
repository.

## Installation

This package is available for download through [pypi](https://pypi.org/project/gps-helper/).

```commandline
$ pip install gps-helper
```

To use the plotting functionality, there are extra requirements.

```commandline
$ pip install gps-helper[plotting]
```

For [matplotlib](https://matplotlib.org/users/installing.html) and [mayavi](https://docs.enthought.com/mayavi/mayavi/installation.html), 
you will need to have backends installed to view the figures.
geojson-validate 0.0.1
Validates and fixes GeoJSON
License: MIT
Requires Python: >=3.8

# geojson-validate

**Validate and fix invalid GeoJSON**   

Ever encountered an invalid geometry error when dealing with GeoJSON? Even if a GeoJSON conforms 
to the GeoJSON specification, some tools or APIs might have issues with it. This Python library shows you 
all possible invalid and problematic issues with your GeoJSON and can fix them automatically.

## Installation

```bash
pip install geojson-validate
```

## Usage

Accepts a GeoJSON FeatureCollection, Feature, Polygon Geometry or MultiPolygon Geometry.

```python
import geojson_validate

geojson = {'type': 'FeatureCollection',
           'features': [{'type': 'Feature', 'geometry':
               {'type': 'Polygon', 'coordinates': [[[-59.758285, 8.367035], ...]]}}]}

geojson_validate.validate(geojson)
```
The result gives the reason and positional index of the invalid geometry:

```json
{"invalid": {"duplicate_nodes": [2]},
 "problematic": {"self_intersection": [0, 2], "crosses_antimeridian": [1]},
 "count_geometry_types": {"Polygon": 2, "MultiPolygon": 1}}
```

## Parameters
To only evaluate specific validation criteria use the parameters `validate(geojson, criteria_invalid, criteria_problematic)`.
For details on all the invalid and problematic GeoJSON criteria see [geojson-invalid-geometry](https://github.com/chrieke/geojson-invalid-geometry).

```
# criteria_invalid
["unclosed", "duplicate_nodes", "less_three_unique_nodes", "exterior_not_ccw", "interior_not_cw", 
"inner_and_exterior_ring_intersect", "crs_defined", "outside_lat_lon_boundaries"]
```
```
# criteria_problematic
["holes", "self_intersection", "excessive_coordinate_precision", "more_than_2d_coordinates", 
"crosses_antimeridian"]
```

## Coming Soon:
- Automatically fixing geometries
- This library is still very early, expect breaking changes