Skip to content

Commit

Permalink
PDF composition creation: remove unneeded limitation on non-rotated r…
Browse files Browse the repository at this point in the history
…asters
  • Loading branch information
rouault committed Jan 15, 2025
1 parent db84620 commit eef0ba1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frmts/pdf/pdfcreatefromcomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,13 +763,7 @@ bool GDALPDFComposerWriter::GenerateGeoreferencing(
georeferencing.m_adfGT[2] = 0;
georeferencing.m_adfGT[4] = 0;
}
if (georeferencing.m_adfGT[2] != 0 || georeferencing.m_adfGT[4] != 0 ||
georeferencing.m_adfGT[5] < 0)
{
CPLError(CE_Failure, CPLE_AppDefined,
"Geotransform should define a north-up non rotated area.");
return false;
}

georeferencing.m_osID = pszId;
georeferencing.m_oSRS = *(poSRS.get());
georeferencing.m_bboxX1 = bboxX1;
Expand Down

0 comments on commit eef0ba1

Please sign in to comment.