<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
  </body>
</html>