Ignore:
Timestamp:
2015-10-26T16:40:54+01:00 (9 years ago)
Author:
malcolmh
Message:

add josmtos57

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/js57toosm/src/js57toosm/Js57toosm.java

    r31659 r31704  
    7373               
    7474                map = new S57map(true);
    75                 MapBounds bounds = S57dec.decodeFile(in, map);
     75                S57dec.decodeChart(in, map);
    7676
    7777                out.format("<?xml version='1.0' encoding='UTF-8'?>%n");
    7878                out.format("<osm version='0.6' upload='false' generator='js57toosm'>%n");
    79                 out.format("<bounds minlat='%.8f' minlon='%.8f' maxlat='%.8f' maxlon='%.8f'/>%n", bounds.minlat, bounds.minlon, bounds.maxlat, bounds.maxlon);
     79                out.format("<bounds minlat='%.8f' minlon='%.8f' maxlat='%.8f' maxlon='%.8f'/>%n",
     80                                Math.toDegrees(map.bounds.minlat), Math.toDegrees(map.bounds.minlon), Math.toDegrees(map.bounds.maxlat), Math.toDegrees(map.bounds.maxlon));
    8081
    8182                for (long id : map.index.keySet()) {
Note: See TracChangeset for help on using the changeset viewer.