Ignore:
Timestamp:
2010-09-14T15:31:55+02:00 (14 years ago)
Author:
malcolmh
Message:

light parsing

Location:
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23155 r23156  
    387387                                } else if (key.matches("^\\d$")) {
    388388                                        index = key.charAt(0) - '0';
    389                                         key = "";
     389                                        String values[] = value.split(":");
     390                                        if (values[0].equals("red"))
     391                                                LightColour[index] = "R";
     392                                        else if (values[0].equals("green"))
     393                                                LightColour[index] = "G";
     394                                        else if (values[0].equals("white"))
     395                                                LightColour[index] = "W";
     396                                        Bearing1[index] = values[1];
     397                                        Bearing2[index] = values[2];
     398                                        Radius[index] = values[3];
    390399                                } else {
    391400                                        index = 0;
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java

    r23155 r23156  
    2020                super(dia);
    2121
    22                 String str;
    2322                Map<String, String> keys;
    2423                keys = node.getKeys();
Note: See TracChangeset for help on using the changeset viewer.