Select to view content in your preferred language

Copy and Paste Graphics with esri:Editor

601
2
03-02-2012 11:11 AM
TylerWaring
Frequent Contributor
Greetings Everyone,

I am trying to create a very simple edit tool for non-GIS users to develop and manage their own datasets. I have a user that would like to develop a parcel based dataset without having to get into the ins and outs of topology and complex editing. I would like to design a tool that allows the user to select a parcel and commit it to another parcel based layer. Is a workflow like this possible with the esri:Editor class?

Thanks,

Tyler Waring
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Is a workflow like this possible with the esri:Editor class?


Not with the Editor class, but it's possible with the API.  The key is to use select the graphics from one layer, then use FeatureLayer.applyEdit() on another.  A sample that shows part of this is:
http://help.arcgis.com/en/webapi/flex/samples/index.html#/Edit_without_Editor/01nq00000043000000/

FeatureLayer(graphic.graphicsLayer).applyEdits(null, [ graphic ], null);
0 Kudos
IainCampion
Deactivated User
I can confirm this can be done ...

i've created a widget that queries for a blast holes ... does a convexhull , does 2 buffers  all as graphics ...

then i push them into a feature service (for current exclusion zone) .. works really nicely

currentGeometry = graphic.geometry;
     
     //test pushing into feature service
     var editfs:FeatureLayer = new FeatureLayer("http://chchwebapp01/ArcGIS/rest/services/Editing/BlastZones/FeatureServer/0");
     
     FeatureLayer(editfs).applyEdits([ graphic ], null, null);


just need now to do the attributes stuff to set them automatically ...
0 Kudos