Hi

I need to obtain distance between point and MULTILINESTRING.
MULTILINESTRINGS are stored in Solr as geometry using JST library
configured as follow:

<fieldType name="location_rpt"
class="solr.SpatialRecursivePrefixTreeFieldType"
spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory"

autoIndex="true"
validationRule="repairBuffer0"
distErrPct="0.0025"
maxDistErr="0.001"
distanceUnits="kilometers" />

I'm using geodist to return distance between a coord an the geometries  but
the funciotn seems to work wrong, it doesn't return the right distance.

Is it possible to obtain distance between point and MULTILINESTRING using
Solr?
Is it possible to obtain distance using  JST library?

I'm using Solr 7

Thank you

Maruska

Reply via email to