|
@@ -4,7 +4,6 @@ import cn.com.taiji.cql.model.GeoRequestParam;
|
|
|
import cn.com.taiji.cql.service.IECqlService;
|
|
|
import cn.com.taiji.tile.service.ITileService;
|
|
|
import cn.com.taiji.tile.util.TileUtils;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.geotools.jdbc.JDBCDataStoreFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,8 +33,8 @@ public class TileServiceImpl implements ITileService {
|
|
|
sbBbox.append(requestParam.getBbox()+"))");
|
|
|
|
|
|
|
|
|
-// String filterCql = requestParam.getCqlFilter()+" and "+sbBbox.toString();
|
|
|
- String filterCql = requestParam.getCqlFilter();
|
|
|
+ String filterCql = requestParam.getCqlFilter()+" and "+sbBbox.toString();
|
|
|
+// String filterCql = requestParam.getCqlFilter();
|
|
|
|
|
|
Map<String, Object> cqlDsParams = new HashMap<String, Object>();
|
|
|
cqlDsParams.put(JDBCDataStoreFactory.DATABASE.key, geoDs.getDataBase());
|
|
@@ -55,7 +54,7 @@ public class TileServiceImpl implements ITileService {
|
|
|
if(cqlDataList.size() >0){
|
|
|
//3根据空间地理数据生成图层二进制数据
|
|
|
System.out.println("返回的数据:"+cqlDataList.toString());
|
|
|
- return TileUtils.getTile2lwh(cqlDataList, requestParam.getBbox(),geoDs);
|
|
|
+ return TileUtils.getTile(cqlDataList, requestParam.getBbox());
|
|
|
|
|
|
}else{
|
|
|
|