<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">
<p>Hello Javier</p>
<p>Even can answer better, but I suspect that the code applies the
convention saying that W > E means that the envelope is
crossing the anti-meridian. There is a picture there:<br>
</p>
<blockquote>
<p><a class="moz-txt-link-freetext" href="https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/GeneralEnvelope.html#crossing-the-anti-meridian-of-a-geographic-crs-heading">https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/GeneralEnvelope.html#crossing-the-anti-meridian-of-a-geographic-crs-heading</a></p>
</blockquote>
<p>With such convention, the tests for contains and intersections
become more complicated. There is a picture for contains, but
the situation is similar for intersection:</p>
<blockquote><a class="moz-txt-link-freetext" href="https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/AbstractEnvelope.html#contains(org.opengis.geometry.Envelope)">https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/AbstractEnvelope.html#contains(org.opengis.geometry.Envelope)</a><br>
</blockquote>
<p>Martin</p>
<br>
</div>
</body>
</html>