|
In the Linux standalone packages, you can find a file
"otbenv.profile".
There is a few lines specific to the standalone package (such as
the section "OTB_USE_SYSTEM_GTK").
The variables GDAL_DATA and GEOTIFF_CSV are there because the
package uses a specific GDAL build (should not be needed with a
system GDAL).
The PYTHONPATH and OTB_APPLICATION_PATH are used to properly
setup python wrapping and application path.
In your case, modifying the PATH should not be necessary if you
install OTB under /usr or /usr/local.
Guillaume
On 04/24/2017 04:18 PM, Stephen
Woodbridge wrote:
Hi Guillaume,
That would be great.
What is the name of the script?
You should also communicate this to the OS packaging people as
they have post install hooks that could automatically call this
script.
I installed otb on Unbuntu Xenial via the apt-get install and
this should automatically call the setup script but did not so the
packager's may not know about the script.
Thanks,
-Steve
On 4/24/2017 6:00 AM, Guillaume Pasero wrote:
Hi,
I will try to enhance the documentation on this topic. In fact,
when using standalone OTB installers, you just need to call a
script to setup environment and it should setup properly
PYTHONPATH, OTB_APPLICATION_PATH,...
Guillaume
On 04/18/2017 08:24 PM, Stephen Woodbridge wrote:
To answer my own question, I was able to
solve this, setting the OTB_APPLICATION_PATH environment
variable. I decided to set it in the application rather than
in the user environment with:
|
otbpath =os.environ.get('OTB_APPLICATION_PATH',None)
ifotbpath isNone:
os.environ['OTB_APPLICATION_PATH']='/usr/lib/otb/applications/'
|
Obviously you would need to improve on this if you needed it
to work on Windows also.
On Monday, April 17, 2017 at 9:29:39 PM UTC-4, Stephen
Woodbridge wrote:
I having the same problem on Ubuntu 16.04 where I
installed it
via apt-get install python-otb libotb monteverdi otb-bin
and when
it installed it did not add /usr/lib/otb/python to the
site
python path, so I'm guessing that some other
initialization on
install was not done. Anyone know how to fix this?
On Tuesday, April 4, 2017 at 6:09:28 AM UTC-4, M E C
wrote:
Hi there,
So I am trying to use otb from Python in Windows 7 and
I'm
not able to do it. I guess it must be an installation
error.
I copied the example from
https://www.orfeo-toolbox.org/CookBook/OTB-Applications.html#using-the-python-interface
<https://www.orfeo-toolbox.org/CookBook/OTB-Applications.html#using-the-python-interface>,
that starts with the lines:
from sys import argv
import otbApplication
print "Available applications : "
print str(
otbApplication.Registry.GetAvailableApplications() )
app =
otbApplication.Registry.CreateApplication("Smoothing")
print app.GetParametersKeys()
It prints "Available applications :" but then only
"()"
And I get the following error:
Traceback (most recent call last):
File
"C:\Users\user\Desktop\Soils\Exampleotb.py", line
21, in <module>
print app.GetParametersKeys()
AttributeError: 'NoneType' object has no attribute
'GetParametersKeys'
It must be something simple but I don't see it. Any
clue, please?
I am using OTB 10.1 and Linux 2.7.13 for win64
Thank you!
-- -- 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]
<mailto:[email protected]>. For
more options, visit https://groups.google.com/d/optout.
--
<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]
--
--
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 a topic
in the Google Groups "otb-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/otb-users/3I-xUe_ds3o/unsubscribe.
To unsubscribe from this group and all its topics, send an email
to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
---
This email has been checked for viruses by Avast antivirus
software.
https://www.avast.com/antivirus
--
|
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]
|
--
--
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.
|