python-osw-validation 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_osw_validation/__init__.py +0 -2
- python_osw_validation/extracted_data_validator.py +2 -6
- python_osw_validation/version.py +1 -1
- {python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/METADATA +7 -6
- {python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/RECORD +8 -8
- {python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/WHEEL +0 -0
- {python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/licenses/LICENSE +0 -0
- {python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/top_level.txt +0 -0
|
@@ -464,9 +464,7 @@ class OSWValidation:
|
|
|
464
464
|
for key in self.dataset_schema_paths:
|
|
465
465
|
if (
|
|
466
466
|
basename == f"{key}.geojson"
|
|
467
|
-
or basename == f"{key}.osw.geojson"
|
|
468
467
|
or basename.endswith(f".{key}.geojson")
|
|
469
|
-
or basename.endswith(f".{key}.osw.geojson")
|
|
470
468
|
):
|
|
471
469
|
return key
|
|
472
470
|
|
|
@@ -52,9 +52,7 @@ def _matches_dataset_filename(basename: str, dataset_key: str) -> bool:
|
|
|
52
52
|
lower_name = basename.lower()
|
|
53
53
|
return (
|
|
54
54
|
lower_name == f"{dataset_key}.geojson"
|
|
55
|
-
or lower_name == f"{dataset_key}.osw.geojson"
|
|
56
55
|
or lower_name.endswith(f".{dataset_key}.geojson")
|
|
57
|
-
or lower_name.endswith(f".{dataset_key}.osw.geojson")
|
|
58
56
|
)
|
|
59
57
|
|
|
60
58
|
|
|
@@ -122,10 +120,8 @@ class ExtractedDataValidator:
|
|
|
122
120
|
if unsupported_files:
|
|
123
121
|
allowed_fmt = ", ".join(allowed_keys)
|
|
124
122
|
allowed_names = (
|
|
125
|
-
f"{{{allowed_fmt}}}.geojson
|
|
126
|
-
f"*.{{{allowed_fmt}}}.geojson
|
|
127
|
-
f"{{{allowed_fmt}}}.OSW.geojson, or "
|
|
128
|
-
f"*.{{{allowed_fmt}}}.OSW.geojson"
|
|
123
|
+
f"{{{allowed_fmt}}}.geojson or "
|
|
124
|
+
f"*.{{{allowed_fmt}}}.geojson"
|
|
129
125
|
)
|
|
130
126
|
self.error = (f"Unsupported .geojson files present: {', '.join(unsupported_files)}. "
|
|
131
127
|
f"Allowed file names are {allowed_names}")
|
python_osw_validation/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.5.
|
|
1
|
+
__version__ = '0.5.2'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python_osw_validation
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: Python library for OSW validation
|
|
5
5
|
Home-page: https://github.com/TaskarCenterAtUW/TDEI-python-lib-osw-validation
|
|
6
6
|
Author: Sujata Misra
|
|
@@ -137,12 +137,10 @@ validator = OSWValidation(
|
|
|
137
137
|
|
|
138
138
|
## Supported filenames
|
|
139
139
|
|
|
140
|
-
The validator accepts
|
|
140
|
+
The validator accepts two filename formats for each dataset type:
|
|
141
141
|
|
|
142
142
|
- `<dataset>.geojson`
|
|
143
143
|
- `*.<dataset>.geojson`
|
|
144
|
-
- `<dataset>.OSW.geojson`
|
|
145
|
-
- `*.<dataset>.OSW.geojson`
|
|
146
144
|
|
|
147
145
|
Where `<dataset>` is one of:
|
|
148
146
|
|
|
@@ -157,13 +155,16 @@ Examples:
|
|
|
157
155
|
|
|
158
156
|
- `nodes.geojson` is valid
|
|
159
157
|
- `gs_metaline_falls_uga.nodes.geojson` is valid
|
|
160
|
-
- `nodes.OSW.geojson` is valid
|
|
161
158
|
- `gs_yarrow_point.edges.geojson` is valid
|
|
162
|
-
- `wa.microsoft.graph.edges.
|
|
159
|
+
- `wa.microsoft.graph.edges.geojson` is valid
|
|
163
160
|
- `roadEdges.geojson` is invalid
|
|
164
161
|
- `roadedges.geojson` is invalid
|
|
165
162
|
- `River._edges_.geojson` is invalid
|
|
166
163
|
|
|
164
|
+
The deprecated `.OSW.geojson` forms are no longer supported. Names such as
|
|
165
|
+
`nodes.OSW.geojson` and `b.graph.edges.OSW.geojson` are rejected as unsupported
|
|
166
|
+
files; rename them to `nodes.geojson` and `b.graph.edges.geojson`.
|
|
167
|
+
|
|
167
168
|
If a dataset uses canonical OSW 0.3 names that start with `opensidewalks.`, then only these exact names are allowed:
|
|
168
169
|
|
|
169
170
|
- `opensidewalks.edges.geojson`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
python_osw_validation/__init__.py,sha256=
|
|
1
|
+
python_osw_validation/__init__.py,sha256=x_04HmbxOT1waMusa1RkeBhUZ_uxpOhFiZNmgNVHm2E,43808
|
|
2
2
|
python_osw_validation/config.py,sha256=NFxqenwuSeQgAW-QIXCTRZV2Bf5OavBtUOr3ZHtSTcw,1260
|
|
3
|
-
python_osw_validation/extracted_data_validator.py,sha256=
|
|
3
|
+
python_osw_validation/extracted_data_validator.py,sha256=6EjE3stETk3wUKFsfX1PO92m2x0e1hsv8GOjD941a2I,6728
|
|
4
4
|
python_osw_validation/geometry_mapping_validator.py,sha256=KscmfgSwTiXbf8IPx-RXuTIXPYY4PHDwvBeb2WmhpVA,14137
|
|
5
5
|
python_osw_validation/helpers.py,sha256=oiKqlGEVJVT5Zcws7h09zdLQOSJx1Vc-DqSu7bCedsA,11546
|
|
6
|
-
python_osw_validation/version.py,sha256=
|
|
6
|
+
python_osw_validation/version.py,sha256=pIxUWQG2brcif6SJXtn4CcMr6f5oY-6lwZ_FJEilJwQ,22
|
|
7
7
|
python_osw_validation/zipfile_handler.py,sha256=jXnP-8O5AAOBapuNF3-XdFVM1MHiPaWpl_wlbX-aqhY,2631
|
|
8
8
|
python_osw_validation/schema/opensidewalks.edges.schema-0.3.json,sha256=yE4K97WEdQBMHlVo5k9uheJ8TzHE6Tfupekxq_uv5Bk,78976
|
|
9
9
|
python_osw_validation/schema/opensidewalks.lines.schema-0.3.json,sha256=AlZuNu4dxEvnnqamHoogg9Y0yZMEyUtB0r854SF0xYo,9326
|
|
@@ -12,8 +12,8 @@ python_osw_validation/schema/opensidewalks.points.schema-0.3.json,sha256=gNkbwtL
|
|
|
12
12
|
python_osw_validation/schema/opensidewalks.polygons.schema-0.3.json,sha256=VzDpHv1ZVT42cAk9n3gsFZjS7WcflQzSbjN-aNIVTYM,16286
|
|
13
13
|
python_osw_validation/schema/opensidewalks.schema-0.3.json,sha256=vyyGzPpqLxr1e5wFfNKzlA1sr6tmhHKM7ntaTk8z5k8,278489
|
|
14
14
|
python_osw_validation/schema/opensidewalks.zones.schema-0.3.json,sha256=j4vjO5JR5LrRieEhoqOl1ftqwEiU7xggAz__s6LQI38,10548
|
|
15
|
-
python_osw_validation-0.5.
|
|
16
|
-
python_osw_validation-0.5.
|
|
17
|
-
python_osw_validation-0.5.
|
|
18
|
-
python_osw_validation-0.5.
|
|
19
|
-
python_osw_validation-0.5.
|
|
15
|
+
python_osw_validation-0.5.2.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
16
|
+
python_osw_validation-0.5.2.dist-info/METADATA,sha256=sb2_LtahX4uIiL-V3Wc-xSL_tGd-ZyEWNm8ax4fF5i0,8675
|
|
17
|
+
python_osw_validation-0.5.2.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
18
|
+
python_osw_validation-0.5.2.dist-info/top_level.txt,sha256=GE81UPcDHEffJCxYu3M_iPz3Dt-O3axB73R5SLm_Veo,22
|
|
19
|
+
python_osw_validation-0.5.2.dist-info/RECORD,,
|
|
File without changes
|
{python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{python_osw_validation-0.5.1.dist-info → python_osw_validation-0.5.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|