Initial GeoIntel V1 foundation
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from pathlib import Path
|
||||
import json
|
||||
ROOT=Path(__file__).resolve().parents[1]
|
||||
fixture_dir=ROOT/"fixtures"/"geojson"
|
||||
if not fixture_dir.exists(): raise SystemExit("fixtures/geojson missing")
|
||||
for path in fixture_dir.glob("*.geojson"):
|
||||
data=json.loads(path.read_text(encoding="utf-8"))
|
||||
if data.get("type") != "FeatureCollection": raise SystemExit(f"{path} is not a FeatureCollection")
|
||||
print("Fixture validation OK")
|
||||
Reference in New Issue
Block a user