Ignore:
Timestamp:
2015-10-27T09:09:48+01:00 (9 years ago)
Author:
malcolmh
Message:

[seachart] fix errors

Location:
applications/editors/josm/plugins/seachart
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/josmtos57/src/josmtos57/Josmtos57.java

    r31704 r31716  
    2020public class Josmtos57 {
    2121
     22        // http://opendatacommons.org/licenses/odbl/1-0/
     23       
     24        /*
     25        URL website = new URL("http://www.website.com/information.asp");
     26        try (InputStream in = website.openStream()) { Files.copy(in, target, StandardCopyOption.REPLACE_EXISTING); }
     27         */
     28       
    2229        static byte[] header = {
    2330                '0', '0', '2', '6', '2', '3', 'L', 'E', '1', ' ', '0', '9', '0', '0', '0', '7', '3', ' ', ' ', ' ', '6', '6', '0', '4', '0', '0', '0', '0', '0', '0', '0', '0',
     
    94101                crc.update(buf, 0, idx);
    95102                try {
    96                         File file = new File(args[2] + "/" + args[3]);
     103                        File file = new File(args[2] + args[3]);
    97104                        if (file.exists()) file.delete();
    98105                        out = new FileOutputStream(file, false);
     
    105112               
    106113                try {
    107                         File file = new File(args[2] + "/CATALOG.031");
     114                        File file = new File(args[2] + "CATALOG.031");
    108115                        if (file.exists()) file.delete();
    109116                        out = new FileOutputStream(file, false);
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r31532 r31716  
    190190                        if (testObject(Obj.LKBSPT)) for (Feature f : objects) if (testFeature(f)) areas();
    191191                        if (testObject(Obj.LAKARE)) for (Feature f : objects) if (testFeature(f)) areas();
    192                         if (testObject(Obj.RIVBNK)) for (Feature f : objects) if (testFeature(f)) areas();
    193192                        if (testObject(Obj.RIVERS)) for (Feature f : objects) if (testFeature(f)) waterways();
    194193                        if (testObject(Obj.CANALS)) for (Feature f : objects) if (testFeature(f)) waterways();
     
    286285                        break;
    287286                case LAKARE:
    288                 case RIVBNK:
    289287                        Renderer.lineVector(feature, new LineStyle(Symbols.Bwater, 10, Symbols.Bwater));
    290288                        break;
  • applications/editors/josm/plugins/seachart/src/s57/S57osm.java

    r31704 r31716  
    3737        static {
    3838                OSMtags.put("natural=coastline", new KeyVal<>(Obj.COALNE, Att.UNKATT, null, null)); OSMtags.put("natural=water", new KeyVal<>(Obj.LAKARE, Att.UNKATT, null, null));
    39                 OSMtags.put("waterway=river", new KeyVal<>(Obj.RIVERS, Att.UNKATT, null, null));
     39                OSMtags.put("waterway=river", new KeyVal<>(Obj.RIVERS, Att.UNKATT, null, null)); OSMtags.put("waterway=riverbank", new KeyVal<>(Obj.COALNE, Att.UNKATT, null, null));
    4040                OSMtags.put("waterway=canal", new KeyVal<>(Obj.CANALS, Att.UNKATT, null, null)); OSMtags.put("waterway=dock", new KeyVal<>(Obj.HRBBSN, Att.UNKATT, null, null));
    4141                OSMtags.put("waterway=lock", new KeyVal<>(Obj.HRBBSN, Att.UNKATT, null, null)); OSMtags.put("landuse=basin", new KeyVal<>(Obj.LAKARE, Att.UNKATT, null, null));
Note: See TracChangeset for help on using the changeset viewer.