Changeset 30587 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java
- Timestamp:
- 2014-08-15T18:02:25+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java
r28762 r30587 10 10 import org.openstreetmap.josm.command.ChangeCommand; 11 11 import org.openstreetmap.josm.command.Command; 12 import org.openstreetmap.josm.data.osm.Multipolygon Create;12 import org.openstreetmap.josm.data.osm.MultipolygonBuilder; 13 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 56 56 if( p instanceof Way ) 57 57 ways.add((Way)p); 58 Multipolygon Create mpc = new MultipolygonCreate();58 MultipolygonBuilder mpc = new MultipolygonBuilder(); 59 59 String error = mpc.makeFromWays(ways); 60 60 if( error != null ) … … 64 64 boolean fixed = false; 65 65 Set<Way> outerWays = new HashSet<Way>(); 66 for( Multipolygon Create.JoinedPolygon poly : mpc.outerWays )66 for( MultipolygonBuilder.JoinedPolygon poly : mpc.outerWays ) 67 67 for( Way w : poly.ways ) 68 68 outerWays.add(w); 69 69 Set<Way> innerWays = new HashSet<Way>(); 70 for( Multipolygon Create.JoinedPolygon poly : mpc.innerWays )70 for( MultipolygonBuilder.JoinedPolygon poly : mpc.innerWays ) 71 71 for( Way w : poly.ways ) 72 72 innerWays.add(w);
Note:
See TracChangeset
for help on using the changeset viewer.