Changeset 35797 in osm for applications/editors/josm


Ignore:
Timestamp:
2021-07-20T13:58:34+02:00 (3 years ago)
Author:
Don-vip
Message:

Edigeo parsing: set default simplification max-error to 0.20, make it configurable with cadastre.simplify-way.max-error advanced property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoFileTHF.java

    r35186 r35797  
    1616import org.openstreetmap.josm.data.osm.DataSet;
    1717import org.openstreetmap.josm.plugins.fr.cadastre.download.CadastreDownloadData;
     18import org.openstreetmap.josm.spi.preferences.Config;
    1819import org.openstreetmap.josm.tools.Logging;
    1920
     
    495496        }
    496497        ds.getWays().forEach(w -> {
    497             SequenceCommand command = SimplifyWayAction.createSimplifyCommand(w, 0.25);
     498            SequenceCommand command = SimplifyWayAction.createSimplifyCommand(w,
     499                    Config.getPref().getDouble("cadastre.simplify-way.max-error", 0.20));
    498500            if (command != null) {
    499501                command.executeCommand();
Note: See TracChangeset for help on using the changeset viewer.