[gdal-dev] gdal_rasterize output off by one pixel/cell
Burton-Kelly, Matthew
matthew.burton.kelly at my.und.edu
Fri Aug 26 16:07:15 EDT 2011
Eli,
I finally got around to looking at the example shapefile and running the same operation on my machine, and it does indeed seem like the same bug. Thanks for the good eye, this almost seems like two separate issues; first being the missing edge points and second being the weird offset. I only say this because the offset persists even when I set the extents of the output raster as larger than the input layer.
Matt
On 22 Aug, 2011, at 11:50 AM, Eli Adam wrote:
> Matt,
>
> You may want to look at this ticket and see if it is the same thing. If so, you can add yourself to the cc list and you will get emails when there are updates to the ticket. You can also add any additional relevant information to the ticket.
>
> http://trac.osgeo.org/gdal/ticket/3774
>
> Regards, Eli
>
>
>
>>>> On 8/20/2011 at 11:06 AM, in message
> <AA52F8AC-89DC-4543-A210-0DD0BA9E58FD at my.und.edu>, "Burton-Kelly, Matthew"
> <matthew.burton.kelly at my.und.edu> wrote:
>> Hello,
>>
>> I'm attempting to create a raster from a shapefile of point data, with grid
>> cells 1 degree square. Although the area I have defined matches up with the
>> origin coordinates I want, and the grid cells match up with a vector 1-degree
>> grid I produced in QGIS, the squares supposedly containing the point data are
>> shifted, it looks like down and to the right. Has anyone encountered this
>> issue before?
>>
>> Here is the command I used:
>> gdal_rasterize -a <column name> -ts 360 180 -te -180 -90 180 90 -l <source layer name
>> in source file> <source file> <destination file>
>>
>> I have uploaded a screenshot of the output I am describing here:
>> http://www.flickr.com/photos/matthewbk/6059112633
>>
>> Thanks for any insight,
>> Matt
>>
>>
>>
>>
>> -----------------------------
>>
>> Matthew Burton-Kelly, M.S.
>>
>> Graduate Student
>>
>> Department of Geology and Geological Engineering
>>
>> University of North Dakota
>>
>> Mobile: (802) 922-3696
>>
>> matthew.burton.kelly at my.und.edu<mailto:matthew.burton.kelly at my.und.edu>
>>
>> matthew.burtonkelly at gmail.com<mailto:matthew.burtonkelly at gmail.com>
>>
>> http://www.protichnoctem.com
>>
>> http://und.academia.edu/MatthewBurtonKelly
>>
>> --------------------------------------------
>>
>> "About thirty years ago there was much talk that geologists ought only to
>> observe and not theorize; and I well remember someone saying that at this
>> rate a man might as well go into a gravelpit and count the pebbles and
>> describe the colors. How odd it is that anyone should not see that all
>> observation must be for or against some view if it is to be of any service!"
>>
>> -Charles Darwin, in an 1861 letter to Henry Fawcett.
>
>
-----------------------------
Matthew Burton-Kelly, M.S.
Graduate Student
Department of Geology and Geological Engineering
University of North Dakota
Mobile: (802) 922-3696
matthew.burton.kelly at my.und.edu
matthew.burtonkelly at gmail.com
http://www.protichnoctem.com
http://und.academia.edu/MatthewBurtonKelly
--------------------------------------------
"About thirty years ago there was much talk that geologists ought only to observe and not theorize; and I well remember someone saying that at this rate a man might as well go into a gravelpit and count the pebbles and describe the colors. How odd it is that anyone should not see that all observation must be for or against some view if it is to be of any service!"
-Charles Darwin, in an 1861 letter to Henry Fawcett.
More information about the gdal-dev
mailing list