Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/georeferencing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,11 +1208,11 @@ MapCoordF Georeferencing::toMapCoordF(const Georeferencing* other, const MapCoor
bool ok_forward = proj_transform.isValid();
bool ok_inverse = other->proj_transform.isValid();
QPointF projected = other->toProjectedCoords(map_coords);
if (ok_forward && ok_inverse) {
if (ok_forward && ok_inverse)
{
// Use geographic coordinates as intermediate step to enforce
// that coordinates are assumed to have WGS84 datum if datum is specified in only one CRS spec.
/// \todo Use direct pipeline instead of intermediate WGS84
bool ok_inverse, ok_forward;
projected = proj_transform.forward(other->proj_transform.inverse(projected, &ok_inverse), &ok_forward);
}
if (ok)
Expand Down