Summary
Process OSM data with python 3. This project is mainly motivated by openstreetmap.
Dependencies
Install
You can install osmRoad via pip.
pip install osmRoad
Usage
from osm import parser
from osm import road
parser
load_parse_osm: returnbounds,nodes,waysload_parse_osmxy: different from above, returnnodeswith coodinates
road
extract_connectivity: return the adjecent matrixlil_matrix(without weights)extract_adj: return the adjecent list (without weights)extract_edges: return the edges (without weights)build_graph: return agraphinnetworkx(with weights)
Example
parsed_osm = parser.load_parse_osmxy(r"osm/Beijing.osm")
r = road.build_graph(parsed_osm)
print(nx.dijkstra_path(r, 296314321, 296314277))
parsed_osm = parser.load_parse_osm(r"osm/Beijing.osm")
m = road.extract_adj(parsed_osm)
Metadata
Release files for osmRoad 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osmRoad-0.2.tar.gz | 3.5 kB | Without provenance | Details for osmRoad-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osmRoad-0.2-py3-none-any.whl | Python 3 | none | any | Details for osmRoad-0.2-py3-none-any.whl |
Total release size: 9.8 kB
Release files / osmRoad-0.2.tar.gz
| Download URL | osmRoad-0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c6816cba89a6a830ec1e5adaa7776b3477b35977c51b7df4f9b2dc8cccfe456
|
|
BLAKE2b-256 checksum How to use checksums |
c219747f5c8a60fbf112a94eb4ca772b28d9724cb360287a4be1013485333b51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / osmRoad-0.2-py3-none-any.whl
| Download URL | osmRoad-0.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a4f862211a7d6301cc27393e39737e7f054ec46cbd6a23490fd348e7bfd4dfc
|
|
BLAKE2b-256 checksum How to use checksums |
f2e0d2b5ce7460702b651ed27e7fadef39f086bf98b56593013c92f514d97c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for osmRoad 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.