- implement plotting function for GCPs.
- Allow to choose transformation method when georeferencing
rasters.
- Add
get_pts_coords() function to georeference
individual points with a chosen transformation method. Thin plate
splines (transform_method = "tps") measure distances in the
same way as GDAL, so that, with the default lambda = 0,
points match the GDAL thin plate spline used by
georeference_img().
- Add
get_gcp_residuals() function` to get the residuals
of polynomials to assess the quality of the transformation.
suggest_crs() now accepts integer extents, stops with
an error if an sf or SpatRaster object is in a
projected CRS (reproject it to longitude/latitude first), assumes
longitude/latitude with a warning if the object has no CRS, and honours
quiet = TRUE for regional maps.
- Fix the proj4 string of Winkel Tripel (which defined a different
projection from the WKT when used by
sf or
terra) and the WKT of Hammer (which could not be parsed by
PROJ).
- Fix
choose_gcp() and plot_gcp() swapping
the width and height of non-square images, which led to incorrect
georeferencing.
georeference_img() now works with images supplied as
arrays, passes GCPs to GDAL without rounding them to 7 significant
digits, and checks that there are enough GCPs for the chosen
polynomial.
get_pts_coords() now stops if the GCPs contain missing
values or cannot support the chosen polynomial.
- Fix several bugs in
extract_coords(),
find_gcp_coords() and choose_gcp() when no
points, or more points than needed, are clicked.
geom_tissot() now draws the indicatrices in every
facet, and get_distortion_metrics() uses the same grid of
centres as geom_tissot().