Ignore:
Timestamp:
2020-03-22T12:03:02+01:00 (5 years ago)
Author:
malcolmh
Message:

use XML DOM to parse OSM files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/jrender/src/jrender/Jrender.java

    r34886 r35392  
    7373        public boolean clip() {
    7474            return false;
     75        }
     76
     77        @Override
     78        public int grid() {
     79            return 0;
    7580        }
    7681
     
    156161        send = new ArrayList<>();
    157162        deletes = new HashMap<>();
    158         BufferedReader in = new BufferedReader(new FileReader(srcdir + xtile + "-" + ytile + "-" + zoom + ".osm"));
     163        File in = new File(srcdir + xtile + "-" + ytile + "-" + zoom + ".osm");
    159164        map = new S57map(true);
    160165        S57osm.OSMmap(in, map, false);
    161         in.close();
    162166        context = new Context();
    163167        ByteArrayOutputStream bos = new ByteArrayOutputStream();
Note: See TracChangeset for help on using the changeset viewer.