Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C381112BE for ; Thu, 22 May 2014 12:49:11 +0000 (UTC) Received: (qmail 98353 invoked by uid 500); 22 May 2014 12:49:11 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 98297 invoked by uid 500); 22 May 2014 12:49:11 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 98286 invoked by uid 99); 22 May 2014 12:49:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:49:11 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,TVD_FROM_1,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of itamar.synhershko@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:49:07 +0000 Received: by mail-ob0-f172.google.com with SMTP id wp18so3706658obc.17 for ; Thu, 22 May 2014 05:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=YNPpqIH/ZmbeSMKoRiPfKevnGAvlSxMyvhXW4dPVInI=; b=RQwvc51jIIrdpYBxlFro99VTuK0nxpAipSY3FnKL4QVrRiv7VS4SCw07BcWg04SmGS PXdf0GaNUHTOic8C1wf4/vE9CPEskKv/tNlFM3Pomf+L03wixz4yeh9z+2G20MwAZZ3c b3+/NYL/JrKcenaf4Vm36+qXsNquDcgVYZHuLN5/1A6EGSe2EJQGP9PTqAjBS+USgNtj j3Ds2L7h3pWXTOH+Qi+qBucWoe9vcl5u0oZrPKNFXyv4qYsD801i9CM3CVtxkD296hMV kzd4P2lca8kOrRhAlIjUSbpTyM4iAy4eOEDSf9/VQc89Xhf8WnaYH5EzOfercgczxMOY mUPg== MIME-Version: 1.0 X-Received: by 10.60.155.212 with SMTP id vy20mr36664864oeb.4.1400762926765; Thu, 22 May 2014 05:48:46 -0700 (PDT) Sender: itamar.synhershko@gmail.com Received: by 10.60.30.232 with HTTP; Thu, 22 May 2014 05:48:46 -0700 (PDT) In-Reply-To: <1400762724536-4137641.post@n3.nabble.com> References: <1400762724536-4137641.post@n3.nabble.com> Date: Thu, 22 May 2014 15:48:46 +0300 X-Google-Sender-Auth: kLjlRm66r07qYe9BBWKJWARhCX0 Message-ID: Subject: Re: relationships between shapes in Lucene-Spatial From: Itamar Syn-Hershko To: general@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7bfcf52caa1de604f9fc88b1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bfcf52caa1de604f9fc88b1 Content-Type: text/plain; charset=UTF-8 You have to remember there is a margin error of about 2.5%. The Lucene.NET port is in par with spatial4j 0.3. -- Itamar Syn-Hershko http://code972.com | @synhershko Freelance Developer & Consultant Author of RavenDB in Action On Thu, May 22, 2014 at 3:45 PM, regina wrote: > Hi, > I am looking into how Lucene-Spatial handles relationships between shapes, > and seeing some weird (or at least I think that they are weird) results. > I am trying to work out how the relationships are calculated and I believe > I > understand the theory behind it. > The results I am seeing, does not fit into the theory I've read up to now. > For example: > I am trying to test whether POLYGON ((4.5 4.5, 6.5 4.5, 6.5 6.5, 4.5 6.5, > 4.5 4.5)) is within POLYGON ((6 6, 7 6, 7 7, 6 7, 6 6)). Surprisingly, I am > seeing that it is "within". > I am trying this with GeohashPrefixTree strategy and max tree level 8. > > Is this the answer that should be getting, or am I doing something wrong? > > It should be noted that I am using .Net port of Lucene-Spatial to query > this. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/relationships-between-shapes-in-Lucene-Spatial-tp4137641.html > Sent from the Lucene - General mailing list archive at Nabble.com. > --047d7bfcf52caa1de604f9fc88b1--