Skip to content

Commit

Permalink
Fixing documentation and adding classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
whubsch committed Jul 28, 2024
1 parent 1520284 commit 52ab656
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
![PyPI - Version](https://img.shields.io/pypi/v/overturetoosm)
![Pepy Total Downlods](https://img.shields.io/pepy/dt/overturetoosm)

This Python project translates objects from the Overture maps schema to the OpenStreetMap (OSM) tagging scheme. The goal is to provide a seamless way to convert map data from Overture's format to a format that can be utilized within the OSM ecosystem. The package currently only supports Overture's `places` and `buildings` layers. You can improve the Overture categorization that this package uses by editing [the Overture categories page](https://wiki.openstreetmap.org/wiki/Overture_categories) on the OSM Wiki or submitting a pull request to the [tags.json](scripts/tags.json) file.
This Python project translates objects from the Overture maps schema to the OpenStreetMap (OSM) tagging scheme. The goal is to provide a seamless way to convert map data from Overture's format to a format that can be utilized within the OSM ecosystem. The package currently only supports Overture's `places` and `buildings` layers. You can improve the Overture categorization that this package uses by editing [the Overture categories page](https://wiki.openstreetmap.org/wiki/Overture_categories) on the OSM Wiki or submitting a pull request to the [tags.json](https://github.com/whubsch/overturetoosm/blob/main/scripts/tags.json) file.

> [!NOTE]
> Use of this package does not absolve you from following OSM's [import guidelines](https://wiki.openstreetmap.org/wiki/Import/Guidelines).
Expand All @@ -20,7 +20,7 @@ This Python project translates objects from the Overture maps schema to the Open
## Features

- Translate Overture map places to OSM tags.
- Handle various map object types, including roads, buildings, and points of interest.
- Handle various map object types, including buildings and points of interest.
- Ensure compatibility with OSM data structures and conventions.

## Usage
Expand All @@ -37,7 +37,7 @@ The documentation for our package is available online at our [documentation page

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.
This project is licensed under the MIT License. See the [LICENSE](https://github.com/whubsch/overturetoosm/blob/main/LICENSE.txt) file for details.

## See also

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ authors = [{ name = "Will", email = "wahubsch@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: Hatch",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
]
dependencies = ["pydantic"]

Expand Down
9 changes: 5 additions & 4 deletions src/overturetoosm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""`overturetoosm` is a Python package to convert objects tagged in the
Overture schema for use in OSM. Only Overture's `places` and `buildings`
layers are currently supported.
"""
# SPDX-FileCopyrightText: 2024-present Will <wahubsch@gmail.com>
#
# SPDX-License-Identifier: MIT
Links:
* [Project GitHub](https://github.com/whubsch/overturetoosm)
* [Documentation](https://whubsch.github.io/overturetoosm/)
* [PyPI](https://pypi.org/project/overturetoosm/)
"""

from .places import process_place
from .buildings import process_building
Expand Down
2 changes: 1 addition & 1 deletion src/overturetoosm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def process_geojson(
Example usage:
```python
import json
from overturetoosm.places import process_geojson
from overturetoosm import process_geojson
with open("overture.geojson", "r", encoding="utf-8") as f:
contents: dict = json.load(f)
Expand Down

0 comments on commit 52ab656

Please sign in to comment.