[gdal-dev] Re: Convert vector to raster with colored polygons

2011-05-27 Thread spiderplant0
Thanks Chaitanya, that worked perfectly. In case anyone else has this problem here are the full list of command I used... First need to get GDAL 1.8 + as gdal_rasterize in GDAL 1.7 wont work. You can get it here... http://vbkto.dyndns.org/sdk/ Convert your vector to a greyscale .tiff (When I vie

[gdal-dev] Re: Convert vector to raster with colored polygons

2011-05-24 Thread spiderplant0
Hi, Thanks for the reply. When I tried this first, the image was displaying just black and white. But after some experimentation I discovered that '-ot Byte' with gdal_rasterize gave polygons colored various shades of grey - though not related to my attribute - seemed to be random. I dont underst

[gdal-dev] Convert vector to raster with colored polygons

2011-05-23 Thread spiderplant0
Hi, I have a vector file that consists of polygons that are colored according to the value of an attribute. I wish to convert this vector to a raster file and preserve the coloring information. Is this possible with gdal_rasterize? I have used this command... gdal_rasterize -ts 8447 7058 -a attrib

[gdal-dev] gdalwarp generating incorrect coordinates

2010-12-19 Thread spiderplant0
(re-posting as question didnt appear first time) Hi, I have georeferenced an image with gdal_translate and then reprojected it from OSGB36 to googleMaps with gdalwarp. However the warped TIFF latitude/longitude coordinates are wrong. The re-projection appears to stretch the map correctly, but I d