Skip to content

Commit f155d86

Browse files
committed
Fixed zipfile issue
- Fixed zipfile issue (No .geojson files found in the specified directory or its subdirectories.) - Updated package version
1 parent 5d36ca0 commit f155d86

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

CHANGELOG.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
# Change log
22

3-
### 0.0.1
4-
- Initial version of python_osw_validation package.
5-
6-
### 0.0.2
7-
- Updated package Unit test cases.
8-
- Updated README file
9-
10-
### 0.0.3
11-
- Added schema file to package
12-
13-
### 0.0.4
14-
- Points are not required for a valid OSW dataset
15-
16-
### 0.0.5
17-
- Support for multi-level geojson file
18-
- Now handles the following two folder structures when unzipped abc.zip
19-
1. abc\{nodes, edges, points}.geojson
20-
2. {nodes, edges, points}.geojson
3+
### 0.2.1
4+
- Updated zipfile_handler
5+
- Fixed "No .geojson files found in the specified directory or its subdirectories." issue
216

227
### 0.2.0
238
- Updated schema file to OSW 0.2
@@ -26,4 +11,23 @@
2611
- Added additional validation steps based on the OSW network properties
2712
- Add external extensions to ExtractedDataValidator
2813
- Validate external extensions against basic Open Geospatial Consortium (OGC) standards
29-
- Aggregate schema errors and data integrity errors separately before returning errors to user
14+
- Aggregate schema errors and data integrity errors separately before returning errors to user
15+
16+
### 0.0.5
17+
- Support for multi-level geojson file
18+
- Now handles the following two folder structures when unzipped abc.zip
19+
1. abc\{nodes, edges, points}.geojson
20+
2. {nodes, edges, points}.geojson
21+
22+
### 0.0.4
23+
- Points are not required for a valid OSW dataset
24+
25+
### 0.0.3
26+
- Added schema file to package
27+
28+
### 0.0.2
29+
- Updated package Unit test cases.
30+
- Updated README file
31+
32+
### 0.0.1
33+
- Initial version of python_osw_validation package.

src/example.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
ASSETS_DIR = os.path.join(PARENT_DIR, 'tests/assets')
66
VALID_ZIP_FILE = os.path.join(ASSETS_DIR, 'valid.zip')
77
INVALID_ZIP_FILE = os.path.join(ASSETS_DIR, 'invalid.zip')
8-
TEST_ZIP_FILE = os.path.join(ASSETS_DIR,'Archive.zip')
98
SCHEMA_DIR = os.path.join(PARENT_DIR, 'src/python_osw_validation/schema')
109
SCHEMA_FILE_PATH = os.path.join(SCHEMA_DIR, 'opensidewalks.schema.json')
1110

@@ -36,16 +35,9 @@ def invalid_test_without_provided_schema():
3635
result = validator.validate()
3736
print(f'Invalid Test Without Schema: {"Failed" if result.is_valid else "Passed"}')
3837

39-
def test_with_archive_file():
40-
validator = OSWValidation(zipfile_path=TEST_ZIP_FILE)
41-
result = validator.validate()
42-
print(result.errors)
43-
print(result.is_valid)
44-
4538

4639
if __name__ == '__main__':
47-
# valid_test_with_provided_schema()
48-
# valid_test_without_provided_schema()
49-
# invalid_test_with_provided_schema()
50-
# invalid_test_without_provided_schema()
51-
test_with_archive_file()
40+
valid_test_with_provided_schema()
41+
valid_test_without_provided_schema()
42+
invalid_test_with_provided_schema()
43+
invalid_test_without_provided_schema()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.0'
1+
__version__ = '0.2.1'

0 commit comments

Comments
 (0)