# Snapping/ touching doesn't work

**URL:** <https://community.thinkgeo.com/t/snapping-touching-doesnt-work/5570>\
**Category:** WebForms\
**Created:** [November 22, 2010, 11:13am UTC](https://community.thinkgeo.com/t/snapping-touching-doesnt-work/5570 "2010-11-22T11:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Rui](https://community.thinkgeo.com/u/Rui)\
**Post date:** [November 22, 2010, 11:13am UTC](https://community.thinkgeo.com/t/snapping-touching-doesnt-work/5570/1 "2010-11-22T11:13:47Z")

</div>

Hello.

I'm&nbsp;drawing&nbsp;a&nbsp;line&nbsp;and&nbsp;doing&nbsp;the&nbsp;snap&nbsp;to&nbsp;a&nbsp;line&nbsp;layer.&nbsp;Client-side&nbsp;the&nbsp;snap&nbsp;is&nbsp;successful,&nbsp;but&nbsp;on&nbsp;server&nbsp;side&nbsp;when&nbsp;I&nbsp;try&nbsp;to&nbsp;find&nbsp;which&nbsp;feature&nbsp;was&nbsp;intersected&nbsp;(touching)&nbsp;it&nbsp;can't&nbsp;find&nbsp;any.

I&nbsp;tried&nbsp;with&nbsp;Touches,&nbsp;Intersects,&nbsp;and&nbsp;nothing&nbsp;seems&nbsp;to&nbsp;work,&nbsp;allways&nbsp;return&nbsp;0&nbsp;elements.

Anyone&nbsp;had&nbsp;similar&nbsp;problem?

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 22, 2010, 11:16pm UTC](https://community.thinkgeo.com/t/snapping-touching-doesnt-work/5570/2 "2010-11-22T23:16:44Z")

</div>

&nbsp;

Hi,&nbsp;Rui  
Have&nbsp;you&nbsp;tried&nbsp;the&nbsp;“SpatialQueryAFeatureLayer”&nbsp;sample&nbsp;in&nbsp;our&nbsp;installed&nbsp;web&nbsp;samples?&nbsp;Can&nbsp;it&nbsp;work&nbsp;as&nbsp;expected?  
We&nbsp;have&nbsp;given&nbsp;a&nbsp;try&nbsp;for&nbsp;it&nbsp;using&nbsp;the&nbsp;latest&nbsp;version&nbsp;of&nbsp;WebEdition,&nbsp;and&nbsp;it&nbsp;works&nbsp;well.&nbsp;Maybe&nbsp;you&nbsp;have&nbsp;some&nbsp;misunderstanding&nbsp;for&nbsp;these&nbsp;spatial&nbsp;queries.  
&nbsp;  
The&nbsp;“Touching”&nbsp;only&nbsp;returns&nbsp;the&nbsp;features&nbsp;that&nbsp;have&nbsp;at&nbsp;least&nbsp;one&nbsp;boundary&nbsp;point&nbsp;in&nbsp;common&nbsp;with&nbsp;target&nbsp;shape,&nbsp;but&nbsp;no&nbsp;interior&nbsp;points.  
&nbsp;  
But&nbsp;the&nbsp;“Intersecting”&nbsp;only&nbsp;method&nbsp;returns&nbsp;the&nbsp;features&nbsp;that&nbsp;have&nbsp;at&nbsp;least&nbsp;one&nbsp;point&nbsp;in&nbsp;common&nbsp;with&nbsp;target&nbsp;shape.  
&nbsp;  
If&nbsp;the&nbsp;problem&nbsp;still&nbsp;exists,&nbsp;please&nbsp;send&nbsp;us&nbsp;the&nbsp;codes&nbsp;you&nbsp;are&nbsp;utilizing.  
Thanks,  
Khalil
