Skip to content
Snippets Groups Projects
Commit 9b3bc6f6 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Handling negative spacing case

parent 7fdacc55
No related branches found
No related tags found
No related merge requests found
......@@ -254,8 +254,8 @@ private:
}
else if(extentAvailable)
{
origin[0] = ulx;
origin[1] = uly;
origin[0] = (spacing[0] > 0 ? ulx : lrx);
origin[1] = (spacing[1] > 0 ? uly : lry);
// Transform to output EPSG
......@@ -283,8 +283,8 @@ private:
{
// Transform to output EPSG
PointType lrout;
lrout[0] = lrx;
lrout[1] = lry;
lrout[0] = (spacing[0] > 0 ? lrx : ulx);
lrout[1] = (spacing[1] > 0 ? lry : uly);
if(validInputProjRef)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment