Description
Describe the bug
query of landuse=forest relations cause topology exception error
To Reproduce
Steps to reproduce the behavior:
https://api.ohsome.org/v0.9/elements/area?bpolys=16.11562384532203751%2C57.84071529473668249%2C16.11562384532203751%2C57.86988388782848602%2C16.15563247211223086%2C57.86988388782848602%2C16.15563247211223086%2C57.84071529473668249%2C16.11562384532203751%2C57.84071529473668249&keys=landuse&properties=tags%2Cmetadata&showMetadata=false&time=2014-10-01&types=relation&values=forest
Expected behavior
return result with area values
Error messages, logs, screenshots
Failed to obtain remote job result policy for result fromComputeTask.result(..) method due to undeclared user exception (will fail the whole task): GridJobResultImpl [job=org.heigit.bigspatialdata.oshdb.api.mapreducer.backend.OSHDBIgniteMapReduceComputeTask$1@6ee3b22d, sib=GridJobSiblingImpl [sesId=b188000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a, jobId=7288000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a, nodeId=f0e0b4ff-1b16-4c2c-ae3d-a1722db34e09, isJobDone=false], jobCtx=GridJobContextImpl [jobId=7288000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a, timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=f0e0b4ff-1b16-4c2c-ae3d-a1722db34e09, addrs=[0:0:0:0:0:0:0:1%lo, 10.11.12.142, 127.0.0.1], sockAddrs=[/0:0:0:0:0:0:0:1%lo:47500, /10.11.12.142:47500, /127.0.0.1:47500], discPort=47500, order=4, intOrder=4, lastExchangeTime=1558535628804, loc=false, ver=2.7.0#20181130-sha1:256ae401, isClient=false], ex=class org.apache.ignite.compute.ComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=7288000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=org.heigit.bigspatialdata.oshdb.api.mapreducer.backend.OSHDBIgniteMapReduceComputeTask, dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1558535876115, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=7362d308a61-f0e0b4ff-1b16-4c2c-ae3d-a1722db34e09, singleNode=false, nodeLdrMap={c1f40ed2-83da-4885-8797-e5ee8696905a=11406ffda61-c1f40ed2-83da-4885-8797-e5ee8696905a}, p2pTimeout=60000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=7362d308a61-f0e0b4ff-1b16-4c2c-ae3d-a1722db34e09, userVer=0, loc=false, sampleClsName=org.heigit.bigspatialdata.oshdb.api.mapreducer.backend.OSHDBIgniteMapReduceComputeTask, pendingUndeploy=false, undeployed=false, usage=1]], taskClsName=org.heigit.bigspatialdata.oshdb.api.mapreducer.backend.OSHDBIgniteMapReduceComputeTask, sesId=b188000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a, startTime=1558615760876, endTime=9223372036854775807, taskNodeId=c1f40ed2-83da-4885-8797-e5ee8696905a, clsLdr=GridDeploymentClassLoader [id=7362d308a61-f0e0b4ff-1b16-4c2c-ae3d-a1722db34e09, singleNode=false, nodeLdrMap={c1f40ed2-83da-4885-8797-e5ee8696905a=11406ffda61-c1f40ed2-83da-4885-8797-e5ee8696905a}, p2pTimeout=60000, usrVer=0, depMode=SHARED, quiet=false], closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, internal=false, topPred=org.apache.ignite.internal.cluster.ClusterGroupAdapter$AttributeFilter@10c24588, subjId=c1f40ed2-83da-4885-8797-e5ee8696905a, mapFut=IgniteFuture [orig=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1438702068]], execName=null], jobId=7288000ea61-c1f40ed2-83da-4885-8797-e5ee8696905a], err=side location conflict [ (16.131293199999998, 57.8438106, NaN) ]], hasRes=true, isCancelled=false, isOccupied=true]
System (please complete the following information):
- OSHDB Version 0.5.1
Additional context
The multipolygon that likely causes the error is:
https://www.openstreetmap.org/relation/3421670/history
between version 4 and 5 so that at 2014-10-01 the geometry can't be built.
Error is thrown here:
https://github.com/GIScience/oshdb/blob/0.5.1/oshdb-util/src/main/java/org/heigit/bigspatialdata/oshdb/util/geometry/OSHDBGeometryBuilder.java#L200
Activity