| | |
| | | import org.gdal.gdal.gdal; |
| | | import org.gdal.gdalconst.gdalconst; |
| | | import org.gdal.osr.SpatialReference; |
| | | import org.gdal.osr.osr; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | private SpatialReference getSpatialRef(SimuPo simu) { |
| | | DataPo data = JSONUtil.toBean(simu.getData(), DataPo.class); |
| | | |
| | | SpatialReference sr = new SpatialReference(); |
| | | sr.ImportFromEPSG(data.getEpsg()); |
| | | sr.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER); |
| | | |
| | | return sr; |
| | | return data.getSpatialReference(); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (CollectionUtils.isEmpty(list)) return null; |
| | | |
| | | return list.parallelStream() |
| | | .filter(b -> seid.equals(b.getSeid())) |
| | | .filter(b -> seid.equals(b.getId())) |
| | | .sorted((a, b) -> a.getTimestamp().compareTo(b.getTimestamp())) |
| | | .collect(Collectors.toList()); |
| | | } |