Hello!
I see very strange behavior of the applyEdits endpoint when trying to upload set of calibration points. It creates not just calibration points but set of routes copies to which I'm trying to apply calibration points. Here is the example of JSON I pass to the endpoint:
Solved! Go to Solution.
@Sergio My understanding on the issue is set of routes copies created when adding calibration points. This is likely due to the From Date/To Date mismatch between calibration point records and the corresponding route records. LRS is natively time aware and based on the data (Date/Time attribution) may introduce time slices. Users not aware of this are thrown off-guard and puzzled with the duplicate records as in your case.
@Sergio My understanding on the issue is set of routes copies created when adding calibration points. This is likely due to the From Date/To Date mismatch between calibration point records and the corresponding route records. LRS is natively time aware and based on the data (Date/Time attribution) may introduce time slices. Users not aware of this are thrown off-guard and puzzled with the duplicate records as in your case.
Thanks again @AyanPalit - as always your advise led to the solution. I've set the fromDate to the fromDate value of the route and everything loaded properly without duplicates of routes. One issue I couldn't resolve yet is related to datetime format. As you see on the sample of JSON I've provided earlier the datetime is in epoch format and equals to 1170374400, which is GMT: Friday, February 2, 2007 12:00:00 AM
But in the SDE (through the published service as it is LRS) I see that these records were written with wrong values - 1/14/1970.
Could you please advise why is this happening? Does SDE (or feature service) recognizes epoch format wrong or with some specifics? What API endpoint expects the datetime should be? From the documentation I see that it should be epoch datetime which is number of seconds since Jan 1st 1970.
A bit of topic, but if anyone face with the same issue, solution is to use 13 digits epoch format. So in my case I've added 000 to the end of my values (1170374400) and date loaded as expected.