Re: [gdal-dev] Re: gdal_rasterize output off by one pixel/cell

2011-08-29 Thread Burton-Kelly, Matthew
Thanks Even for making the fix!

Is there documentation anywhere for how to apply changes like this?  I 
apologize but I am just getting into this type of development.  I thought I was 
able to install the latest nightly build today, but I'm not sure.  Running Mac 
OS X.  If anyone has any pointers I would really appreciate them off-list.

Thanks,
Matt


On 28 Aug, 2011, at 11:20 PM, Eli Adam wrote:

 Even,
 
   This works for me and the test case included with the initial report.  
 
 Thank you very much, Eli
 
 Even Rouault even.roua...@mines-paris.org 08/28/11 5:25 AM 
 
 I've applied a fix in trunk in http://trac.osgeo.org/gdal/changeset/22998 . 
 Please test and confirm if it works for you.
 
 




-
Matthew Burton-Kelly, M.S.
Graduate Student
Department of Geology and Geological Engineering
University of North Dakota
Mobile: (802) 922-3696
matthew.burton.ke...@my.und.edu
matthew.burtonke...@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.


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] gdal_rasterize output off by one pixel/cell

2011-08-26 Thread Burton-Kelly, Matthew
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-0dd0ba9e5...@my.und.edu, Burton-Kelly, Matthew
 matthew.burton.ke...@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.ke...@my.und.edumailto:matthew.burton.ke...@my.und.edu
 
 matthew.burtonke...@gmail.commailto:matthew.burtonke...@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.ke...@my.und.edu
matthew.burtonke...@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.


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] gdal_rasterize output off by one pixel/cell

2011-08-20 Thread Burton-Kelly, Matthew
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.ke...@my.und.edumailto:matthew.burton.ke...@my.und.edu

matthew.burtonke...@gmail.commailto:matthew.burtonke...@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.

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev