Re: [gdal-dev] gdal_rasterize usage problems

2008-11-21 Thread Frank Warmerdam
Andrew Brooks wrote: This is the reason why I am getting the problems which can be seen in the first image here: http://www.sat.dundee.ac.uk/~arb/gdal-bugs/ The "reprojection" of the vectors using ogr2ogr is badly breaking them, so when I burn them using gdal_rasterize I get spurious lines ove

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-21 Thread Andrew Brooks
On Fri, 14 Nov 2008 23:49:59 -, Jamie Adams <[EMAIL PROTECTED]> wrote: > The datum change isn't sufficient, as they are using different coordinate > systems. They actually have to have the same SRS, otherwise gdal_rasterize > will see 2 very different ranges of coordinates (meter vs latlong).

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-17 Thread Frank Warmerdam
Andrew Brooks wrote: Thanks for the help everyone, I'll summarise when I get it all working ;-) Jamie Adams <[EMAIL PROTECTED]> wrote: Are your files in the same projection? I know gshhs is projected in wgs84 by default, and I see your raster is in British National Grid. To what extent do th

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-14 Thread Jamie Adams
The datum change isn't sufficient, as they are using different coordinate systems. They actually have to have the same SRS, otherwise gdal_rasterize will see 2 very different ranges of coordinates (meter vs latlong). PROJCS["OSGB 1936 / British National Grid", GEOGCS["OSGB 1936", DATU

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-14 Thread Andrew Brooks
Thanks for the help everyone, I'll summarise when I get it all working ;-) Jamie Adams <[EMAIL PROTECTED]> wrote: > > Are your files in the same projection? I know gshhs is projected in wgs84 > by default, and I see your raster is in British National Grid. To what extent do they need to be in t

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-12 Thread Jamie Adams
Hey Andrew, Are your files in the same projection? I know gshhs is projected in wgs84 by default, and I see your raster is in British National Grid. AFAIK, gdal_rasterize assumes the vector & raster data sets are in the same projection. -Jamie On Mon, Nov 10, 2008 at 11:11 AM, Andrew Brooks <[

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-12 Thread Markus Neteler
Roger, On Mon, Nov 10, 2008 at 10:43 PM, Roger André <[EMAIL PROTECTED]> wrote: > Andrew, > > I believe your syntax is incorrect. Assuming that you are trying to exclude > water from your image, it should be something like this: > % gdal_rasterize -b 1 -b 2 -b 3 -i -burn 0 -burn 0 -burn 0 -l gshh

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-12 Thread Frank Warmerdam
Andrew Brooks wrote: On Mon, 10 Nov 2008 21:43:02 -, Roger André <[EMAIL PROTECTED]> wrote: I believe your syntax is incorrect. The manual implies that the -b and -burn options are optional but they appear to be mandatory. Andrew, One of -3d, -burn or -a are required. I have not foun

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-12 Thread Andrew Brooks
On Mon, 10 Nov 2008 21:43:02 -, Roger André <[EMAIL PROTECTED]> wrote: > > I believe your syntax is incorrect. The manual implies that the -b and -burn options are optional but they appear to be mandatory. Giving just a source and destination results in the usage message. The only option not

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-11 Thread Roger André
Hi Markus, A friend of mine just tried this out on r15709 and reports that it works fine. Are you referring to the syntax in the original email not working, or what I advised Andrew to try? If it's the latter, please send the command you're using, so we can dissect it. Thanks, Roger -- On Tue

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-11 Thread Markus Neteler
On Mon, Nov 10, 2008 at 10:43 PM, Roger André <[EMAIL PROTECTED]> wrote: > Andrew, > > I believe your syntax is incorrect. Assuming that you are trying to exclude > water from your image, it should be something like this: > % gdal_rasterize -b 1 -b 2 -b 3 -i -burn 0 -burn 0 -burn 0 -l gshhs_land >

Re: [gdal-dev] gdal_rasterize usage problems

2008-11-10 Thread Roger André
Andrew, I believe your syntax is incorrect. Assuming that you are trying to exclude water from your image, it should be something like this: % gdal_rasterize -b 1 -b 2 -b 3 -i -burn 0 -burn 0 -burn 0 -l gshhs_land gshhs_land.shp warped.tif Have a look at http://www.gdal.org/gdal_rasterize.html f

[gdal-dev] gdal_rasterize usage problems

2008-11-10 Thread Andrew Brooks
Hello I'm trying to overlay coastlines on an image using gdal_rasterize but can't get it to do anything at all. % gdal_rasterize gshhs_land.shp warped.tif Usage: gdal_rasterize [-b band] [-i] [-burn value] | [-a attribute_name] | [-3d] [-l layername]* [-where expression] [-sql selec