Show
Ignore:
Timestamp:
05/01/09 07:54:54 (3 years ago)
Author:
mloskot
Message:

gdal2wktraster: TODO comment to remove requirement of sizes normalization (raste size mod block size == 0). For now, left to simplify testing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • spike/wktraster/scripts/gdal2wktraster.py

    r4011 r4050  
    492492 
    493493    # Validate raster block 
     494    # TODO: In future, this block normalization consraings must be removed, 
     495    #       It's left for not to simplify testing. --mloskot 
    494496    # TODO: This is a very simple test. Make the script more smart in future 
    495497    # http://postgis.refractions.net/pipermail/postgis-devel/2009-March/005329.html 
     
    498500    assert dx == 0 and dy == 0, \ 
    499501           "Error: size of block must be normalized, but %d mod %d = %d and %d mod %d = %d" \ 
    500            % (raster_size[0], block_size[0], dy, raster_size[1], block_size[1], dy) 
     502           % (raster_size[0], block_size[0], dx, raster_size[1], block_size[1], dy) 
    501503 
    502504    # GDAL dataset georeferencing details