This commit is contained in:
KatKatKateryna
2024-08-27 15:21:32 +01:00
parent 0cb2802427
commit 99fbcd0264
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -444,11 +444,13 @@ class SpeckleProvider(BaseProvider):
#heights_array = np.array(data['heights'])
#inds = heights_array.argsort()
#sorted = feat_array[inds].tolist()
time1 = datetime.now()
sorted_list = sorted(data['features'], key=lambda d: d['max_height'])
for i, _ in enumerate(sorted_list):
sorted_list[i]["properties"]["FID"] = i+1
data['features'] = sorted_list
time2 = datetime.now()
print(f"Sorting time: {(time2-time1).total_seconds()}")
return data
+2
View File
@@ -46,7 +46,9 @@
<b style="text-align:left;padding-left: 10px;">Speckle</b>
</a>
<p style="text-align:left;padding-left: 10px;" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
<a href="https://geo.speckle.systems/" style="text-align:left;padding-left: 10px;" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
> Geolocating your data
</a>
</p>
{% if (data["model"] and data["model"]!="") %}
<a href="{{data['speckle_project_url']}}" style="text-align:left;padding-left: 10px;" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">