<div dir="ltr"><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">It depends on how precise and how general you want to be. Crudely, you </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">can divide the distance in meters </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">by 1860*60 (1 minute (latitude on sphere) = 1 nautical ml = 1.86km). Not </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">going to be accurate in mid/high latitudes. Better is convert point to </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">meters, create another point  maxDIS away in meters, convert that point </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">back to lat/long and then calculate maxDIS from pythag. </span><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Thanks for your reply.</span></div>
<div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">Sorry For my dumbness.</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">
Yeah, I understand we can do some rough conversion here if precision is not an issue.</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">
But about the solution you mentioned convert point to meters. Not sure how to do that, could you give me some hint?</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small;color:rgb(0,0,0)">Thanks : )</div></div><div class="gmail_extra"><br clear="all"><div>Sincerely Yours<div>Tingting Cao</div>
</div>
<br><br><div class="gmail_quote">On 6 January 2014 15:05, Phil Scadden [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5096646&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        On 6/01/2014 4:28 p.m., smilectt wrote:
<br>> Some other topics mentioned the geoserver does not support specify the
<br>> distanceUnits and in fact the  maxDis is the degree distance to the center point.
<br>You got it. Actually, maxDis will be interpreted as being in the units 
<br>of layers you are querying. If the native spatial reference is in 
<br>degrees, then it will be interpreted as degrees.
<br>> I didn't quite get it, does the degree distance mean the longitude/latitude
<br>> degree differences with the point we are comparing?
<br>Yes.
<br>> but how can I fix it that I can filter them according to the value expressed
<br>> in meters (as it makes more sense)
<br>It depends on how precise and how general you want to be. Crudely, you 
<br>can divide the distance in meters
<br>by 1860*60 (1 minute (latitude on sphere) = 1 nautical ml = 1.86km). Not 
<br>going to be accurate in mid/high latitudes. Better is convert point to 
<br>meters, create another point  maxDIS away in meters, convert that point 
<br>back to lat/long and then calculate maxDIS from pythag.
<br><br><br>Notice: This email and any attachments are confidential.
<br>If received in error please destroy and immediately notify us.
<br>Do not copy or disclose the contents.
<br><br>_______________________________________________
<br>Users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=5096494&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/Utilize-DWITHIN-spatial-filter-in-OpenLayers-tp5096493p5096494.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Utilize-DWITHIN-spatial-filter-in-OpenLayers-tp5096493p5096494.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Utilize DWITHIN spatial filter in OpenLayers, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Utilize-DWITHIN-spatial-filter-in-OpenLayers-tp5096493p5096646.html">Re: Utilize DWITHIN spatial filter in OpenLayers</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>