|
@@ -10,7 +10,6 @@ import cn.sagacloud.server.algorithm.models.modelFile.ModelFile
|
|
import cn.sagacloud.server.algorithm.services.BaseDataService.modelFileService
|
|
import cn.sagacloud.server.algorithm.services.BaseDataService.modelFileService
|
|
import cn.sagacloud.server.algorithm.services.BaseDataService.spaceService
|
|
import cn.sagacloud.server.algorithm.services.BaseDataService.spaceService
|
|
import cn.sagacloud.server.algorithm.services.datacenter.DataCenterRequest
|
|
import cn.sagacloud.server.algorithm.services.datacenter.DataCenterRequest
|
|
-import com.alibaba.fastjson.JSON
|
|
|
|
import com.sybotan.service.SObjectService
|
|
import com.sybotan.service.SObjectService
|
|
import com.sybotan.service.models.SCascadeQuery
|
|
import com.sybotan.service.models.SCascadeQuery
|
|
import com.sybotan.service.models.requests.SQueryRequest
|
|
import com.sybotan.service.models.requests.SQueryRequest
|
|
@@ -23,6 +22,7 @@ import org.locationtech.jts.geom.GeometryFactory
|
|
import org.locationtech.jts.geom.LinearRing
|
|
import org.locationtech.jts.geom.LinearRing
|
|
import org.locationtech.jts.geom.Polygon
|
|
import org.locationtech.jts.geom.Polygon
|
|
import org.slf4j.LoggerFactory
|
|
import org.slf4j.LoggerFactory
|
|
|
|
+import org.springframework.beans.BeanUtils
|
|
import org.springframework.beans.factory.annotation.Autowired
|
|
import org.springframework.beans.factory.annotation.Autowired
|
|
import org.springframework.stereotype.Component
|
|
import org.springframework.stereotype.Component
|
|
import java.util.*
|
|
import java.util.*
|
|
@@ -173,7 +173,9 @@ class SpaceAffectUtil {
|
|
try {
|
|
try {
|
|
ring = createRing(geometryFactory,list)
|
|
ring = createRing(geometryFactory,list)
|
|
}catch (ingroed:IllegalArgumentException){
|
|
}catch (ingroed:IllegalArgumentException){
|
|
- list!!.add(list[0])
|
|
|
|
|
|
+ val newPoint=Point()
|
|
|
|
+ BeanUtils.copyProperties(list!![0],newPoint)
|
|
|
|
+ list.add(newPoint)
|
|
ring = createRing(geometryFactory,list)
|
|
ring = createRing(geometryFactory,list)
|
|
}
|
|
}
|
|
}catch (e:Exception){}
|
|
}catch (e:Exception){}
|