Issue #1731 - fix problem with dmd updating.

Change-Id: I1f3eb576cf26a42195ca9c4cadfbeaeb77394af6

Former-commit-id: 64cdb3c7fd [formerly 64cdb3c7fd [formerly a8c25cfced44c7e3edfd1b37af73b2af8753212b]]
Former-commit-id: 23c8085402
Former-commit-id: 3f2f0937ce
This commit is contained in:
Mike Duff 2013-04-02 16:22:23 -05:00
parent 0fee31b1a8
commit 5298fb6633

View file

@ -82,6 +82,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Jul 24 2012 12996 Xiaochuan Compare with MidVal()
* Feb 28, 2013 1731 bsteffen Allow ScanResource to work better with
* D2DTimeMatcher.
* Apr 02, 2013 1731 mpduff Fix problem with DMD updates.
*
* </pre>
*
@ -1108,7 +1109,8 @@ public class ScanResource extends
try {
if (!getScan().getTimeOrderedKeys(getScan(), newrecord.getType(),
resourceData.icao).contains(
newrecord.getDataTime().getRefTime())) {
newrecord.getDataTime().getRefTime())
|| newrecord.getType().equals("DMD")) {
newrecord = resourceData.populateRecord(newrecord);
@ -1118,11 +1120,12 @@ public class ScanResource extends
getScan().setTableData(resourceData.icao,
newrecord.getTableData(),
/* TODO: This should be the volume scan time,
* but {Radar,Scan}Record.getVolScanTime is actually
* the radar product generation time.
/*
* TODO: This should be the volume scan time, but
* {Radar,Scan}Record.getVolScanTime is actually the
* radar product generation time.
*/
newrecord.getDataTime().getRefTime(),
newrecord.getDataTime().getRefTime(),
newrecord.getTilt(),
newrecord.getDataTime().getRefTime(),
newrecord.getType());