[GRASS-user] Python/Ctype interface: how to get coordinates for raster layer.

Markus Neteler neteler at osgeo.org
Sat Mar 31 14:38:06 EDT 2012


On Fri, Mar 30, 2012 at 7:26 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> peter.loewe at gmx.de wrote:
>
>> Q:The (geographic) coordinates for each raster cell should be accessible via
>> coo_col = G_col_to_easting((thecolumn + 0.5), "REGION")
>> coo_row = G_row_to_northing((therow + 0.5), "REGION")
>>
>> => how is "REGION"-related information 1) derived and 2) referred to on this level ?
>
> The second argument to G_col_to_easting() and G_row_to_northing() is a
> "const struct Cell_head *".
[...]

... added to
http://grass.osgeo.org/wiki/Python_Ctypes_Examples

Markus


More information about the grass-user mailing list