Changeset 15785 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-01-27T02:48:54+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18613 - discourage upload of geojson data

File:
1 edited

Legend:

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

    r15684 r15785  
    2929import org.openstreetmap.josm.data.osm.Relation;
    3030import org.openstreetmap.josm.data.osm.RelationMember;
     31import org.openstreetmap.josm.data.osm.UploadPolicy;
    3132import org.openstreetmap.josm.data.osm.Way;
    3233import org.openstreetmap.josm.data.projection.Projection;
     
    347348    protected DataSet doParseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException {
    348349        setParser(Json.createParser(source));
     350        ds.setUploadPolicy(UploadPolicy.DISCOURAGED);
    349351        try {
    350352            parse();
Note: See TracChangeset for help on using the changeset viewer.