hi, I would like to index segments (linestring) in...
# general
a
hi, I would like to index segments (linestring) in pinot. and by given point search the closest segments. ( each segment have an id ) How to index my segements in the schema?
m
I am unclear, but sounds like you might be talking about GeoSpatial indexing? https://docs.pinot.apache.org/basics/indexing/geospatial-support
a
yes I know 🙂 but pinot have only point indexing, and not Linestring for example, am I right? or I misunderstood something? In my use case I have road segments (Linestring) and I would like to index them , and make queries like. by given point give all the segements in 5 meters raduis.
m
@Yupeng Fu ^^
y
Not directly
But you can create h3 index per segment and use that for retrieval
a
how?
what do you mean? how to create h3 index per segment? and how to save it in apache pinot? in what field type?
@Yupeng Fu
y
you need to use h3 functions https://h3geo.org/docs/api/regions
a
and? how I index it in pinot?
as bytes? like here that? and when I query this field how do pinot know this is geometry field that should be queried by h3 index?
another question, this is only polygons, I need linestring.
@Kishore G maybe you can have answers? 🙂