Select to view content in your preferred language

Buffer multipoint and polyline in flex

644
1
05-12-2011 06:25 PM
JacksonTrappett
Frequent Contributor
I have a widget that, as part of a reporting process, uses the Geometry Service to get a buffer of some user selected features.  It works fine if the user selects polygons, but if they select points or lines, the geometry service returns null instead of the buffer.  The odd thing is that if I use fiddler to capture the call to the geometry service, and then submit that exact call myself through the rest endpoint, I get the buffer returned.  Here are some screenshots that show what I'm talking about:

Attachments:
#1 Submitting with flex (captured via fiddler showing the parameters that were send and the empty response below).
#2 The exact same settings filled into the form on the geometry service rest endpoint.
#3 The response from the rest endpoint, as you can see it is giving me back geometries instead of nothing.

As far as I can tell, the two are exactly the same so I don't understand why I'd get different responses.

Any ideas?

Thanks!
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: jtrappet2010

I contacted support on this, and Sumedha S. found my issue.  I still don't quite understand exactly what was wrong but I was building my multipoints and polylines incorrectly in my code.  I changed how I build them based on the suggestion from support and now it works fine.
0 Kudos