When I try my command shown below in the portal , then I obtain the error message : Function [BOX] is not found in TapSchema
Is it true that only CIRCLE search is implemented ?
Here is my command:
SELECT obj.ra, obj.dec, obj.objectId, obj.extendedness, truth.truth_type, truth.redshift, truth.match_objectId FROM dp01_dc2_catalogs.object as obj JOIN dp01_dc2_catalogs.truth_match as truth ON truth.match_objectId = obj.objectId WHERE CONTAINS(POINT(âICRSâ, obj.ra, obj.dec),BOX(âICRSâ, 62.0 , -40.0 , 10.0 , 10.0)) = 1 AND obj.good = 1 AND truth.match_objectid >= 0 AND truth.is_good_match = 1 AND truth.truth_type = 1 AND truth.redshift > 1.0 AND truth.redshift < 1.4
The BOX geometrical function is incompletely defined in the current ADQL standards documentation (for example, behavior when centered at a pole is ambiguous, language re. âline segments or great circlesâ is unclear, etc.) I have also heard that some in the IVOA community favor removing BOX from ADQL entirely.
Qserv (the back end catalog database supporting ADQL in DP0) has held off on implementing geometric support for BOX, waiting for the standard to stabilize. In the meantime, a POLYGON using the four intended corners, as recommended above, is indeed unambiguous at all points of the sphere, and probably the best supported option.