You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it cannot parse correctly: POLYGON((\n 143 -39,\n 148 -39,\n 148 -44,\n 143 -44,\n 143 -39\n))
Temporary solution:
//remove return/space that immediately occur after ','
p = p.replaceAll('[\\n]+', '')
//remove space that immediately occur after ','
p = p.replaceAll(',[\\s]+', ',').trim()
Issue 2:
However, if we are processing a complicated WKT, for example a WKT for Tasmania, there is a possibility that the process is in a dead loop in calculating grid cut: https://github.com/AtlasOfLivingAustralia/spatial-service/blob/develop/src/main/groovy/au/org/ala/spatial/process/SlaveProcess.groovy#L1116
The text was updated successfully, but these errors were encountered:
qifeng-bai
changed the title
The Classify tool cannot start the task when we define an area with WKT
Fixing WKT process: parsing error and possible dead loop
Jan 29, 2024
This tool works with an area defined by 'current context', 'bounding box', etc, but It does not work with the area created by WKT
The task was created on Spatial-service, but stayed in the queue
Here is the WKT around Tas area:
Issue 1:
SimpleRegion.parseSimpleRegion can parse properly:
POLYGON((143 -39,148 -39,148 -44,143 -44,143 -39))
but it cannot parse correctly:
POLYGON((\n 143 -39,\n 148 -39,\n 148 -44,\n 143 -44,\n 143 -39\n))
Temporary solution:
We logged before and after
Issue 2:
However, if we are processing a complicated WKT, for example a WKT for Tasmania, there is a possibility that the process is in a dead loop in calculating grid cut:
https://github.com/AtlasOfLivingAustralia/spatial-service/blob/develop/src/main/groovy/au/org/ala/spatial/process/SlaveProcess.groovy#L1116
The text was updated successfully, but these errors were encountered: