Select to view content in your preferred language

Combine Spatial Query Sample with Query With buffer

952
4
Jump to solution
05-04-2014 03:48 PM
HushamHassan
Regular Contributor
Is it possible to combine both sample in one and adding textbox for the buffer distance.  I searched around the forum I could not find any example. I am using Sl 3.0 and C#

Many thanks
0 Kudos
1 Solution

Accepted Solutions
AhmedEl-Sisi
Deactivated User
thank you,    the question is it possible to combine that sample with spatial Query sample.

of course you can, you should just break them down:
1-Draw on Map.
2-If user enters buffer value Apply buffer on drawn geometry.
3-After buffer completed Apply Spatial Filter with buffer geometry.

I attached some code for the concept.
Regards,

View solution in original post

0 Kudos
4 Replies
AhmedEl-Sisi
Deactivated User
There is already sample for Querying using buffer.
You just need to add a textbox to get your buffer distance.

Regards,
0 Kudos
HushamHassan
Regular Contributor
thank you,    the question is it possible to combine that sample with spatial Query sample.
0 Kudos
AhmedEl-Sisi
Deactivated User
thank you,    the question is it possible to combine that sample with spatial Query sample.

of course you can, you should just break them down:
1-Draw on Map.
2-If user enters buffer value Apply buffer on drawn geometry.
3-After buffer completed Apply Spatial Filter with buffer geometry.

I attached some code for the concept.
Regards,
0 Kudos
HushamHassan
Regular Contributor
Ahmed
Thanks very much! That did the trick.  you provided a complete solution to my problem. 🙂

Regards
0 Kudos