[
https://issues.apache.org/jira/browse/SDAP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nga Thien Chung updated SDAP-417:
---------------------------------
Resolution: Fixed
Status: Done (was: To Do)
> Ingester fails Solr writes due to incorrect geo field WKT
> ---------------------------------------------------------
>
> Key: SDAP-417
> URL: https://issues.apache.org/jira/browse/SDAP-417
> Project: Apache Science Data Analytics Platform
> Issue Type: Bug
> Components: granule-ingester
> Reporter: Riley Kuttruff
> Priority: Major
>
> Seeing ingester try to write Solr documents where the geo field WKT is a
> POLYGON whose points form a line. This is something the code should be
> accounting for but it's still written as a POLYGON and not a LINESTRING or
> POINT like it should be.
>
> Example error:
> Remote error message: ERROR: [doc=8d80f4a7-9d8f-3ded-a6a7-61828d62ff48] Error
> adding field 'geo'='POLYGON((179.999 -27.883, 179.999 -27.883, 179.999
> -27.760, 179.999 -27.760, 179.999 -27.883))' msg=Unable to parse shape given
> formats "lat,lon", "x y" or as WKT because
> org.locationtech.spatial4j.exception.InvalidShapeException: Too few distinct
> points in geometry component at or near point (179.999, -27.883, NaN) input:
> POLYGON((179.999 -27.883, 179.999 -27.883, 179.999 -27.760, 179.999 -27.760,
> 179.999 -27.883))]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)