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 <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/> On Thu, May 22, 2014 at 3:45 PM, regina <[email protected]> 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. >
