[PROJ] inspecting embedded proj.db
Even Rouault
even.rouault at spatialys.com
Wed Nov 5 09:18:04 PST 2025
Hi Javier,
$ objdump -t lib/libproj.so | grep proj_db_data
0000000000682660 l O .rodata 000000000093b000 proj_db_data
$ dd if=lib/libproj.so of=my_proj.db bs=1 skip=$((16#0000000000682660))
count=$((16#000000000093b000))
$ sqlite3 my_proj.db "pragma integrity_check"
ok
Even
Le 05/11/2025 à 17:58, Javier Jimenez Shaw via PROJ a écrit :
> Hi
>
> I am considering to embed proj.db in libproj.so.
> Sometimes I want to look at proj.db later to see why some
> transformation is not doing what I expect. (I modify the db)
>
> Is there a way to "extract" proj.db from the library?
>
> I use a normal "DB Browser for SQLite" in my ubuntu to inspect it.
>
> It is not critical. I see that proj.db is in the data folder after
> compilation, so I can recompile and watch it. It is more curiosity.
>
> Thanks.
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj
--
http://www.spatialys.com
My software is free, but my time generally not.
More information about the PROJ
mailing list