src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Append or prepend a node to a way depending of if refNode is the last or first element of the way
     * 
     * @param refNode last or first way node
     * @param nextNode the new node to add
     * @param way the way to perform the operation on
     * @throws OsmIllegalOperationException
     */
Append or prepend a node to a way depending of if refNode is the last or first element of the way

@param refNode last or first way node
@param nextNode the new node to add
@param way the way to perform the operation on
@throws OsmIllegalOperationException
Append or prepend a node to a way depending of if refNode is the last or first element of the way @param refNode last or first way node @param nextNode the new node to add @param way the way to perform the operation on @throws OsmIllegalOperationException
public void appendNodeToWay(final Node refNode, final Node nextNode, final Way way) throws OsmIllegalOperationException {
        dirty = true;
        undo.save(way);
        try {
            validateWayNodeCount(way.nodeCount() + 1);
            apiStorage.insertElementSafe(way);
            way.appendNode(refNode, nextNode);
            way.updateState(OsmElement.STATE_MODIFIED);
            onElementChanged(null, way);
        } catch (StorageException e) {
            Log.e(DEBUG_TAG, "appendNodeToWay got " + e.getMessage());
        }
    }
public void appendNodeToWay ( final Node refNode , final Node nextNode , final Way way ) throws OsmIllegalOperationException { dirty = true ; undo . save ( way ) ; try { validateWayNodeCount ( way . nodeCount ( ) + 1 ) ; apiStorage . insertElementSafe ( way ) ; way . appendNode ( refNode , nextNode ) ; way . updateState ( OsmElement . STATE_MODIFIED ) ; onElementChanged ( null , way ) ; } catch ( StorageException e ) { Log . e ( DEBUG_TAG , "appendNodeToWay got " + e . getMessage ( ) ) ; } }
Append or prepend a node to a way depending of if refNode is the last or first element of the way
Append or prepend a node to a way depending of if refNode is the last or first element of the way
// TODO handle OOM