Closed PMacAddress closed 1 year ago
Hello @PMacAddress , and thanks for submitting this issue.
I think the problem is here: https://github.com/CS-SI/eodag/blob/094cdb97592302305b00be370b6db88b3c9d9e5e/eodag/resources/providers.yml#L3457
One working rewrite:
- '{$.Footprint.`sub(/.*(SRID=[0-9]+;[A-Z0-9\(,.\) ]*).*/, \\1)`#from_ewkt}'
Describe the bug Parse error of WKT geometry in EODataAccessGateway.search function
Code To Reproduce I have configure 'cop_dataspace' credential, but if I use a geom in search criteria i have a ParseException:
Output
Environment:
3.9.18
2.10.0
2.0.1
Additional context Printing g["wkt"] in convert_from_ewkt function of EODAG I obtain this output with :
MULTIPOLYGON (((34.054619 43.25264, 34.45853 44.752571, 31.247597 45.14983, 30.92403 43.650314, 34.054619 43.25264)))'
I think that bug is in convert_from_ewkt function regex:because there in an apostrophe at the end.