fix(geographic): set default target CRS in Extent.as to the target CRS#2811
fix(geographic): set default target CRS in Extent.as to the target CRS#2811MatrixNeoKozak wants to merge 2 commits into
Conversation
|
Thank you for this correction and for using iTowns !
PS : After re-read, I feel like there is no need for your proposition as the target extent crs is always set with the entered 'crs' (if we need need to return a new Extent). |
|
Hello! While To resolve this:
The changes have been pushed to the branch. |
When using
Extent.as(crs)without specifying a target Extent instance, it defaulted to creating an Extent in'EPSG:4326'instead of using the targetcrsprojection. This changes the defaulttargetargument fromnew Extent('EPSG:4326')tonew Extent(crs)so that the newly created Extent uses the correct destination coordinate reference system by default. A corresponding unit test is also added to check this behavior.