ESGF / esg-search

ESGF Search Component
http://esgf.org/esg-search/
Other
8 stars 14 forks source link

Publication inhibited by out-of-range coverage #113

Closed LucaCinquini closed 7 years ago

LucaCinquini commented 7 years ago

Who: Sasha

In some cases, the lat/lon data gas coordinates slightly of out of range, such as lat=90.0001. In this case, publication fails because Solr does not accept geo envelopes with wrong coordinates. Example error message:

ERROR - 2017-06-29 15:47:32.190; [ x:datasets] org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: Couldn't parse shape 'ENVELOPE(-180.0, -1.0, 90.00001, -90.0)' because: Y values [-90.0 to 90.00001] not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)

LucaCinquini commented 7 years ago

Fixed by manually resetting the coordinates if out of range - see ThreddsUtils.addGeoCoverage() method.