Ignore:
Timestamp:
2017-06-28T01:00:20+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #14974 - geojson export: use Polygon only for closed ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java

    r12092 r12439  
    107107            if (w != null) {
    108108                final JsonArrayBuilder array = getCoorsArray(w.getNodes());
    109                 if (ElemStyles.hasAreaElemStyle(w, false)) {
     109                if (w.isClosed() && ElemStyles.hasAreaElemStyle(w, false)) {
    110110                    final JsonArrayBuilder container = Json.createArrayBuilder().add(array);
    111111                    geomObj.add("type", "Polygon");
Note: See TracChangeset for help on using the changeset viewer.