Re: [Qgis-user] Processing plugin upgrade problem

2013-12-05 Thread Fabrizio murè
Hi list, I have a similar problem.
I updated my QGIS and when I try to install Processing plugin I get this
error.
I don't solve the problem  even if I close and re-open QGIS..

here is my Python Error Message:

Impossibile caricare il plugin 'processing' da
['C:/OSGeo4W/apps/qgis/./python', 'C:\Users\f.mure/.qgis2/python',
'C:\Users\f.mure/.qgis2/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins',
'C:\OSGeo4W\apps\Python27\lib\site-packages\setuptools-0.9.8-py2.7.egg',
'C:\OSGeo4W\apps\orfeotoolbox\wrapping\lib',
'C:\OSGeo4W\apps\orfeotoolbox\wrapping\Python',
'C:\OSGeo4W\apps\orfeotoolbox\python',
'C:\Users\f.mure\.qgis2\python\plugins', 'C:\OSGeo4W\bin\python27.zip',
'C:\OSGeo4W\apps\Python27\DLLs', 'C:\OSGeo4W\apps\Python27\lib',
'C:\OSGeo4W\apps\Python27\lib\plat-win',
'C:\OSGeo4W\apps\Python27\lib\lib-tk', 'C:\OSGeo4W\bin',
'C:\OSGeo4W\apps\Python27', 'C:\OSGeo4W\apps\Python27\lib\site-packages',
'C:\OSGeo4W\apps\Python27\lib\site-packages\PIL',
'C:\OSGeo4W\apps\Python27\lib\site-packages\win32',
'C:\OSGeo4W\apps\Python27\lib\site-packages\win32\lib',
'C:\OSGeo4W\apps\Python27\lib\site-packages\Pythonwin',
'C:\OSGeo4W\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win32.egg',
'C:\OSGeo4W\apps\Python27\lib\site-packages\wx-2.8-msw-unicode',
'C:\OSGeo4W\apps\qgis\python\plugins\fTools\tools', 'C:/Dati
Utente/f.mure/work/UTILITY/QGIS/FromLutra/GISRUK 2012 Day 2 - Writing
Python Plugins for QGIS for Beginners/Data']

Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 182, in
loadPlugin
__import__(packageName)
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\f.mure/.qgis2/python/plugins\processing\__init__.py", line
29, in
from processing.tools.general import *
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\f.mure/.qgis2/python/plugins\processing\tools\general.py",
line 29, in
from processing.core.Processing import Processing
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\Users\f.mure/.qgis2/python/plugins\processing\core\Processing.py", line
48, in
from processing.algs.QGISAlgorithmProvider import QGISAlgorithmProvider
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\Users\f.mure/.qgis2/python/plugins\processing\algs\QGISAlgorithmProvider.py",
line 102, in
from processing.algs.CreateConstantRaster import CreateConstantRaster
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\Users\f.mure/.qgis2/python/plugins\processing\algs\CreateConstantRaster.py",
line 30, in
from processing.core.RasterWriter import RasterWriter
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\Users\f.mure/.qgis2/python/plugins\processing\core\RasterWriter.py",
line 28, in
import numpy
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\__init__.py", line
136, in
import add_newdocs
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\add_newdocs.py",
line 9, in
from numpy.lib import add_newdoc
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\lib\__init__.py",
line 4, in
from type_check import *
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\lib\type_check.py", line
8, in
import numpy.core.numeric as _nx
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\core\__init__.py",
line 11, in
from numeric import *
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\core\numeric.py",
line 1315, in
from arrayprint import array2string, get_printoptions, set_printoptions
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 453, in _import
mod = _

[Qgis-user] plugin icon visualization

2013-11-08 Thread Fabrizio murè
Hi all, I'm relatively new with QGIS environment and I wish to learn how to
develop a Python Plugin.. i'm reading useful info in the tutorial
 "Building a simple plugin" @
http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html


Probably mine is a very trivial question...
I'm able to activate my plugin in QGIS 2.0.1, but i have some problem with
icon visualization on plugins toolbar and in the plugins menu.
My plugin is present in the list but the button area appears empty, without
icon "icon.png"
How can i activate the icion visualization?

I specified icon filename in the metadata.txt file..

Thanks in advance, for any help you can give me!

Regards,
Fabrizio
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] raster clipping

