|
@@ -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 {
|