From 66d7bd69fbdd095dd49e393249752561fa6e340a Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Mon, 23 Sep 2024 12:36:11 +0200 Subject: [PATCH] readme sample and time --- README.md | 2 +- pygeoapi/provider/speckle_utils/feature_utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a41e07e..2eee8d4 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Then you can add it to the base map (e.g. using Leaflet and OpenStreetMap basema loadSpeckleData(); async function loadSpeckleData() => { - var speckle_model_url = 'https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/344f803f81/models/5582ab673e&datatype=polygons'; + var speckle_model_url = 'https://geo.speckle.systems/speckle/?speckleUrl=https://app.speckle.systems/projects/344f803f81/models/5582ab673e&datatype=polygons'; const speckle_data = await fetch(speckle_model_url, { headers: {'Accept': 'application/geo+json'} }).then(response => response.json()); diff --git a/pygeoapi/provider/speckle_utils/feature_utils.py b/pygeoapi/provider/speckle_utils/feature_utils.py index a7697ec..e3324f0 100644 --- a/pygeoapi/provider/speckle_utils/feature_utils.py +++ b/pygeoapi/provider/speckle_utils/feature_utils.py @@ -1,5 +1,5 @@ -from datetime import datetime +from datetime import datetime, timezone from typing import Dict, List @@ -172,6 +172,7 @@ def initialize_features(self: "SpeckleProvider", all_coords, all_coord_counts, d raise ValueError("No supported features found") time2 = datetime.now() + print(f"UTC time: {time2.astimezone(timezone.utc)}") print(f"Creating features time: {(time2-time1).total_seconds()}") def get_feature_bbox(coords) -> List[float]: