2

Is there a way in Solr to find center of polygon. we have a GIS dataset indexed which has polygon and multipolygon. is there a direct way to find the center of polygon or multi polygon

Uttkarsh Jain
  • 228
  • 1
  • 12
  • Find as in what context? Return the coordinates of the polygon center, or query polygons by their center / offset / distance to center? – MatsLindh Dec 23 '19 at 07:10
  • context is to get polygon center point. say, i will query Solr by name = "abc" this record has property which hold polygon boundary i need to get the center point of this polygon. – Uttkarsh Jain Dec 23 '19 at 07:50
  • any help on this ? – Uttkarsh Jain Dec 26 '19 at 07:27
  • I'd strongly suggest pre-calculating the polygon center point - there are multiple ways of doing it, and it isn't necessary to do it when the same result is valid for each document. – MatsLindh Dec 26 '19 at 20:21

0 Answers0