[PROJ] spatialreference.org updated!

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Jan 8 07:36:58 PST 2024


Thank you Howard for the nice comments.

I started this project a few months ago after Even Rouault suggested me the
idea based on my previous development of https://crs-explorer.proj.org/
The main idea is exactly the same as in the CRS-Explorer: generate in
python a JSON file with all the CRSs available in PROJ using PyPROJ, and
display the information in a webpage statically hosted in GitHub pages
(helped by JavaScript). The whole process takes less than 4 minutes in
gh-pages for more than 13000 CRSs (including the download of the PROJ
docker image).

For spatialreference.org I learned some more python (including Jinja2).
Special thanks to my wife, who helped me with that.

Keeping the backwards compatibility (not completely, but I hope that
enough) was probably the hardest part. That forced me to do things in a
specific way, even knowing that it was not the best.
I kept the style from the 2000's to have minimal disruption (the important
thing was the data!) and do not think so much about UI so far. If you do
not pay attention you may not notice that the page has changed! (in the
footer you have the data compilation date ;) Maybe somebody with more UI
skills wants to contribute (keeping it lean and fast!).

Something to not forget is that GitHub pages has limitation in size and
requests. I do not think that requests are going to be a problem. But
size... we are not far from the limit. See that we are producing more than
100,000 files and directories.

Probably some of you are asking "what is the difference with
https://crs-explorer.proj.org/ ?"
Well, now both are up to date on PROJ (that is up to date on EPSG on every
release). However the way to search / explore the data is different, and
also how to display it. Using one or the other depends on your needs and
preferences.

Enjoy it!

Cheers
--
Javier Jimenez Shaw

On Mon, 8 Jan 2024 at 15:33, Howard Butler via PROJ <proj at lists.osgeo.org>
wrote:

> All,
>
> I would like to congratulate Javier Jimenez for his work to completely
> refactor https://spatialreference.org <https://spatialreference.org/>.
> First released in 2007, spatialreference.org <http://spatialreference.org/>
> was the first website to provide a canonical home for coordinate systems at
> fixed URL locations that could be referred to by other web infrastructure.
> Javier took the crusty Django site and completely refactored it to make it
> work better, be easy to update, and preserved its canonical URL history.
> Some highlights include:
>
> * Like https://crs-explorer.proj.org <https://crs-explorer.proj.org/>,
> spatialreference.org <http://spatialreference.org/> is now a statically
> generated site
> * It is fast :)
> * It is produced using PROJ.
> * It is open source https://github.com/OSGeo/spatialreference.org/ If you
> want to host your own internal mirrors, you can run the scripts and build
> your own deployment
> * It will be refreshed at least at the cadence of major PROJ releases
> (previously had been updated only once or twice in its entire 15+ year
> history)
> * It supports CORS (thanks GitHub Pages) for pulling in PROJJSON or WKT
> into your web applications
>
> I hope Javier has more to add about the effort, but I would like to thank
> him profusely for taking this on and completing it. It is a wonderful
> update to a widely used community resource.
>
> Thanks!
>
> Howard
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240108/53b0aaac/attachment.htm>


More information about the PROJ mailing list