Yes it is standalone OTB 5.8 build. 

I lauched my IDE after I source "otbenv.profile" and it worked so that's 
great =) 

But I don't understand why. Does it mean that when I don't use the 
otbenv.profile environment or when I use it, otb python bindings try to use 
different gdal versions ? Should I source "otbenv.profile" every time I 
want to use otb python bindings ?

Thank you,

Marc


Le mercredi 11 janvier 2017 16:53:37 UTC+1, Guillaume Pasero a écrit :
>
> Hi,
>
> I think that command line and Python don't have the same environment. 
> Maybe look at the GDAL_DATA variable.
>
> Is it a standalone OTB 5.8 build ?
>
> Regards,
>
> Guillaume 
>
> On 01/11/2017 04:47 PM, Marc Lang wrote:
>
> 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] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> <http://www.c-s.fr> *Guillaume PASERO*
> Responsable technique
> *Business Unit ESPACE & GeoInformation - Département Payload Data & 
> Applications*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected] <javascript:> 
>

-- 
-- 
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