<div dir="ltr"><div>Hi all,<br></div><div><br></div><div>I am currently working on the GSoC project of `<b>Implementating a pre-sorting methods before GiST index building</b>` and now try to borrow some ideas from <a href="https://github.com/postgres/postgres/blob/master/src/backend/access/gist/gistproc.c#L1761">z-order implementation</a> in Postgres.</div><div><div>I am wondering, however, if I should use lower level postgres functions like `<b><a href="https://github.com/postgres/postgres/blob/master/src/backend/access/gist/gistproc.c#L1576" target="_blank">point_zorder_internal</a></b>` and `<a href="https://github.com/postgres/postgres/blob/master/src/backend/access/gist/gistproc.c#L1604" target="_blank"><b>ieee_float32_to_uint32</b></a>` and data structure like `<b><a href="https://github.com/postgres/postgres/blob/master/src/include/utils/geo_decls.h#L140" target="_blank">BOX</a></b>`.</div><div>What's more, I don't know if it is necessary to implement a util function `<b>ieee_float32_to_uint32</b>` in lwgeom.</div></div><div><br></div><div>I appreciate your ideas and suggestions. Feel free to talk to me.</div><div><br></div><div>Best regards,</div><div>Han</div></div>