otbRasterizationApplication fail to rasterize SRTM water bodies shapefile with default parameters
Mantis Issue 233, reported by jmichel, assigned to abricier, created: 2011-02-11
Rasterizing this srtm water bodies shapefile : http://dds.cr.usgs.gov/srtm/version2_1/SWBD/SWBDwest/w002n44e.zip with default parameters (i.e. without providing any map projection, origin or spacing) result in white image (all pixels equal 255), while it should contain Arcachon, France coastline.
Sample command-line reproducing the bug : otbRasterizationApplication-cli -in w002n44e.shp -szx 10000 -szy 10000 -out coastline.tif
Opening w002n44e.shp can help to understand the desired output.
1297438199 - julienIt is working if specifying the WKT and origin and spacing, though those parameters are optionnal:
otbRasterizationApplication-cli -in w002n44e.shp -spx 28 -spy -28 -orx 633602 -ory 4961679 -szx 1000 -szy 1000 -out coastline.png -pr "PROJCS[\"WGS 84 / UTM zone 30N\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",-3],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],PARAMETER[\"false_northing\",0],AUTHORITY[\"EPSG\",\"32630\"],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH]]"
1297439216 - aurelienThe issue is due to the fact that by default, the projRef used is the input Vector