Re: [Qgis-user] Programmatically export layout with georeferenced file

2018-05-24 Thread Nyall Dawson
On 25 May 2018 at 03:02, DelazJ  wrote:
> Hi all,
>
> I have a layout on which I checked the "save world file" option in Layout
> --> Exports settings
> When I export this layout to image, I'd expect it to generate a world file
> next to it considering that the generateWorldFile is an attribute of the
> ImageExportSettings class [0]. But no world file.

The GUI setting isn't stored in the layout*  - you need to manually
set generateWorldFile to true
in your ImageExportSettings if you want the world file created.


> mylayout=QgsProject.instance().layoutManager().layoutByName('Composeur 1')
> exporter = QgsLayoutExporter(mylayout)
> exporter.exportToImage(filePath, QgsLayoutExporter.ImageExportSettings)

If you want the world file, this should be

exporter = QgsLayoutExporter(mylayout)
settings = QgsLayoutExporter.ImageExportSettings()
settings.generateWorldFile = True
exporter.exportToImage(filePath, settings)


> ls=QgsProject.instance().layoutManager().layouts()
> for elt in ls:
>   exporter = QgsLayoutExporter(elt)
>   imgSettings = exporter.ImageExportSettings()
>   print(elt.name(), imgSettings.generateWorldFile)
>
> which returns False for any layout, including the one I checked the option
> for. Btw, dpi returns -1.0, pages return an empty list... I guess I might
> have missed something but...No idea.

That's because imgSettings here is a default constructed
ImageExportSettings - which defaults to no world file, and dpi of -1
(as noted in the docs, the dpi in ImageExportSettings is an override
... if it's -1, then the layout's DPI will be used). An empty pages
list means export all pages. You need to manually populate this
ImageExportSettings as required for your export.

Nyall


* actually it is stored in a customProperty for the layout, but that's
not part of stable API

layout.customProperty('exportWorldFile')


> I use this kind of code
>
> mylayout=QgsProject.instance().layoutManager().layoutByName('Composeur 1')
> exporter = QgsLayoutExporter(mylayout)
> exporter.exportToImage(filePath, QgsLayoutExporter.ImageExportSettings)
>
> and then I check the image export settings with the next code
>
> ls=QgsProject.instance().layoutManager().layouts()
> for elt in ls:
>   exporter = QgsLayoutExporter(elt)
>   imgSettings = exporter.ImageExportSettings()
>   print(elt.name(), imgSettings.generateWorldFile)
>
> which returns False for any layout, including the one I checked the option
> for. Btw, dpi returns -1.0, pages return an empty list... I guess I might
> have missed something but...No idea.
> When is the generateWorldFile set to True (if ever it's what will trigger my
> world file export)?
>
> [0]
> https://qgis.org/pyqgis/master/core/Layout/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.ImageExportSettings
>
> Thanks for your help,
> Harrissou
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] GDAL - QGIS3 - macOS

2018-05-24 Thread cesaregal
Ciao Ivano,
sulla mia macchina ho:
Python 3.6.5
Pip 10.0.1




--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] GDAL - QGIS3 - macOS

2018-05-24 Thread Ivano
Ciao Cesare, mi fa molto piacere,stavo giusto scrivendo un post a tal
proposito oltre ad ulteriori approfondimenti. Mi espliciti per cortesia la
versione di Python e PIP installati sulla tua macchina?

Ivano



-
Ivano
GIS Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] GDAL - QGIS3 - macOS

2018-05-24 Thread cesaregal
Non mi sembra vero. Ho appena risolto il problema avvalendomi della soluzione
qui prospettata:

https://gis.stackexchange.com/questions/283676/gdal-scripts-not-working-on-qgis3-high-sierra

In Impostazioni\Opzioni\Sistema\Ambiente\Variabile di ambiente utente
occorre accodare la seguente path: 

/Library/Frameworks/GDAL.framework/Programs:
/Library/Frameworks/PROJ.framework/Programs:
/Library/Frameworks/SQLite3.framework/Programs:/Library/Frameworks/UnixImageIO.framework/Programs

