link
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user