<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 18/11/2024 à 22:27, Andrew Bell a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CACJ51z2jwDEvbOgfPAa2G_FrsD1xks9492m_ems84-UL125LXw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">My biggest question is why you would mix vector and raster operations
in the CLI.
And since we're taking on changing things, I would wonder why those
two parts of the codebase are commingled. Is there a strong reason not
to have an OGR project that does vector operations and a GDAL project
that does raster operations? It seems like mostly an historical
artifact.</pre>
</blockquote>
<p>At the beginning of times, GDAL and OGR were separate
sub-projects, and it was thought in
<a class="moz-txt-link-freetext" href="https://gdal.org/en/latest/development/rfc/rfc46_gdal_ogr_unification.html">https://gdal.org/en/latest/development/rfc/rfc46_gdal_ogr_unification.html</a>
(almost 10 years ago) that they should be unified, at least as
some aspects, driver management, dataset structure and metadata
handling, were common between both. Not to mention formats that
can contain vector and raster metadata in the same container.
Admittedly, some aspects of the unification could still be
perfected, like converting a dataset with both types at once.
Mostly an implementation detail at the driver level...</p>
<p>In practice there are operations like rasterization, gridding,
contouring, polygonization that mix both data types. So
considering them as fully separate is not so obvious. I believe
that having "gdal convert in.shp out.parquet" and "gdal convert
in.tif out.nc" work in an identical way would be big progress
compared to "ogr2ogr out.parquet in.shp" and "gdal_translate
in.tif out.nc" . It has just crossed my mind that "gdal convert
in.shp out.tif" could do a rasterization behind the scenes, but
that's probably pushing syntax sugar too far...<br>
</p>
<blockquote type="cite"
cite="mid:CACJ51z2jwDEvbOgfPAa2G_FrsD1xks9492m_ems84-UL125LXw@mail.gmail.com"><span
style="white-space: pre-wrap">
</span></blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.</pre>
</body>
</html>