- Timestamp:
- 2018-08-10T19:05:33+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java
r13589 r14115 31 31 import org.openstreetmap.josm.data.osm.Way; 32 32 import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor; 33 import org.openstreetmap.josm.data.preferences.BooleanProperty; 33 34 import org.openstreetmap.josm.data.projection.Projection; 34 35 import org.openstreetmap.josm.data.projection.Projections; … … 46 47 private final DataSet data; 47 48 private final Projection projection; 48 private static final boolean SKIP_EMPTY_NODES = true;49 private static final BooleanProperty SKIP_EMPTY_NODES = new BooleanProperty("geojson.export.skip-empty-nodes", true); 49 50 50 51 /** … … 166 167 if (p.isIncomplete()) { 167 168 return; 168 } else if (SKIP_EMPTY_NODES && p instanceof Node && p.getKeys().isEmpty()) {169 } else if (SKIP_EMPTY_NODES.get() && p instanceof Node && p.getKeys().isEmpty()) { 169 170 return; 170 171 }
Note:
See TracChangeset
for help on using the changeset viewer.