<div dir="ltr"><div>Hi</div><div><br></div><div>Inspecting the code of projinfo, I see a situation that may show the message <br></div><div>"Note: using '--spatial-test intersects' would bring more relevant results".</div><div>Looking at the code, it happens only when using "--spatial-test" option with "intersects" or default ("contains") both return 1 operation... but different.</div><div>How is that possible? I would expect that "intersects" contains all in "contains".<br></div><div><br></div><div>The code involved is this</div><div><br></div><div><span style="font-family:monospace">        list = CoordinateOperationFactory::create()->createOperations(<br>            nnSourceCRS, nnTargetCRS, ctxt);<br>        if (!spatialCriterionExplicitlySpecified &&<br>            spatialCriterion == CoordinateOperationContext::SpatialCriterion::<br>                                    STRICT_CONTAINMENT) {<br>            try {<br>                ctxt->setSpatialCriterion(<br>                    CoordinateOperationContext::SpatialCriterion::<br>                        PARTIAL_INTERSECTION);<br>                auto list2 =<br>                    CoordinateOperationFactory::create()->createOperations(<br>                        nnSourceCRS, nnTargetCRS, ctxt);<br>                spatialCriterionPartialIntersectionResultCount = list2.size();<br>                if (spatialCriterionPartialIntersectionResultCount == 1 &&<br>                    list.size() == 1 &&<br>                    list2[0]->nameStr() != list[0]->nameStr()) {<br>                    spatialCriterionPartialIntersectionMoreRelevant = true;<br>                }<br>            } catch (const std::exception &) {<br>            }<br>        }</span></div><div><span style="font-family:monospace"></span></div><div><span style="font-family:monospace">....</span></div><div><span style="font-family:monospace">        if (spatialCriterionPartialIntersectionMoreRelevant) {<br>           std::cout << "Note: using '--spatial-test intersects' would bring "<br>                        "more relevant results."<br>                     << std::endl;<br>       }</span></div><div><br></div><div>Thanks</div><div>Javier<br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div>