digital-land / submit

0 stars 0 forks source link

handle GeoX, GeoY columns in input data. #409

Closed rosado closed 1 month ago

rosado commented 1 month ago

What type of PR is this?

Description

ResponseDetails.getGeometries() returns array of "POINT (X Y)" when geometry data is stored in a pair of columns: GeoX and GeoY.

Related Tickets & Documents

There async-request-api made changes recently that can potentially help us with the above (see https://github.com/digital-land/async-request-backend/pull/41), but not in this particular PR.

We don't make use of the new 'transformed_row' entry in the body of '/requests/:result-id/response-details' response (of async api), because that entry is present only when 'dataset=brownfield-land' is passed as param. We currently don't support 'brownfield-land' datasets, so that's not available in to us.

Instead, 'POINT' value is extracted manually from the GeoX, GeoY columns (when present).

Added/updated tests?