tuiview opening kea

68 views
Skip to first unread message

Andrew Hardy

unread,
Aug 8, 2016, 11:37:56 AM8/8/16
to RSGISLib Support
Hi guys, when attempting to open a kea image in tuiview (on Mac) i receive the following error message:

“Only north-up images allowed: to disable check set: “TUIVIEW_ALLOW_NOGEO=YES”


I can open up the image just fine on my linux machine so i dont think it is the image at fault but i cant see any obvious difference in my installation. I tried a fresh install within a new environment but I still receive the same error. As far as i am aware my paths are set correctly in the bashrc. 


Many thanks for the help [once again]

Daniel Clewley

unread,
Aug 8, 2016, 12:19:22 PM8/8/16
to Andrew Hardy, RSGISLib Support
Hi Andy,

This looks like the KEA driver isn't being picked up. 

If you run:

gdal_translate --formats | grep "KEA"

Does it print anything out?

Does running

ls $GDAL_DRIVER_PATH

Show anything or does it give an error?

Thanks,

Dan
--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.

Daniel Clewley

unread,
Aug 9, 2016, 8:30:01 AM8/9/16
to Andy Hardy [ajh13], RSGISLib Support
Hi Andy,

Do you have KEA installed to an environment? If so you might need to point GDAL_DRIVER_PATH to this, for example:

export GDAL_DRIVER_PATH=~/miniconda3/envs/ENVNAME/lib/gdalplugins

If you just need TuiView a recent version of this built against GDAL 2, which has native KEA support and doesn't need the driver path setting, is available from the conda-forge channel (thanks to Sam Gillingham). You might find this works better, in particular for Python 3.5 on OSX.

conda install -c conda-forge tuiview gdal=2.1.1

We're in the process of updating our packages to use the conda-forge builds rather than building everything ourselves but still work in progress. The Linux builds are further ahead.

Thanks,

Dan

> On 9 Aug 2016, at 10:45, Andy Hardy [ajh13] <aj...@aber.ac.uk> wrote:
>
> Many thanks for the reply Dan.
>
> gdal_translate --formats | grep "KEA" does not print anything.
>
> ls $GDAL_DRIVER_PATH give "No such file or directory"
>
> Just in case it is a path issue nano ~/.bashrc gives...
>
>
> export PATH=/Users/Andy/miniconda3/bin:$PATH
>
> export GDAL_DRIVER_PATH=~/miniconda3/lib/gdalplugins
>
> export GDAL_DATA=~/miniconda3/share/gdal
>
>
> Thanks again,
>
>
> Dr Andy Hardy
>
> Lecturer in Remote Sensing and GIS
>
> F5 Llandinam Building,
>
> Department of Geography and Earth Sciences,
>
> Aberystwyth University, UK
>
>
>
> +44 1970 621 522
>
> @ajhardy13
>
> www.aber.ac.uk/en/iges/staff/academic-staff/ajh13/
>
>
> NUS Green Impact Silver Award: Please consider the environment before printing this email or any documents attached
>
> From: Daniel Clewley <daniel....@gmail.com<mailto:daniel....@gmail.com>>
> Date: Monday, 8 August 2016 at 17:19
> To: "ajha...@gmail.com<mailto:ajha...@gmail.com>" <ajha...@gmail.com<mailto:ajha...@gmail.com>>
> Cc: "rsgislib...@googlegroups.com<mailto:rsgislib...@googlegroups.com>" <rsgislib...@googlegroups.com<mailto:rsgislib...@googlegroups.com>>
> Subject: Re: [rsgislib-support] tuiview opening kea
>
> Hi Andy,
>
> This looks like the KEA driver isn't being picked up.
>
> If you run:
>
> gdal_translate --formats | grep "KEA"
>
> Does it print anything out?
>
> Does running
>
> ls $GDAL_DRIVER_PATH
>
> Show anything or does it give an error?
>
> Thanks,
>
> Dan
>
> On 8 Aug 2016, at 16:37, Andrew Hardy <ajha...@gmail.com<mailto:ajha...@gmail.com>> wrote:
>
> Hi guys, when attempting to open a kea image in tuiview (on Mac) i receive the following error message:
>
>
> "Only north-up images allowed: to disable check set: "TUIVIEW_ALLOW_NOGEO=YES"
>
>
> I can open up the image just fine on my linux machine so i dont think it is the image at fault but i cant see any obvious difference in my installation. I tried a fresh install within a new environment but I still receive the same error. As far as i am aware my paths are set correctly in the bashrc.
>
>
> Many thanks for the help [once again]
>
> --
> You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com<mailto:rsgislib-suppo...@googlegroups.com>.
> To post to this group, send email to rsgislib...@googlegroups.com<mailto:rsgislib...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rsgislib-support.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --------------------------------------------------------------------
> Astudio gyda ni yn Aberystwyth - Prifysgol Gyntaf Cymru https://www.aber.ac.uk/cy/undergrad/
>
> Study at Aberystwyth - Wales' First University https://www.aber.ac.uk/en/undergrad/
> <winmail.dat>

Daniel Clewley

unread,
Aug 9, 2016, 10:54:34 AM8/9/16
to Andy Hardy [ajh13], RSGISLib Support
Obvious question but the directory you are setting the driver path to does contain the driver doesn't it? Will be called gdal_KEA.*

Dan

> On 9 Aug 2016, at 14:00, Andy Hardy [ajh13] <aj...@aber.ac.uk> wrote:
>
> Thanks Dan, I added gdal driver path to the relevant environment but the
> error persists.
>
> Many thanks,
>
> Dr Andy Hardy
> Lecturer in Remote Sensing and GIS
> F5 Llandinam Building,
> Department of Geography and Earth Sciences,
> Aberystwyth University, UK
>
> +44 1970 621 522
> @ajhardy13
> www.aber.ac.uk/en/iges/staff/academic-staff/ajh13/
>
> NUS Green Impact Silver Award: Please consider the environment before
> printing this email or any documents attached
>
>
>
>
>> On 09/08/2016, 13:29, "Daniel Clewley" <daniel....@gmail.com> wrote:
>>
>> export GDAL_DRIVER_PATH=~/miniconda3/envs/ENVNAME/lib/gdalplugins
>
>
>
> --------------------------------------------------------------------
> Astudio gyda ni yn Aberystwyth - Prifysgol Gyntaf Cymru https://www.aber.ac.uk/cy/undergrad/
>
> Study at Aberystwyth – Wales’ First University https://www.aber.ac.uk/en/undergrad/
> <winmail.dat>
Reply all
Reply to author
Forward
0 new messages