소스 검색

生成wkt矢量图片

gushoubang 1 년 전
부모
커밋
4a9104c568
5개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. BIN
      D/16影像.tif
  2. 1 6
      onemap-modules/onemap-spatial/src/main/java/com/onemap/spatial/service/impl/ImageServiceImpl.java
  3. BIN
      raster.png
  4. BIN
      states.png
  5. BIN
      wkt.png

BIN
D/16影像.tif


+ 1 - 6
onemap-modules/onemap-spatial/src/main/java/com/onemap/spatial/service/impl/ImageServiceImpl.java

@@ -1,6 +1,5 @@
 package com.onemap.spatial.service.impl;
 
-import com.onemap.spatial.mapper.ImageMapper;
 import com.onemap.spatial.service.IImageService;
 import org.geotools.factory.CommonFactoryFinder;
 import org.geotools.feature.DefaultFeatureCollection;
@@ -15,15 +14,14 @@ import org.geotools.referencing.crs.DefaultGeographicCRS;
 import org.geotools.renderer.GTRenderer;
 import org.geotools.renderer.label.LabelCacheImpl;
 import org.geotools.renderer.lite.StreamingRenderer;
-import org.geotools.styling.*;
 import org.geotools.styling.Stroke;
+import org.geotools.styling.*;
 import org.locationtech.jts.geom.Geometry;
 import org.locationtech.jts.io.WKTReader;
 import org.opengis.feature.simple.SimpleFeature;
 import org.opengis.filter.FilterFactory2;
 import org.springframework.stereotype.Service;
 
-import javax.annotation.Resource;
 import javax.imageio.ImageIO;
 import javax.imageio.stream.ImageOutputStream;
 import java.awt.*;
@@ -38,9 +36,6 @@ import java.util.Map;
  */
 @Service
 public class ImageServiceImpl implements IImageService {
-    @Resource
-    private ImageMapper imageMapper;
-
 
     @Override
     public String getSensingImage(String wkt) throws Exception {

BIN
raster.png


BIN
states.png


BIN
wkt.png