增加交通标牌同点位坐标转换
This commit is contained in:
@@ -2022,7 +2022,7 @@
|
||||
|
||||
<!-- 箭头 -->
|
||||
<m v="OMDB_OBJECT_ARROW">
|
||||
<area use="obj-area" stroke="#00000000" repeat="false" src="@src" longEdge="n" hasDirect="true"></area>
|
||||
<area use="obj-area" stroke="#ffffff" repeat="false" src="@src" longEdge="n" hasDirect="true"></area>
|
||||
</m>
|
||||
|
||||
<!-- 道路施工 -->
|
||||
|
||||
@@ -70,7 +70,9 @@ public class OMDBDataDecoder extends TileDecoder {
|
||||
mTileY = tile.tileY / mTileScale;
|
||||
mTileScale *= Tile.SIZE;
|
||||
|
||||
listResult.stream().iterator().forEachRemaining(new Consumer<RenderEntity>() {
|
||||
List<RenderEntity> list = GeometryTools.groupByDistance(DataCodeEnum.OMDB_TRAFFIC_SIGN.code,listResult,5.0);
|
||||
|
||||
list.stream().iterator().forEachRemaining(new Consumer<RenderEntity>() {
|
||||
@Override
|
||||
public void accept(RenderEntity renderEntity) {
|
||||
|
||||
|
||||
@@ -1581,7 +1581,7 @@ public class GeometryTools {
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
public static List<RenderEntity> groupByDistance(List<RenderEntity> list, double disance) {
|
||||
public static List<RenderEntity> groupByDistance(String code,List<RenderEntity> list, double disance) {
|
||||
|
||||
if (list == null || disance <= 0) {
|
||||
return null;
|
||||
@@ -1595,6 +1595,12 @@ public class GeometryTools {
|
||||
//遍历开始
|
||||
for (RenderEntity renderEntity : list) {
|
||||
|
||||
if(!TextUtils.isEmpty(code)&&renderEntity.getCode()!=code){
|
||||
listReslut.add(renderEntity);
|
||||
calcMap.put(renderEntity.getId(),renderEntity);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!calcMap.containsKey(renderEntity.getId())) {
|
||||
|
||||
//跟要素遍历对比,如果统一个点直接标记计算并记录在内,已经计算过不在二次计算
|
||||
@@ -1625,7 +1631,7 @@ public class GeometryTools {
|
||||
}
|
||||
}
|
||||
|
||||
Log.e("qj", "====计算间距====" + count);
|
||||
Log.e("qj", "====计算间距====" + listReslut.size()+"==判断后=="+list.size());
|
||||
|
||||
return listReslut;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user