Opened 4 years ago

Closed 4 years ago

#2426 closed defect (fixed)

wcst_import - objectExist endpoint should return if a coverage / layer exist as local or remote object

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description (last modified by Bang Pham Huu)

From this doc https://doc.rasdaman.org/05_geo-services-guide.html?highlight=objectexists#check-if-a-coverage-layer-exists

rasdaman/ows/objectExists only returns true/false without saying the coverage is local or remote.

In this case, wcst_import sees a remote coverage as a local coverage and tries to update it which is not allowed (exception in petascope).

If coverage/layer exists, it should return new format true:local and true:HOSTNAME:PORT (e.g: true:awi.earthserver.xyz:7000) for local coverage and remote coverage accordingly.

Change History (4)

comment:1 by Bang Pham Huu, 4 years ago

Description: modified (diff)

comment:2 by Dimitar Misev, 4 years ago

What if there are multiple remote coverages with same name?

Maybe it is good to also add another parameter to the request: local=true|false? Then the response can be true/false.

comment:3 by Bang Pham Huu, 4 years ago

I updated the output in the ticket description. With this it is clearer in case of duplicate coverage ids over nodes.

true:local 
true:HOSTNAME:PORT (e.g: true:awi.earthserver.xyz:7000)

comment:4 by Bang Pham Huu, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.