Select to view content in your preferred language

SOE + Flex + passing Geometry objects

490
1
08-08-2011 09:52 AM
Akhiljaggarwal
New Contributor
Hi,

How do I pass geometry objects from a client app such as Flex directly to arcobjects? Seemingly, AOs cannot process geometry passed as string from Flex.
For example, I would like to pass a polygon feature to AO as a Polygon object, there seems to be no other way than to compose a Polyline from a Point class and then pass it as a ring to Polygon. Is there a simpler solution?

Thanks.
Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
The simpler might just be to use the SOE library to convert the features to JSON via JsonObject and that JSON can be parsed in Flex via FeatureSet.fromJSON()
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/FeatureSet.html#fromJSON()

If you are using .NET, I've made some .NET objects that will serialze to their Flex counterparts, but I have not tried them with a SOE, only in a pure serverside AO RemoteObjects service.
https://github.com/odoe/esri_dotnet_flex
0 Kudos