How to reshape polygon feature in qt/qml

2602
4
02-26-2016 08:13 AM
tanerkoka1
Occasional Contributor

Hi,

I have polygon feature and I want to reshape this feature how can I reshape this polygon feature ?

Thanks

Tags (3)
0 Kudos
4 Replies
LucasDanzinger
Esri Frequent Contributor

Are you wanting an interactive experience? We don't yet have a "sketch layer", but plan on having something similar at a future release. In the meantime, you could just take the geometry of the feature, create a graphic using that geometry, allow the user to click and edit the graphic, then once they are done, update the feature's geometry with the graphic's geometry.

tanerkoka1
Occasional Contributor

Hi,

Are there any examples about this ?

Thanks

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Not exactly, but you could probably use the "Difference Online" geometry sample in the QML Sample App to imitate a sketch. That is probably the best place to start.

-Luke

0 Kudos
LucasDanzinger
Esri Frequent Contributor

@tanerkoka1 the 100.12 release of ArcGIS Runtime now supports a SketchEditor, which greatly simplifies the workflow for sketching geometries on a map. This might be something worth considering integrating into your app. More details are in the release blog - https://community.esri.com/t5/arcgis-runtime-sdks-blog/sketcheditor-now-available-in-the-arcgis-runt... 

0 Kudos