2013-09-16 Thread Fabrizio murè
Hi all, I need some clarifications on how raster clipper algorithm  works
with not georeferenced images.

My tiff data present negative y coordinates, so when I select my area of
interest in the viewer, the x-y upper left / lower right points are, for
instance:

ulx: 2818.33065257   uly: -5304.31204044
lrx:  3223.66153493   lry:-5825.45174632

Original image is 1 x 6191 pixel

the Clipper plugin does not understand that data are not georeferenced, so
running command:

gdal_translate -projwin 2818.33065257 -5304.31204044 3223.66153493
-5825.45174632
C:\Dati_Utente\f.mure\work\UTILITY\DATA\Pleiades_Primary_Product_Bundle\Pleiades_Primary_Product_Bundle.tiff

you got an error (Computed -srcwin falls outside raster size of 1x6191.
).

if you run gdal_traslate with -srcwin option you have to change input
parameters to express xoffset, yoffsset, xsize, ysize, instead of ulx uly
lrx lry.

In my example,

xoff = 2818
yoff = 6191 - 5304
xsize = 500
ysize = 500

And finally, gdal_translate -srcjwin 2818 794 500 500
C:\Dati_Utente\f.mure\work\UTILITY\DATA\Pleiades_Primary_Product_Bundle\Pleiades_Primary_Product_Bundle.tiff

works fine.

Now my doubts/questions are:
- is there a way to switch automatically between  [-projwin ulx uly lrx
lry] to  [-srcwin xoff yoff xsize ysize]  gdal_translate options, depending
on data projections (georefenced or not).

- is it possible to get extracted sub-image overlapped with the selected
area on the original image?

Could anyone give me some help?

Thanks in advance,
Fabrizio
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Pleiades jp2 sample imagery - read projection info

2013-09-09 Thread Fabrizio murè
Hi, I solved my issue asking to OTB users group list.
I report the reply:

Pleiades uses JPEG200 and otb by default has an implementation for JPEG200
to read Pleiades images but gdal uses a different JPEG2000 driver and is
not compiled by default. see here for more info[1]. Hence QGIS which
depends on GDAL when a raster input comes wont be able to handle your data.

You have two options:
1) compile gdal from source with JPEG2000 driver enabled and open in QGIS.
You also need to compile QGIS too in that case.

2) use otb Convert application to convert data to some other formats say
GTiff and load it in QGIS


Hope it helps,
Regards,

Fabrizio



2013/9/9 Fabrizio murè 

> Hi all, I'm quite new with QGIS.
>
> I'm having a problem with a Pleiades *.jp2 file from OTM BUNDLE sample
> imagery dataset downloaded from Astrium web site (
> http://www.astrium-geo.com/en/23-sample-imagery).
>
> When I open the file inside QGIS 2.1.0 master 9ebf1fe, seems that the
> layer hasn't a valid SR, while if I use the tool "otbgui_ReadImageInfo" I
> can read  PROJCS["WGS 84 / UTM zone 55S"
>
> Does anyone know this problem?
> Thanks in advance,
>
> Fabrizio
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Pleiades jp2 sample imagery - read projection info

2013-09-09 Thread Fabrizio murè
Hi all, I'm quite new with QGIS.

I'm having a problem with a Pleiades *.jp2 file from OTM BUNDLE sample
imagery dataset downloaded from Astrium web site (
http://www.astrium-geo.com/en/23-sample-imagery).

When I open the file inside QGIS 2.1.0 master 9ebf1fe, seems that the layer
hasn't a valid SR, while if I use the tool "otbgui_ReadImageInfo" I can
read  PROJCS["WGS 84 / UTM zone 55S"

Does anyone know this problem?
Thanks in advance,

Fabrizio
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user