Hi everyone,

i'm trying to use the rasterization application with python bidings. In 
command line I did : 

otbcli_Rasterization -in 'myshape.shp' -out 'myrst.tif' -im 'myimref.tif' 
-mode.attribute.field 'num' 


and it worked well. But with python : 

Rasterization = otbApplication.Registry.CreateApplication("Rasterization")

# The following lines set all the application parameters:

Rasterization.SetParameterString("in", 'myshape.shp') 

Rasterization.SetParameterString("out", 'myrst.tif')

Rasterization.SetParameterString("im", 'myimref.tif')

Rasterization.SetParameterString("mode.attribute.field", 'num') 

Rasterization.ExecuteAndWriteOutput()


I've got this error message : ERROR 1: No PROJ.4 translation for 
destination SRS, coordinate transformation initialization has failed.


Apparently it's an error message relative to GDAL. Why is this error in 
python and not in command line ? Any suggestions to fix it ?


I'm working on ubuntu 14.04, OTB 5.8.0 and GDAL 1.11.2 if it can help. 


Thank you,


Marc 

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to