|
27 | 27 | from resource.temporal_property.Retrieve import get_temporal_property |
28 | 28 | from resource.temporal_property.Create import post_temporal_property |
29 | 29 | from resource.temporal_property.Delete import delete_temporal_property |
30 | | -from resource.temporal_prim_value.Delete import delete_temporal_primitive_value |
31 | 30 | from resource.temporal_geom_query.distance import get_distance |
32 | 31 | from resource.temporal_geom_query.velocity import get_velocity |
33 | 32 | from resource.temporal_geom_query.acceleration import get_acceleration |
@@ -231,15 +230,6 @@ def do_DELETE(self): |
231 | 230 | collection_id = components[2] |
232 | 231 | mFeature_id = components[4] |
233 | 232 | 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) |
243 | 233 | #============================================================# DELETE temporal property======================================= |
244 | 234 | elif "/tproperties/" in self.path: |
245 | 235 | parts = self.path.split('/') |
@@ -448,10 +438,6 @@ def post_temporal_property(self, collectionId, featureId, propertyName, connecti |
448 | 438 | def delete_temporal_property(self, collectionId, featureId, propertyName, connection, cursor): |
449 | 439 | delete_temporal_property(self, collectionId, featureId, propertyName, connection, cursor) |
450 | 440 |
|
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 | | - |
455 | 441 |
|
456 | 442 |
|
457 | 443 | if __name__ == "__main__": |
|
0 commit comments