|
@@ -33,8 +33,12 @@ public class TileServiceImpl implements ITileService {
|
|
sbBbox.append(requestParam.getBbox()+"))");
|
|
sbBbox.append(requestParam.getBbox()+"))");
|
|
|
|
|
|
|
|
|
|
- String filterCql = requestParam.getCqlFilter()+" and "+sbBbox.toString();
|
|
|
|
-// String filterCql = requestParam.getCqlFilter();
|
|
|
|
|
|
+// String filterCql = requestParam.getCqlFilter()+" and "+sbBbox.toString();
|
|
|
|
+// String filterCql = sbBbox.toString();
|
|
|
|
+
|
|
|
|
+ String filterCql = requestParam.getCqlFilter();
|
|
|
|
+
|
|
|
|
+ System.out.println("查询条件:"+filterCql);
|
|
|
|
|
|
Map<String, Object> cqlDsParams = new HashMap<String, Object>();
|
|
Map<String, Object> cqlDsParams = new HashMap<String, Object>();
|
|
cqlDsParams.put(JDBCDataStoreFactory.DATABASE.key, geoDs.getDataBase());
|
|
cqlDsParams.put(JDBCDataStoreFactory.DATABASE.key, geoDs.getDataBase());
|
|
@@ -52,8 +56,10 @@ public class TileServiceImpl implements ITileService {
|
|
List<Map<String, Object>> cqlDataList = ecqlService.cqlQuery(cqlDsParams,filterCql,sortParams);
|
|
List<Map<String, Object>> cqlDataList = ecqlService.cqlQuery(cqlDsParams,filterCql,sortParams);
|
|
|
|
|
|
if(cqlDataList.size() >0){
|
|
if(cqlDataList.size() >0){
|
|
|
|
+
|
|
//3根据空间地理数据生成图层二进制数据
|
|
//3根据空间地理数据生成图层二进制数据
|
|
- System.out.println("返回的数据:"+cqlDataList.toString());
|
|
|
|
|
|
+ System.out.println("查询条件:"+filterCql+"记录数:"+cqlDataList.size()+"===================返回的数据:"+cqlDataList.toString());
|
|
|
|
+
|
|
return TileUtils.getTile(cqlDataList, requestParam.getBbox());
|
|
return TileUtils.getTile(cqlDataList, requestParam.getBbox());
|
|
|
|
|
|
}else{
|
|
}else{
|