Changeset 28573 in osm
- Timestamp:
- 2012-08-19T09:36:45+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/poly/src/poly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/poly/src/poly/PolyExporter.java
r28570 r28573 41 41 DataSet ds = ((OsmDataLayer)layer).data; 42 42 Map<Way, Boolean> ways = new TreeMap<Way, Boolean>(new AreaComparator()); 43 String polygonName = layer.getName(); 43 String polygonName = file.getName(); 44 if( polygonName.indexOf('.') > 0 ) 45 polygonName = polygonName.substring(0, polygonName.indexOf('.')); 44 46 for( Way w : ds.getWays() ) { 45 47 if( w.isClosed() ) { … … 58 60 ways.put(w, outer); 59 61 if( w.hasKey("name") ) 60 polygonName = w.get("name"); 62 polygonName = w.get("name").replace("\n", " "); 61 63 } 62 64 } -
applications/editors/josm/plugins/poly/src/poly/PolyImporter.java
r28571 r28573 47 47 progressMonitor.beginTask(tr("Reading polygon filter file..."), 2); 48 48 progressMonitor.indeterminateSubTask(tr("Reading polygon filter file...")); 49 reader = new BufferedReader(new InputStreamReader(in)); 49 reader = new BufferedReader(new InputStreamReader(in, "UTF8")); 50 50 List<Area> areas = loadPolygon(reader); 51 51 progressMonitor.worked(1);
Note:
See TracChangeset
for help on using the changeset viewer.