Skip to content

geotransform comment in NB 1 #4

@janetrbarclay

Description

@janetrbarclay

Currently the description of the geotransform list (under def make_raster and def make_grid in NB 1) reads as noted below. Are E and D in opposite positions in the list? (i.e. should it be [C, A, B, F, D, E]?) In the current gdal documentation (https://gdal.org/tutorials/geotransforms_tut.html) the 5th element is indicative of rotation and the 6th element is the vertical distance from upper left to lower left, but in the description below it is the reverse.

gt : 6-element geotransform list [C, A, B, F, E, D]. Gives the coordinates of one pixel (the upper left pixel). 
If there is no rotation, B=D=0. If cells are square, A=-E.  Letter designations come from the original documentation.
        
        C = x coordinate in map units of the upper left corner of the upper left pixel
        A = distance from C along x axis to upper right pixel corner of the upper left pixel
        B = distance from C along x axis to lower left pixel corner of the upper left pixel,
        F = y coordinate in map units of the upper left corner of the upper left pixel
        E = distance from C along y axis to lower left pixel corner of the upper left pixel
        D = distance from C along y axis to upper right pixel corner of the upper left pixel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions