Ignore:
Timestamp:
2012-11-18T13:57:36+01:00 (13 years ago)
Author:
bastiK
Message:

drop unnecessary properties for upload to the OSM API in order to save bandwidth

The properties are: user, uid, visible, action and timestamp. In addition drop lat & lon for deleted nodes. (To undelete a primitive, it suffices to include it in a <modify> section, the 'visible' property is ignored by the server.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r5587 r5589  
    362362    /**
    363363     * Calculate MD5 hash of a string and output in hexadecimal format.
    364      * Output has length 32 with characters in range [0-9a-f]
     364     * @param data arbitrary String
     365     * @return MD5 hash of data, string of length 32 with characters in range [0-9a-f]
    365366     */
    366367    public static String md5Hex(String data) {
     
    382383
    383384    /**
    384      * Converts a byte array to a string of hexadecimal characters. Preserves leading zeros, so the
    385      * size of the output string is always twice the number of input bytes.
     385     * Converts a byte array to a string of hexadecimal characters.
     386     * Preserves leading zeros, so the size of the output string is always twice
     387     * the number of input bytes.
     388     * @param bytes the byte array
     389     * @return hexadecimal representation
    386390     */
    387391    public static String toHexString(byte[] bytes) {
Note: See TracChangeset for help on using the changeset viewer.