[gdal-dev] convert shapefile to raster

Mohammed Rashad mohammedrashadkm at gmail.com
Sun Feb 13 05:41:20 EST 2011


How to convert shapefile to a raster image using gdal

I tried
gdal_rasterize -burn 255 -burn 0 -burn 0 -ts 100 100 -l ernakulam
ernakulam.shp ekm.tif

gdal_rasterize -A DIST -ts 100 100 -l ernakulam ernakulam.shp ekm.tif

gdal_rasterize -A AREA -ts 100 100 -l ernakulam ernakulam.shp ekm.tif

but still no output



ogrinfo -al -so ernakulam.shp

INFO: Open of `ernakulam.shp'
     using driver `ESRI Shapefile' successful.

Layer name: ernakulam
Geometry: Polygon
Feature Count: 16
Extent: (76.168263, 9.788524) - (76.840498, 10.301794)
Layer SRS WKT:
(unknown)
AREA: Real (20.15)
PERIMETER: Real (20.15)
INDIA_: Real (11.0)
INDIA_ID: Real (11.0)
STATE: String (20.0)
DIST: String (20.0)
TALUK: String (20.0)
CENTROID_Y: Real (20.15)
CENTROID_X: Real (20.15)
i selected AREA

-- 
Thanks && Regards
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110213/b760886f/attachment.html


More information about the gdal-dev mailing list