Skip to content

Commit d70faf0

Browse files
Drop the non-standard per-value temporal-property delete
The temporal-property surface is GET/POST on /tproperties and GET/POST/DELETE on /tproperties/{name}, matching OGC API – Moving Features and the Go tier. The per-value DELETE /tproperties/{name}/{valueId} route and its handler module are removed, so a whole property is the unit of deletion.
1 parent 70f04da commit d70faf0

2 files changed

Lines changed: 0 additions & 75 deletions

File tree

resource/temporal_prim_value/Delete.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

server.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from resource.temporal_property.Retrieve import get_temporal_property
2828
from resource.temporal_property.Create import post_temporal_property
2929
from resource.temporal_property.Delete import delete_temporal_property
30-
from resource.temporal_prim_value.Delete import delete_temporal_primitive_value
3130
from resource.temporal_geom_query.distance import get_distance
3231
from resource.temporal_geom_query.velocity import get_velocity
3332
from resource.temporal_geom_query.acceleration import get_acceleration
@@ -231,15 +230,6 @@ def do_DELETE(self):
231230
collection_id = components[2]
232231
mFeature_id = components[4]
233232
self.delete_single_moving_feature(collection_id, mFeature_id, connection, cursor)
234-
#========================================================Delete Temporal Property value=================================================
235-
# delete /collections/{collectionId}/items/{mFeatureId}/tproperties/{tPropertyName}/{tValueId}
236-
elif "/tproperties/" in self.path and len(self.path.split('/')) == 8:
237-
parts = self.path.split('/')
238-
collectionId = parts[2]
239-
featureId = parts[4]
240-
propertyName = parts[6]
241-
tValueId = parts[7]
242-
self.delete_temporal_primitive_value(collectionId, featureId, propertyName, tValueId, connection, cursor)
243233
#============================================================# DELETE temporal property=======================================
244234
elif "/tproperties/" in self.path:
245235
parts = self.path.split('/')
@@ -448,10 +438,6 @@ def post_temporal_property(self, collectionId, featureId, propertyName, connecti
448438
def delete_temporal_property(self, collectionId, featureId, propertyName, connection, cursor):
449439
delete_temporal_property(self, collectionId, featureId, propertyName, connection, cursor)
450440

451-
## Resource Temporal Primitive Value
452-
def delete_temporal_primitive_value(self, collectionId, featureId, propertyName, tValueId, connection, cursor):
453-
delete_temporal_primitive_value(self, collectionId, featureId, propertyName, tValueId, connection, cursor)
454-
455441

456442

457443
if __name__ == "__main__":

0 commit comments

Comments
 (0)