Examples of InsertAction


Examples of org.geotools.data.wfs.v1_0_0.Action.InsertAction

                        }else{
                            bounds.expandToInclude(g.getEnvelopeInternal());
                        }
                }
              }
                ts.addAction(getSchema().getTypeName(), new InsertAction(f));
            } catch (NoSuchElementException e) {
                WFS_1_0_0_DataStore.LOGGER.warning(e.toString());
            } catch (IllegalAttributeException e) {
                WFS_1_0_0_DataStore.LOGGER.warning(e.toString());
            }
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.InsertAction

            List<String> newFids = transactionResult.getInsertResult();
            int currentInsertIndex = 0;
            for (Iterator<Action> iter2 = actions.iterator(); iter2.hasNext();) {
                Action action = iter2.next();
                if (action instanceof InsertAction) {
                    InsertAction insertAction = (InsertAction) action;
                    if (currentInsertIndex >= newFids.size()) {
                        Logging.getLogger("org.geotools.data.wfs").severe(
                                "Expected more fids to be returned by " + "TransactionResponse!");
                        break;
                    }
                    String tempFid = insertAction.getFeature().getID();
                    String finalFid = newFids.get(currentInsertIndex);
                   
                    ds.addFidMapping(tempFid, finalFid);
                    currentInsertIndex++;
                }
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.InsertAction

    protected void combineActions() {
        EACH_FEATURE_TYPE: for (Iterator<List<Action>> iter = actionMap.values().iterator(); iter.hasNext();) {
            List<Action> actions = iter.next();

            removeFilterAllActions(actions);
            InsertAction firstAction = null;
            while (firstAction == null || !actions.contains(firstAction)) {
                firstAction = findFirstInsertAction(actions);
                if (firstAction == null)
                    continue EACH_FEATURE_TYPE;
                processInsertAction(actions, firstAction);
            }
            InsertAction current = findFirstInsertAction(actions);
            while (current != null && firstAction != current) {
                processInsertAction(actions, current);
                current = findFirstInsertAction(actions);
            }
        }
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.InsertAction

                while ((insertSearchIndex+1 < l.size()) && (next == null)) {
                    insertSearchIndex++;
                    Action a = (Action) l.get(insertSearchIndex);
                    if (a.getType() == Action.INSERT) {
                        InsertAction ia = (InsertAction) a;
                        next = ia.getFeature();

                        //run thorough the rest to look for deletes / mods
                        int i = insertSearchIndex + 1;

                        while ((i < l.size()) && (next != null)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.