[PROJ] Switch to proj-datumgrid-geotiff for PROJ 7 ?
Even Rouault
even.rouault at spatialys.com
Mon Jan 13 08:34:10 PST 2020
> So if the RFC4 world is tif (which is not objectionable; it seems
> obvious we are talking a container format for the same bits -- but tell
> me if I got that wrong), then it really seems simpler to just have that
> as the format.
Yes the results are binary identical whether you use NTv2/GTX or equivalent
TIFF files.
> You say "maintenance", but would there be new releases of packages
> derived from proj-datumgrid, for example for the benefit of proj5/6
> users that have no upgraded? Or do you mean "it will just sit there as
> an archive"?
That's an open question. As long as we maintain PROJ 6.x, we need at a minimum
to maintain proj-datumgrid. But the maintainance might be minimal. Just accept
fixes to currently delivered material, and new content would be for
proj-datumgrid-geotiff. And at some point, proj-datumgrid would be frozen.
> > Currently:
> > proj-datumgrid: total size: 703 MB as 5 .zip and 1.5 GB uncompressed
> > proj-datumgrid-geotiff: total size: 486 MB
>
> Do you expect the sizes for the same data to be different? It seems
> obvious that every file in the old directory needs to be transformed to
> tif and put in the new one -- but again I may be missing something.
The content in both repositories is the same. proj-datumgrid-geotiff files are
smaller because they use the TIFF Predictor mechanism which increases the
efficiency of deflate compression over what .zip can do, hence 486 MB < 703
MB.
> So if anything, I would think the repo should be split up into more
> archives. The current regions seem sensible, and then there perhaps is
> another axis of normal things vs. esoteric things. Right now I can't
> articulate that and I am not sure that makes sense.
>
> So for now, I would advise not changing the archive split plan, until we
> have a good basis for believing that some other plan is good.
Actually, in the github repo, I've changed the organization to be based on the
producer, mostly to make area of responisibility clearer:
https://github.com/osgeo/proj-datumgrid-geotiff
But currently everything is bundled in a single archive.
> > If we adopt proj-datumgrid-geotiff, I'd also willing to add a
> > proj-datumgrid- download utility that would download, in the
> > user-writable directory (or system directory), files from the CDN based
> > on criteria such as bounding box, producer name, country of the producer,
> > etc...
>
> As opposed to them being downloaded because someone asked for a
> transform that chose them?
More as an alternative to someone not wanting to enable on-demand grid
download, but also not wanting to download the whole set of grids because he
knows that he'll work only in a given area.
> It seems really clear to me that these sorts
> of asked-for operations are entirely necessary for the whole system to
> make sense. Surely there would be download by name. It would be really
> nice if one could ask "show me the transform pipelines that this request
> would invoke" and also to get from that "this is the list of grids you
> need and don't have for one or all" and then to be able to get them.
projinfo and related API already report which grids are missing.
> So what if someone has not enabled RFC4, and asks for a transform that
> would use a grid if it were there. Instead of downloading dynamically,
> what happens? I have always wanted that to throw an exception, unless
> the user has disabled something, but I know i'm way on one side on the
> "consistent outputs" side of things.
RFC4 has not changed anything on that side. We cannot impose a particular grid
to be used, because sometimes the guess done by PROJ is not necessarily the
most appropriate (because of implementation limitations, or sometimes just
because it needs a human brain to decide).
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the PROJ
mailing list