lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgamarra <rgama...@gmail.com>
Subject polygon self-crossing
Date Mon, 05 Jun 2017 00:41:06 GMT
Hi there all,

I'm using the RPT field type to perform geospatial polygonal searches (e.g.
https://cwiki.apache.org/confluence/display/solr/Spatial+Search)/

How do you recommend with self-crossing polygons (8 figure or bow-tie, for
example)?

Decompose it in a multi polygon? Setting to "none" validation rule: in what
cases the unexpected behavior arises?

or, configure different validation rules at the schema level?

According to https://lucene.apache.org/core/6_2_0/core/org/apache/
lucene/geo/Polygon.html

   1. The polygon must not be self-crossing, otherwise may result in
   unexpected behavior.

The expected behavior of the search is that of searching for points in each
of the lobes of the 8 figure, for the example given.

Best regards


--
Rodolfo Federico Gamarra

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message