[PROJ] Efficiently obtaining all known ellipsoid details

Nyall Dawson nyall.dawson at gmail.com
Tue May 19 00:56:50 PDT 2020


On Tue, 19 May 2020 at 09:13, Even Rouault <even.rouault at spatialys.com> wrote:
>
> how slow is that exactly ? There are just 303 ellipsoids in the DB, and those are relatively simple objects, so that's a bit surprising.

> We have proj_get_crs_info_list_from_database() (which was justified given that there are close to 10K CRS and those are more complex objects) that could serve as an inspiration for similar functionality for ellipsoids, but I think it could be worth finding if there is an obvious bottleneck with the existing infrastructure.

Actually - I was mistaken. Digging further into the profile it wasn't
the call to proj_ellipsoid_get_parameters/proj_create_from_database
which is taking the time, it's some code which happens just after this
but inside that same loop!

Nyall


More information about the PROJ mailing list