| | |
| | | @Resource |
| | | PathHelper pathHelper; |
| | | |
| | | @ApiOperation(value = "测试查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "seconds", value = "秒", dataType = "Integer", paramType = "query", example = "30") |
| | | }) |
| | | @GetMapping(value = "/selectForTest") |
| | | public ResponseMsg<Object> selectForTest(Integer seconds) { |
| | | try { |
| | | if (null == seconds || seconds < 1) { |
| | | seconds = 1; |
| | | } |
| | | |
| | | String str = publishService.selectForTest(seconds); |
| | | |
| | | return success(str); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询元数据") |
| | | @ApiImplicitParams({ |
| | |
| | | continue; |
| | | } |
| | | |
| | | Integer epsg = rasterService.getRaterEpsg(filePath); |
| | | // Integer epsg = rasterService.getRaterEpsg(filePath) |
| | | Integer epsg = rasterService.getEpsgByGdal(filePath); |
| | | if (null == epsg || epsg < 1) { |
| | | me.setBak("坐标系ID无效"); |
| | | errList.add(me); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询坐标转换") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "x", value = "X坐标", dataType = "double", paramType = "query", example = "400925.079"), |
| | | @ApiImplicitParam(name = "y", value = "Y坐标", dataType = "double", paramType = "query", example = "2541768.173"), |
| | | @ApiImplicitParam(name = "epsg", value = "EPSG编码", dataType = "int", paramType = "query", example = "4548") |
| | | }) |
| | | @GetMapping(value = "/selectCsTransform") |
| | | public Object selectCsTransform(double x, double y, int epsg) { |
| | | try { |
| | | return rasterService.transformByProj4j(x, y, epsg); |
| | | } catch (Exception ex) { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入发布数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body") |