rain
2024-03-23 35a8fd809547c3e5c0293c03a0a50096e658de79
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.dji.sample.patches.service.impl;
import com.dji.sample.patches.dao.DemoMapper;
import com.dji.sample.patches.service.DemoService;
import com.dji.sample.patches.utils.ShapeFileUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.File;
import java.io.IOException;
@Service
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoMapper mapper;
    private ShapeFileUtil shapeFileUtil;
      @Override
 
      public void insertGeo(File file) throws IOException {
          System.out.println(shapeFileUtil.shpToGeoJson(file));
      }
  }