Drawing Curves/Bezier Lines

3193
1
08-15-2013 11:14 AM
Labels (1)
KeithGemeinhart
Occasional Contributor
I'm looking for some pointers on how to draw a curved line or bezier line in WPF runtime. The WPF runtime sample application has a drawing mode for straight line, polyline, and freehand. However, no curve or bezier.

Here is an example in Silverlight, so it seems like it should be possible in WPF as well. http://broux.dominique.free.fr/Silverlight/InteractiveDrawing/InteractiveDrawing.html ... Here is the page describing the app as well as source code download: http://www.arcgis.com/home/item.html?id=1e432da7e74f4402bd43a5863167022d ... I haven't had a chance to do a deep dive into the source code yet. It looks somewhat complicated at first glance.


P.S. I do have an ArcObjects engine runtime license available as part of my solution as well - just in case a hybrid solution would work.
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
Hi,

There is currently no support for true curves in feature services and therefore the ArcGIS Runtime SDKs don't support the creation of such geometries (the Silverlight sample you mention is creating pure SL/WPF elements). Feature services will return a densified version of the curve, and although it is possible to allow updates of true curves via feature services, but they will be replaced by the densified geometry submitted by the client, therefore that option is off by default. For more information see http://resources.arcgis.com/en/help/main/10.1/index.html#//015400000393000000.

You should also be mindful of the fact that creating a hybrid application using both an ArcGIS Runtime deployment and an ArcGIS Engine deployment will require you to license both on the deployment machine, increasing the cost of your application, unless you're using the Basic services-only functionality in the WPF API which is a free license.

Cheers

Mike
0 Kudos