Changeset 19554


Ignore:
Timestamp:
Apr 28, 2010 7:12:58 AM (6 years ago)
Author:
jorgearevalo
Message:

In GDAL WKT Raster Dataset, now dfPixelSize is used to choose the upperleft
value for y coord, instead of srid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/frmts/wktraster/wktrasterdataset.cpp

    r19552 r19554  
    757757                /**
    758758                 * TODO: Review this. Is a good algorithm?
     759                 * If the pixel size Y is negative, we can assume the raster's
     760                 * reference system uses cartesian coordinates, in which the
     761                 * origin is in lower-left corner, while the origin in an image
     762                 * is un upper-left corner. In this case, the upper left Y value
     763                 * will be MaxY from the envelope. Otherwise, it will be MinY.
    759764                 **/               
    760765                dfUpperLeftX = poE->MinX;
    761                 if (nSrid == -1)
     766                if (dfPixelSizeY >= 0.0)
    762767                    dfUpperLeftY = poE->MinY;
    763768                else
Note: See TracChangeset for help on using the changeset viewer.