gost / server

GOST - Go implementation of OGC SensorThings API
MIT License
61 stars 19 forks source link

Improved error message when failing to take Location as Foi #154

Closed farshidtz closed 6 years ago

farshidtz commented 6 years ago

Hi,

I understand that this features is described in the standard as:

In the case of creating an Observation whose FeatureOfInterest is the Thing’s Location (that means the Thing entity has a related Location entity), the request of creating the Observation SHOULD NOT include a link to a FeatureOfInterest entity. The service will first automatically create a FeatureOfInterest entity from the Location of the Thing and then link to the Observation. 1

But the error message didn't provide enough context. Also, the code ignored the error message returned from CopyLocationToFoi. Please update the error message as you see fit.

bertt commented 6 years ago

Thanks!