Ora i comandi GDAL funzionano perfettamente (ho provato gdal_contour con
successo).

Occorre divulgare questa soluzione a tutti gli utenti MAC High Sierra che
utilizzano QGIS 3.0.2.

Buona serata

Cesare  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Load results of PostGIS execute SQL

2018-05-24 Thread Anita Graser
On Tue, May 22, 2018 at 3:36 PM, Anita Graser  wrote:

> It seems like the Processing "PostGIS execute SQL" tool does not provide a
> straightforward way to load the query results. Is there another way in
> Processing to execute a query and get the results as a layer?
>

​Since there doesn't seem to be a tool that covers this functionality, I
implemented one. The PR is here: https://github.com/qgis/QGIS/pull/7064

It creates an output layer containing the query result features. My
original plan was to just load a PostGIS layer based on the query but that
didn't work out.

Regards,
Anita
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Plugin Real Centroid

2018-05-24 Thread Marco Spaziani
Melius abundare in plugin quam deficere ;-)

Il giorno 24 maggio 2018 10:30, Martina Savarese  ha scritto:

> Point on surface dovrebbe funzionare allo stesso modo
> Martina
>
> Il Lun 21 Mag 2018 23:22 Marco Spaziani  ha
> scritto:
>
>> Immagino sia a dir poco superfluo richiamare il fatto che, nei poligoni a
>> "ferro di cavallo" o comunque nei poligoni "concavi", il centroide viene
>> generato e posizionato al di fuori del poligono al quale si riferisce (e
>> non potrebbe essere altrimenti ...per lo stesso motivo per cui Fosbury
>> vinse, nel 1968, le Olimpiadi di salto in alto ...ma questa è un'altra
>> storia). Capita però a volte che, per motivi grafici, (e a dispetto del
>> significato fisico stesso di centroide), a noi serva comunque che, anche nei
>> poligoni a "ferro di cavallo", il centroide venga forzatamente posizionato
>> all'interno del poligono al quale si riferisce (anche se, in tal caso, non
>> ha più tanto senso continuare a chiamarlo centroide). Per chi avesse tale
>> necessità, (come è capitato a me oggi pomeriggio) consiglio vivamente il
>> plugin Real Centroid.
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] Programmatically export layout with georeferenced file

2018-05-24 Thread DelazJ
Hi all,

I have a layout on which I checked the "save world file" option in Layout
--> Exports settings
When I export this layout to image, I'd expect it to generate a world file
next to it considering that the generateWorldFile is an attribute of the
*ImageExportSettings* class [0]. But no world file. I use this kind of code

mylayout=QgsProject.instance().layoutManager().layoutByName('Composeur 1')
exporter = QgsLayoutExporter(mylayout)
exporter.exportToImage(filePath, QgsLayoutExporter.ImageExportSettings)

and then I check the image export settings with the next code

ls=QgsProject.instance().layoutManager().layouts()
for elt in ls:
  exporter = QgsLayoutExporter(elt)
  imgSettings = exporter.ImageExportSettings()
  print(elt.name(), imgSettings.generateWorldFile)

which returns False for any layout, including the one I checked the option
for. Btw, dpi returns -1.0, pages return an empty list... I guess I might
have missed something but...No idea.
When is the generateWorldFile set to True (if ever it's what will trigger
my world file export)?

[0]
https://qgis.org/pyqgis/master/core/Layout/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.ImageExportSettings

Thanks for your help,
Harrissou
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Programmatically close a layout dialog

2018-05-24 Thread DelazJ
Hi Nyall,
Thanks a lot. I've been playing (for a long moment) with masterLayout and
openLayoutDesigner, trying different combinations but I just overlooked the
plural form. Works like a charm.

Harrissou

2018-05-23 5:39 GMT+02:00 Nyall Dawson :

> On 22 May 2018 at 23:54, DelazJ  wrote:
> > Hi,
> >
> > From the Python Console, how can I close a print layout dialog, knowing
> its
> > name?
>
> In 3.0 something like this will work:
>
> designers = [d for d in iface.openLayoutDesigners() if
> d.masterLayout().name() == 'Layout 1']
> if designers:
> designers[0].close()
>
> Nyall
>
>
>
> >
> > Thanks for any hint,
> > Harrissou
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-24 Thread Andre Joost

