Changeset 34586 in osm for applications/editors
- Timestamp:
- 2018-08-19T22:07:20+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/simplifyarea
- Files:
-
- 4 added
- 1 deleted
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/simplifyarea/build.xml
r34556 r34586 10 10 --> 11 11 <property name="plugin.author" value="Martin Ždila <m.zdila@gmail.com>"/> 12 <property name="plugin.class" value=" sk.zdila.josm.plugin.simplify.SimplifyAreaPlugin"/>12 <property name="plugin.class" value="org.openstreetmap.josm.plugins.simplifyarea.SimplifyAreaPlugin"/> 13 13 <property name="plugin.description" value="Simplify area by removing nodes on very obtuse angles. This can be constrained by maximum removed area size. Also average nearby nodes."/> 14 14 <property name="plugin.icon" value="images/preferences/simplifyArea.png"/> -
applications/editors/josm/plugins/simplifyarea/src/org/openstreetmap/josm/plugins/simplifyarea/SimplifyAreaAction.java
r34556 r34586 1 1 // License: GPL. For details, see LICENSE file. 2 package sk.zdila.josm.plugin.simplify;2 package org.openstreetmap.josm.plugins.simplifyarea; 3 3 4 4 import static java.lang.Math.cos; … … 378 378 final double distanceWeight = Math.abs(crossTrackError(coord1, coord2, coord3)) / distanceThreshold; 379 379 380 weight = !closed && i == len - 1|| // don't remove last node of the not closed way380 weight = (!closed && i == len - 1) || // don't remove last node of the not closed way 381 381 nodeGluesWays(prevNode) || 382 382 angleWeight > 1.0 || areaWeight > 1.0 || distanceWeight > 1.0 ? Double.POSITIVE_INFINITY : -
applications/editors/josm/plugins/simplifyarea/src/org/openstreetmap/josm/plugins/simplifyarea/SimplifyAreaPlugin.java
r33918 r34586 1 1 // License: GPL. For details, see LICENSE file. 2 package sk.zdila.josm.plugin.simplify;2 package org.openstreetmap.josm.plugins.simplifyarea; 3 3 4 4 import org.openstreetmap.josm.gui.MainApplication; -
applications/editors/josm/plugins/simplifyarea/src/org/openstreetmap/josm/plugins/simplifyarea/SimplifyAreaPreferenceSetting.java
r34556 r34586 1 1 // License: GPL. For details, see LICENSE file. 2 package sk.zdila.josm.plugin.simplify;2 package org.openstreetmap.josm.plugins.simplifyarea; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr;
Note:
See TracChangeset
for help on using the changeset viewer.