Le ven. 6 déc. 2024 à 05:06, Nicholas Knize <[email protected]> a écrit :

> Sent the PNG direct to your email.
>
> Also, a more general question. I noticed the `x` and `y` for
> DirectPosition2D doesn't mean anything (per the docs) and that if passing
> in WGS84 Lat, Lon coordinates, it should still pass them into
> DirectPosition2D in Lat, Lon order, and not x == Lon, y == Lat order.  Is
> this correct?
>

Yes. Apache SIS matches value order in DirectPositions with axis order in
CRS definitions.
Therefore, with Apache SIS, using `EPSG:4326' CRS means to use points of
the (x=lat, y=lon) form,
but when using `OGC:CRS84`, the points are defined as (x=lon, y=lat).

This is one of the main difference with Proj, which (at least to my
knowledge) forces axis order to longitude first.

This can be confusing, but we've opted to remain as close as possible to
the CRS definitions.
You can read more on the subject in Apache SIS FAQ: What is the axis order
issue and how is it addressed? <https://sis.apache.org/faq.html#axisOrder>
It also provides a code snippet to force axis order on CRS, if need be (for
compatibility purposes, etc.)

Regards,

Reply via email to