Am 24.05.18 um 15:25 schrieb David Addy:

Hi Nyall,
Thanks very much for looking at this.
The two versions are as follows:

 From QGIS 2.18.16 I get:
gdalwarp -q -cutline "D:/My Pictures/QGIS Projects/Payne
calibration/payne_clipper.shp" -tr 0.639640252898 0.639640252898 -of GTiff
"D:/My Pictures/QGIS Projects/Payne calibration/payne_modified.tif" "D:/My
Pictures/QGIS Projects/Payne calibration/p_clipped_Q2A.tif"

 From QGIS 3.0.2 I get :
gdalwarp -ot Float32 -of GTiff -cutline path_to_data_file -crop_to_cutline
-dstnodata 0.0 "D:\\My Pictures\\QGIS Projects\\Payne
calibration\\payne_modified.tif"
C:/Users/DJAddy/AppData/Local/Temp/processing_fd479b6503d44fbcb53887e62e4cf315/f36463c35cc34f29b240d30ad811d6fd/OUTPUT.tif



You can put these commands into .bat files and run them in the OSGEO4W 
shell. You might get error messages you don't see inside QGIS.


HTH,
Andre Joost


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-24 Thread David Addy
In case it helps, here is a screengrab of the QGIS 3 input box. There are no
spaces in my file names.
 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-24 Thread Bernd Vogelgesang

just a wild guess:
you have lots of spaces in your path and file names. This is to be avoided  
in general, cause lots of function may eat this, but lots of others may  
not. Try it with underscores instead of spaces.


Am 24.05.2018, 15:25 Uhr, schrieb David Addy :


Hi Nyall,
Thanks very much for looking at this.
The two versions are as follows:

From QGIS 2.18.16 I get:
gdalwarp -q -cutline "D:/My Pictures/QGIS Projects/Payne
calibration/payne_clipper.shp" -tr 0.639640252898 0.639640252898 -of  
GTiff
"D:/My Pictures/QGIS Projects/Payne calibration/payne_modified.tif"  
"D:/My

Pictures/QGIS Projects/Payne calibration/p_clipped_Q2A.tif"

From QGIS 3.0.2 I get :
gdalwarp -ot Float32 -of GTiff -cutline path_to_data_file  
-crop_to_cutline

-dstnodata 0.0 "D:\\My Pictures\\QGIS Projects\\Payne
calibration\\payne_modified.tif"
C:/Users/DJAddy/AppData/Local/Temp/processing_fd479b6503d44fbcb53887e62e4cf315/f36463c35cc34f29b240d30ad811d6fd/OUTPUT.tif

The output file in Q3 is a temp file as I forgot to browse to the same  
name
as above. "Payne modified" is my calibrated input file, and  
"payneclipper"

is my polygon clipping mask. The algorithms look quite different but I do
not know enough to know what is wrong.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



--
Bernd Vogelgesang
Siedlerstraße 2
91083 Baiersdorf/Igelsdorf
Tel: 09133-825374
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-24 Thread David Addy
Hi Nyall,
Thanks very much for looking at this.
The two versions are as follows:

From QGIS 2.18.16 I get:
gdalwarp -q -cutline "D:/My Pictures/QGIS Projects/Payne
calibration/payne_clipper.shp" -tr 0.639640252898 0.639640252898 -of GTiff
"D:/My Pictures/QGIS Projects/Payne calibration/payne_modified.tif" "D:/My
Pictures/QGIS Projects/Payne calibration/p_clipped_Q2A.tif"

From QGIS 3.0.2 I get :
gdalwarp -ot Float32 -of GTiff -cutline path_to_data_file -crop_to_cutline
-dstnodata 0.0 "D:\\My Pictures\\QGIS Projects\\Payne
calibration\\payne_modified.tif"
C:/Users/DJAddy/AppData/Local/Temp/processing_fd479b6503d44fbcb53887e62e4cf315/f36463c35cc34f29b240d30ad811d6fd/OUTPUT.tif

The output file in Q3 is a temp file as I forgot to browse to the same name
as above. "Payne modified" is my calibrated input file, and "payneclipper"
is my polygon clipping mask. The algorithms look quite different but I do
not know enough to know what is wrong.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-24 Thread William Kyngesburye
The homebrew site-packages should not affect the python framework 
site-packages.  But there may be other parts of virtualenv that the framework 
sees.  I found one thing I can try with the installer.

> On May 24, 2018, at 5:14 AM, Reg Maltais  wrote:
> 
> I just went looking through my homebrew stuff, and I have an older version of 
> python3 in there that I completely forgot about. That’s why pyenv and a bunch 
> of other things got installed. When I go look into 
> /usr/local/lib/python3.6/site-packages/ I see virtualenv.py, osgeo, numpy, 
> etc.
> 
> 
>> On May 23, 2018, at 10:04 PM, William Kyngesburye > > wrote:
>> 
>> Ah, now we're getting somewhere.  Did you install some other python 3 
>> modules?  Maybe pyenv or virtualenv?
>> 
>>> On May 23, 2018, at 5:19 PM, Reg Maltais >> > wrote:
>>> 
>>> Here’s the truncated output to show just the postinstall lines:
>>> 
>>> May 23 18:14:15 Bellerophon installd[636]: PackageKit: Executing script 
>>> "./postinstall" in 
>>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.maptools.proj-framework-yosemite.xOVaFz
>>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>>> activated virtualenv (required).
>>> May 23 18:14:16 Bellerophon installd[636]: PackageKit: Executing script 
>>> "./postinstall" in 
>>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.gdal.gdal22-framework-yosemite.ogoElJ
>>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>>> activated virtualenv (required).
>>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>>> activated virtualenv (required).
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Executing script 
>>> "./postinstall" in 
>>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/net.refractions.geos-framework-yosemite.Xrb86e
>>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>>> activated virtualenv (required).
>>> 
>>> Interestingly, immediately below these are the PackageKit receipt writes:
>>> 
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>>> org.maptools.proj-framework-yosemite to /
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>>> org.sqlite.sqlite3-framework-yosemite to /
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>>> com.kyngchaos.UnixImageIO-framework-F-yosemite to /
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>>> org.gdal.gdal22-framework-yosemite to /
>>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>>> net.refractions.geos-framework-yosemite to /
>>> 
>>> So appears it thinks it worked.
>>> 
 On May 23, 2018, at 5:22 PM, William Kyngesburye > wrote:
 
 That was just a test, only one python module.
 
 So, now it looks like pip is working in the Terminal, but not in my 
 installers.  Try running the GDAL Complete installer again, but don't 
 close it when it finishes.  Instead, open the Installer Log from the 
 Window menu (in the installer).  Then use the popup menu to Show All Logs. 
  There should be some lines with "postinstall:", what do these say?
 
> On May 23, 2018, at 4:59 AM, Reg Maltais  > wrote:
> 
> So that worked:
> Processing 
> /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
> Installing collected packages: GDAL
> Successfully installed GDAL-2.2.4
> 
> I’m getting different errors when opening QGIS now, I’m assuming due to 
> not having run pip install for all of the various bits.
> 
> Couldn't load plugin 'processing' 
> ModuleNotFoundError: No module named 'psycopg2.extensions'
> 
> Traceback (most recent call last):
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
>  line 311, in loadPlugin
> __import__(packageName)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
>  line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>  line 29, in 
> from processing.tools.general import *  # NOQA
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
>  line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
>  line 39, in 

Re: [QGIS-it-user] File KMZ

2018-05-24 Thread Dario Saccoccia
Difatti è proprio cosi, quello che volevo evitare era appunto
ricompilarmelo a mano.
Ma il contenuto del pacchetto è esattamente quello
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] click on raster outline to make it visible

2018-05-24 Thread Reginald
A little update:

I created a raster tile index wich is a vector layer with one field named
"location".
Location stores the path of the rasterfile.
Now I'm trying to add a new python action for this file.
I need to find the coordinates of the place where I clicked on the map.

Any suggestions?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Differenze menù tra versione italiana e quella inglese

2018-05-24 Thread skampus
secondo me sì, ma aspetto un conforto più autorevole a questa mia ipotesi.

s.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-24 Thread Reg Maltais
I just went looking through my homebrew stuff, and I have an older version of 
python3 in there that I completely forgot about. That’s why pyenv and a bunch 
of other things got installed. When I go look into 
/usr/local/lib/python3.6/site-packages/ I see virtualenv.py, osgeo, numpy, etc.


> On May 23, 2018, at 10:04 PM, William Kyngesburye  
> wrote:
> 
> Ah, now we're getting somewhere.  Did you install some other python 3 
> modules?  Maybe pyenv or virtualenv?
> 
>> On May 23, 2018, at 5:19 PM, Reg Maltais > > wrote:
>> 
>> Here’s the truncated output to show just the postinstall lines:
>> 
>> May 23 18:14:15 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.maptools.proj-framework-yosemite.xOVaFz
>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:16 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.gdal.gdal22-framework-yosemite.ogoElJ
>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/net.refractions.geos-framework-yosemite.Xrb86e
>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> 
>> Interestingly, immediately below these are the PackageKit receipt writes:
>> 
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.maptools.proj-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.sqlite.sqlite3-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> com.kyngchaos.UnixImageIO-framework-F-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.gdal.gdal22-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> net.refractions.geos-framework-yosemite to /
>> 
>> So appears it thinks it worked.
>> 
>>> On May 23, 2018, at 5:22 PM, William Kyngesburye >> > wrote:
>>> 
>>> That was just a test, only one python module.
>>> 
>>> So, now it looks like pip is working in the Terminal, but not in my 
>>> installers.  Try running the GDAL Complete installer again, but don't close 
>>> it when it finishes.  Instead, open the Installer Log from the Window menu 
>>> (in the installer).  Then use the popup menu to Show All Logs.  There 
>>> should be some lines with "postinstall:", what do these say?
>>> 
 On May 23, 2018, at 4:59 AM, Reg Maltais > wrote:
 
 So that worked:
 Processing 
 /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
 Installing collected packages: GDAL
 Successfully installed GDAL-2.2.4
 
 I’m getting different errors when opening QGIS now, I’m assuming due to 
 not having run pip install for all of the various bits.
 
 Couldn't load plugin 'processing' 
 ModuleNotFoundError: No module named 'psycopg2.extensions'
 
 Traceback (most recent call last):
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 311, in loadPlugin
 __import__(packageName)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
  line 29, in 
 from processing.tools.general import *  # NOQA
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
  line 39, in 
 from processing.core.Processing import Processing
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
  line 57, in 
 from 

Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-24 Thread Reg Maltais
I do have virtualenv installed. I had it prior to installing python3. 
virtualenv is at version 15.1.0 (apparently I haven’t used it in a while).


> On May 23, 2018, at 10:04 PM, William Kyngesburye  
> wrote:
> 
> Ah, now we're getting somewhere.  Did you install some other python 3 
> modules?  Maybe pyenv or virtualenv?
> 
>> On May 23, 2018, at 5:19 PM, Reg Maltais > > wrote:
>> 
>> Here’s the truncated output to show just the postinstall lines:
>> 
>> May 23 18:14:15 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.maptools.proj-framework-yosemite.xOVaFz
>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:16 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.gdal.gdal22-framework-yosemite.ogoElJ
>> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Executing script 
>> "./postinstall" in 
>> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/net.refractions.geos-framework-yosemite.Xrb86e
>> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
>> activated virtualenv (required).
>> 
>> Interestingly, immediately below these are the PackageKit receipt writes:
>> 
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.maptools.proj-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.sqlite.sqlite3-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> com.kyngchaos.UnixImageIO-framework-F-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> org.gdal.gdal22-framework-yosemite to /
>> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
>> net.refractions.geos-framework-yosemite to /
>> 
>> So appears it thinks it worked.
>> 
>>> On May 23, 2018, at 5:22 PM, William Kyngesburye >> > wrote:
>>> 
>>> That was just a test, only one python module.
>>> 
>>> So, now it looks like pip is working in the Terminal, but not in my 
>>> installers.  Try running the GDAL Complete installer again, but don't close 
>>> it when it finishes.  Instead, open the Installer Log from the Window menu 
>>> (in the installer).  Then use the popup menu to Show All Logs.  There 
>>> should be some lines with "postinstall:", what do these say?
>>> 
 On May 23, 2018, at 4:59 AM, Reg Maltais > wrote:
 
 So that worked:
 Processing 
 /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
 Installing collected packages: GDAL
 Successfully installed GDAL-2.2.4
 
 I’m getting different errors when opening QGIS now, I’m assuming due to 
 not having run pip install for all of the various bits.
 
 Couldn't load plugin 'processing' 
 ModuleNotFoundError: No module named 'psycopg2.extensions'
 
 Traceback (most recent call last):
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 311, in loadPlugin
 __import__(packageName)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
  line 29, in 
 from processing.tools.general import *  # NOQA
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
  line 39, in 
 from processing.core.Processing import Processing
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py",
  line 664, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File 
 "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
  line 57, in 
 from processing.algs.qgis.QgisAlgorithmProvider import 
 QgisAlgorithmProvider  # NOQA
   File 
 

[Qgis-user] click on raster outline to make it visible

2018-05-24 Thread Reginald
Hi,

I have over 500 tif raster files that are georeferenced.
I  want to present them with QGIS server.
I have changed the scale visibility so that they only get rendered when the
user zooms in to a scale smaller than 1/2000.
The problem I'm having is that several of the tiffs overlap each other.
I would like only to show the outlines of the tiff files and when the user
clicks on a particular outline, only the tiffs that lay under the clicking
point are shown.
Is there a way to do this?

Regards,



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Differenze menù tra versione italiana e quella inglese

2018-05-24 Thread nformica
Ciao Stefano,


skampus wrote
> secondo me è una configurazione "retaggio" della vecchia distribuzione dei
> comandi nei menu.

scusa per capire meglio, allora dipende dalle impostazioni delle versioni
precedenti di QGIS installate dal mio collega?

Saluti
Nino



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Plugin Real Centroid

2018-05-24 Thread Martina Savarese
Point on surface dovrebbe funzionare allo stesso modo
Martina

Il Lun 21 Mag 2018 23:22 Marco Spaziani  ha
scritto:

> Immagino sia a dir poco superfluo richiamare il fatto che, nei poligoni a
> "ferro di cavallo" o comunque nei poligoni "concavi", il centroide viene
> generato e posizionato al di fuori del poligono al quale si riferisce (e
> non potrebbe essere altrimenti ...per lo stesso motivo per cui Fosbury
> vinse, nel 1968, le Olimpiadi di salto in alto ...ma questa è un'altra
> storia). Capita però a volte che, per motivi grafici, (e a dispetto del
> significato fisico stesso di centroide), a noi serva comunque che, anche nei
> poligoni a "ferro di cavallo", il centroide venga forzatamente posizionato
> all'interno del poligono al quale si riferisce (anche se, in tal caso, non
> ha più tanto senso continuare a chiamarlo centroide). Per chi avesse tale
> necessità, (come è capitato a me oggi pomeriggio) consiglio vivamente il
> plugin Real Centroid.
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Differenze menù tra versione italiana e quella inglese

2018-05-24 Thread skampus
open street map e vector transformation sono plugin evengono, per scelta
dello sviluppatore, inseriti nel menu vettore.

gli strumenti di analisi vettoriale nel menu Vettore non dovrebbero più
essere là, ma tutto in processing.

secondo me è una configurazione "retaggio" della vecchia distribuzione dei
comandi nei menu.

s.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Digest di QGIS-it-user, Volume 31, Numero 43

2018-05-24 Thread Totò
Dario Saccoccia wrote
> Lo so scusate me l'allegato è troppo grande.
> Se qualcuno può fornirmi un idea glielo mando direttamente sulla mail

Consiglio:
nelle ML non si allegano mai direttamente i file ma i link ad un cloud;
quindi zippa i file, caricali in un cloud (gdrive, dropbox, mega, ecc...) e
poi incolli nel copro dell'amail SOLO il link.

saluti



-
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[QGIS-it-user] Differenze menù tra versione italiana e quella inglese

2018-05-24 Thread nformica
Ciao,
Per mia scelta lavoro sempre con QGIS versione originale in Inglese, lo
preferisco e lo faccio per quasi tutti i SW.

Ma confrontandomi con un collega che adopera la versione italiana con cui
stavo lavorando fianco a fianco, mi sono corto per caso che ci sono delle
differenze (tra ver. italiana e  inglese) anche nella composizione/voci dei
menù! 
Preciso che entrambi, a parte la lingua, usiamo la 2.18.20 (ultima LTR).
Per fare un esempio allego una immagine con il menù dei "vettori"; il menù
italiano contiene più voci di quello in inglese; nella versione inglese le
voci che mancano sono solo nel processing tools.

Può essere che questa è una cosa già nota ed è una sorpresa solo per me (..
in tal caso chiedo scusa); tuttavia a me sembra una stranezza. 

 

Saluti
Nino



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Digest di QGIS-it-user, Volume 31, Numero 43

2018-05-24 Thread Dario Saccoccia
Lo so scusate me l'allegato è troppo grande.
Se qualcuno può fornirmi un idea glielo mando direttamente sulla mail

Il giorno 23 maggio 2018 21:00,  ha
scritto:

> Invia le richieste di iscrizione alla lista QGIS-it-user all'indirizzo
> qgis-it-user@lists.osgeo.org
>
> Per iscriverti o cancellarti attraverso il web, visita
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
> oppure, via email, manda un messaggio con oggetto `help' all'indirizzo
> qgis-it-user-requ...@lists.osgeo.org
>
> Puoi contattare la persona che gestisce la lista all'indirizzo
> qgis-it-user-ow...@lists.osgeo.org
>
> Se rispondi a questo messaggio, per favore edita la linea dell'oggetto
> in modo che sia più utile di un semplice "Re: Contenuti del digest
> della lista QGIS-it-user..."
>
>
> Argomenti del Giorno:
>
>1. Re: File KMZ (Dario Saccoccia)
>2. Re: File KMZ (Totò)
>3. Re: Visibilità di un layer testo delimitato (Totò)
>4. Re: Visibilità di un layer testo delimitato (cesaregal)
>
>
> --
>
> Message: 1
> Date: Wed, 23 May 2018 17:30:35 +0200
> From: Dario Saccoccia 
> To: Matteo Collimedaglia 
> Cc: qgis-it-user@lists.osgeo.org
> Subject: Re: [QGIS-it-user] File KMZ
> Message-ID:
>  gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Mi barcameno molto bene con qgis, so di cosa parliamo quando parliamo di
> epsg, on the fly e altro.
> Il problema non è li, anche perchè banalmente qualsiasi impostazione uso,
> comunque i singoli file si sovrappongono.
>
> Il problema sta nel far tornare una custom map garmin in un geotiff o
> geopdf e non il contrario
>
>
> Il giorno 23 maggio 2018 17:16, Matteo Collimedaglia <
> matteo.collimedaglia...@gmail.com> ha scritto:
>
> > A mio avviso dovresti sapere in che sistema di coordinate è il tuo file,
> > secondo in basso a destra c'è una casellina con il sistema di
> riferimento.
> > Dai al tuo file lo stesso sistema di riferimento che c'è nel progetto o
> > viceversa
> >
> > Il mer 23 mag 2018, 16:51 Dario Saccoccia  ha
> > scritto:
> >
> >> Ecco è proprio questo il punto anche difficile da spiegare.
> >> Il file come arriva è .kmz e si, è georiferito, tantè che se lo apro con
> >> google earth si posiziona correttamente, ed si visualizza coma
> un'immagine.
> >> Il problema mi si crea quando lo apro in qgis.
> >> 1) Se lo importo come .kmz, come dicevo prima si vede un rettangolo con
> >> diversi quadrati le cui porzioni corrispondo ai singoli .kml che
> compongono
> >> il kmz.
> >> 2) Se scompongo il .kmz e importo i singoli .kml lui li riposiziona
> >> appunto come se non fossero georiferiti.
> >> La cosa curiosa è che il file di georeferenziazione contiene le
> >> coordinate di ogni singola porzione.
> >> Dovrei 'semplicemente' associarglieli ma non so come fare
> >>
> >> Il giorno 23 maggio 2018 16:19, Matteo Collimedaglia <
> >> matteo.collimedaglia...@gmail.com> ha scritto:
> >>
> >>> Il .jpg è un file immagine? Se si, è georeferito? Perché l'importazione
> >>> di immagini non georeferite te le colloca il programma con la
> riproiezione
> >>> al volo ubicandole chissà dove.
> >>>
> >>> Il mer 23 mag 2018, 16:12 Dario Saccoccia 
> >>> ha scritto:
> >>>
>  Buongiorno a tutti,
> 
>  utilizzo qgis per lavoro, mi occupo di cartografia, realizzazione
> mappe
>  e analisi gis in genere.
> 
>  Ho il seguente problema, o meglio è la prima volta che mi capita una
>  cosa cosi.
> 
>  Ho un file kmz, che, aperto in google earth, o trasformato in .zip e
>  decompresso contiene:
>  1) Qualche decina di piccola mappe in jpg o kml, dipende se lo apro da
>  google earth o lo scompatto come zip
>  2) Un file di georeferenziazione che al suo interno contiene le
>  coordinate di tutte le singole porzioni
>  3) In google earth appare come un raster composto da varie porzioni
> .kml
> 
>  Ora io deduco che questo file .kmz sia stato 'costruito' come una
>  custom map per Garmin.
> 
>  Il problema è il seguente:
>  1) Se carico il file su qgis direttamente come kmz, che a questo punto
>  appare come un vettoriale poligonale, mi appare un rettangolo,
> suddiviso in
>  vari quadrati, che dalla tabella degli attributi hanno un campo in
> cui è
>  inserito, per ogni singolo riquadro, la porzione corrispondente del
> .kml o
>  .jpg che dir si voglia.
>  2) Se butto dentro i singoli .kmz o .jpg si sovrappongono l'uno sull'
>  altro, non andando a posto l'uno con continuità laterlae con l'altro
> come
>  dovrebbe essere, ma appunto si sovrappongono.
>  Deduco che leggano quindi tutti lo stesso file di coordinate.
>  Insomma ho capito il problema, 

Re: [QGIS-it-user] QGIS guida alle funzioni del calcolatore di campi

2018-05-24 Thread Marco Spaziani
Ciao Luigi,
(rispondo solo per farti sapere l'esito del tuo suggerimento, però poi
fermiamoci qui con la discussione sul download del file ipertestuale, se no
si entra in un OT fuori luogo per questa lista).
Ho provato e ho visto che in Chrome, sia che si salvi come "single file"
come da te suggerito (dopo aver attivato la specifica flag) sia che si
salvi in HTML, alla fine, quando poi si va a cliccare sul file salvato,
questo pretende sempre dei link a GitHub e quindi, pretende sempre che ci
si trovi On Line.
Grazie lo stesso e di nuovo complimenti a Totò per questo bel lavoro.

Il giorno 23 maggio 2018 21:56, Luigi Pirelli  ha scritto:

> estensione "singlefile" di chrome o credo anche firefox
>
> Luigi Pirelli
>
> 
> **
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Mastering QGIS 2nd Edition:
> * https://www.packtpub.com/big-data-and-business-
> intelligence/mastering-qgis-second-edition
> * Hire me: http://goo.gl/BYRQKg
> 
> **
>
> 2018-05-23 21:52 GMT+02:00 Totò :
>
>> Marco wrote
>> > Ottimo lavoro.
>> > C'è un modo per poterlo salvare tutto, come ipertesto, in modo poi da
>> > poterlo consultare anche off line ?
>>
>> Bella domanda,
>> però non lo so.
>>
>> saluti
>>
>>
>>
>> -
>> https://pigrecoinfinito.wordpress.com/
>> --
>> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f52506
>> 12.html
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>
>
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user