| | |
| | | |
| | | /** |
| | | * 测试 |
| | | * |
| | | * POINT (26.72 -48.58) |
| | | * LINESTRING(18.44 -46.69,20.14 -45.93) |
| | | * POLYGON ((5.11 -41.64,7.68 -43.59,4.73 -43.3,5.11 -41.64)) |
| | | * POLYGON ((42.6 -40.3,49.1 -40.4,49.1 -65.7,46.3 -65.6,42.6 -40.3)) |
| | | */ |
| | | public List<AnalysisResultEntity> test(Geometry geo, Integer size) { |
| | | List<AnalysisResultEntity> rs = new ArrayList<>(); |
| | |
| | | */ |
| | | private void openRaster(AnalysisResultEntity entity, String filePath, Geometry geo, int size) { |
| | | Dataset ds = null; |
| | | filePath = "D:\\Moon\\data\\DOM\\test.tif"; |
| | | try { |
| | | // filePath = "D:\\Moon\\data\\DOM\\test.tif" |
| | | ds = gdal.Open(filePath); |
| | | if (null == ds) { |
| | | throw new Exception("打开栅格数据失败"); |