geodaisy icon indicating copy to clipboard operation
geodaisy copied to clipboard

wkt_to_geojson not working when booth coordinates are negatives?

Open ZDidier opened this issue 4 years ago • 3 comments

OK

wkt = 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))' print(convert.wkt_to_geojson(wkt))

OK

wkt = 'POLYGON ((30.5 10.3, -40.5 40.1, 20.5 40.3, 10.5 20.6, 30.5 10.3))' print(convert.wkt_to_geojson(wkt))

KO

wkt = 'POLYGON ((30.5 10.3, -40.5 -40.1, 20.5 40.3, 10.5 20.6, 30.5 10.3))' print(convert.wkt_to_geojson(wkt)) ValueError: POLYGON ((30.5 10.3, -40.5 -40.1, 20.5 40.3, 10.5 20.6, 30.5 10.3)) is not a WKT string

ZDidier avatar Jan 25 '21 16:01 ZDidier