<div dir="auto"><div>Would this way (coding language, not English) be easier?<div dir="auto"><br></div><div dir="auto">"elseif the destination CRS is geographic, the first axis is latitude, ..."</div><div dir="auto"><br></div><div dir="auto">I think the newline in between tries to make it more clear </div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 5 Nov 2026, 10:32 Ray at Daylon via gdal-dev, <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Hi everyone,</p>
<p>ogr_spatialref.h (current github source, master) has a comment
preceding the TransformBounds function which seems odd.</p>
/** \brief Transform boundary.<br>
*<br>
* This method is the same as the C function
OCTTransformBounds().<br>
*<br>
* Transform boundary densifying the edges to account for
nonlinear<br>
* transformations along these edges and extracting the
outermost bounds.<br>
*<br>
<b> * If the destination CRS is geographic, the first axis is
longitude, </b><br>
* and xmax < xmin then the bounds crossed the antimeridian.<br>
* In this scenario there are two polygons, one on each side of
the<br>
* antimeridian. The first polygon should be constructed with
(xmin, ymin,<br>
* 180, ymax) and the second with (-180, ymin, xmax, ymax).<br>
*<br>
<b> * If the destination CRS is geographic, the first axis is
latitude,<br>
</b> * and ymax < ymin then the bounds crossed the
antimeridian.<br>
* In this scenario there are two polygons, one on each side of
the<br>
* antimeridian. The first polygon should be constructed with
(ymin, xmin,<br>
* ymax, 180) and the second with (ymin, -180, ymax, xmax).<br>
<p><br>
</p>
<p>If the destination CRS is geographic, how can the first axis be
longitude and latitude?</p>
<p>Ray</p>
<p><br>
</p>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div></div></div>