Merge "ASM #663 - WarnGen does not properly handle Outer Banks Counties in North Carolina" into asm_14.2.2
Former-commit-id:bf765525b7
[formerlyb5e4bc1fdc
] [formerlybf765525b7
[formerlyb5e4bc1fdc
] [formerly102da2d0f7
[formerly 714dbccbd26a1b6fafa486b2ddbce98d7f38c8eb]]] Former-commit-id:102da2d0f7
Former-commit-id:b4d23902a7
[formerly7ed2a8cbd4
] Former-commit-id:8f3581340b
This commit is contained in:
commit
5a9181fcc1
1 changed files with 7 additions and 1 deletions
|
@ -76,6 +76,7 @@ import com.vividsolutions.jts.geom.prep.PreparedGeometry;
|
||||||
* Aug 19, 2013 2177 jsanchez Used portionsUtil to calculate area portion descriptions.
|
* Aug 19, 2013 2177 jsanchez Used portionsUtil to calculate area portion descriptions.
|
||||||
* Apr 29, 2014 3033 jsanchez Updated method to retrieve files in localization.
|
* Apr 29, 2014 3033 jsanchez Updated method to retrieve files in localization.
|
||||||
* May 16, 2014 DR 17365 D. Friedman Reduce precision of warning area to avoid topology errors.
|
* May 16, 2014 DR 17365 D. Friedman Reduce precision of warning area to avoid topology errors.
|
||||||
|
* Jun 30, 2014 DR 17447 Qinglu lin Updated findAffectedAreas().
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author chammack
|
* @author chammack
|
||||||
|
@ -178,6 +179,7 @@ public class Area {
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> uniqueFips = new ArrayList<String>();
|
List<String> uniqueFips = new ArrayList<String>();
|
||||||
|
List<String> uniqueCountyname = new ArrayList<String>();
|
||||||
List<AffectedAreas> areas = new ArrayList<AffectedAreas>();
|
List<AffectedAreas> areas = new ArrayList<AffectedAreas>();
|
||||||
for (GeospatialData regionFeature : countyMap.values()) {
|
for (GeospatialData regionFeature : countyMap.values()) {
|
||||||
Geometry regionGeom = regionFeature.geometry;
|
Geometry regionGeom = regionFeature.geometry;
|
||||||
|
@ -257,8 +259,12 @@ public class Area {
|
||||||
|
|
||||||
area.points = pointList.toArray(new String[pointList.size()]);
|
area.points = pointList.toArray(new String[pointList.size()]);
|
||||||
}
|
}
|
||||||
if (uniqueFips.contains(area.fips) == false) {
|
String countyName = (String)regionFeature.attributes.get("COUNTYNAME");
|
||||||
|
if (uniqueFips.contains(area.fips) == false || !uniqueCountyname.contains(countyName)) {
|
||||||
uniqueFips.add(area.fips);
|
uniqueFips.add(area.fips);
|
||||||
|
if (countyName != null) {
|
||||||
|
uniqueCountyname.add(countyName);
|
||||||
|
}
|
||||||
areas.add(area);
|
areas.add(area);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue