readme sample and time

This commit is contained in:
KatKatKateryna
2024-09-23 12:36:11 +02:00
parent 6b7112ccef
commit 66d7bd69fb
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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());
@@ -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]: