src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Add a node at the end of a way
     * 
     * @param node the node to add
     * @param way the way to add the node to
     * @throws OsmIllegalOperationException
     */
Add a node at the end of a way

@param node the node to add
@param way the way to add the node to
@throws OsmIllegalOperationException
Add a node at the end of a way @param node the node to add @param way the way to add the node to @throws OsmIllegalOperationException
public void addNodeToWay(final Node node, final Way way) throws OsmIllegalOperationException {
        dirty = true;
        undo.save(way);
        try {
            validateWayNodeCount(way.nodeCount() + 1);
            apiStorage.insertElementSafe(way);
            way.addNode(node);
            way.updateState(OsmElement.STATE_MODIFIED);
            onElementChanged(null, way);
        } catch (StorageException e) {
            Log.e(DEBUG_TAG, "addNodeToWay got " + e.getMessage());
        }
    }
public void addNodeToWay ( final Node node , final Way way ) throws OsmIllegalOperationException { dirty = true ; undo . save ( way ) ; try { validateWayNodeCount ( way . nodeCount ( ) + 1 ) ; apiStorage . insertElementSafe ( way ) ; way . addNode ( node ) ; way . updateState ( OsmElement . STATE_MODIFIED ) ; onElementChanged ( null , way ) ; } catch ( StorageException e ) { Log . e ( DEBUG_TAG , "addNodeToWay got " + e . getMessage ( ) ) ; } }
Add a node at the end of a way
Add a node at the end of a way
// TODO handle OOM