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/jchart/src/jchart/Jchart.java

    r35391 r35392  
    88import java.awt.geom.Point2D;
    99import java.awt.image.BufferedImage;
    10 import java.io.BufferedReader;
    1110import java.io.File;
    1211import java.io.FileOutputStream;
    13 import java.io.FileReader;
    1412import java.io.IOException;
    1513import java.io.OutputStreamWriter;
     
    132130            System.exit(-1);
    133131        }
    134         BufferedReader in = new BufferedReader(new FileReader(args[0]));
     132        File in = new File(args[0]);
    135133        zoom = Integer.parseInt(args[1]);
    136134        map = new S57map(false);
    137135        S57osm.OSMmap(in, map, false);
    138         in.close();
     136//        in.close();
    139137        context = new Context();
    140138        Point2D size = context.getPoint(new Snode(map.bounds.minlat, map.bounds.maxlon));
Note: See TracChangeset for help on using the changeset viewer.