Re: [QGIS-it-user] Iterazione con il Modellatore grafico di QGIS

2018-11-13 Thread Totò
qui [0] ho trovato una PR ma sembra abbandonata :(

[0] https://github.com/qgis/QGIS-Enhancement-Proposals/issues/108



-
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


Re: [Qgis-user] Iterators in QGIS

2018-11-13 Thread Claas Leiner

Hi,

you can convert with ogr2ogr in a batch-file:



Windows:
Copy this code in a file called shp2gpkg.bat
---.
@echo off
echo Write Shapes to Geopackage

set /p db="Name of the geopackage:  "

set /p pfa="Path to Shapes: "

set /p kbs="EPSG of SRS?"

pushd "%pfa%"
for %%i in (*.shp) do (
ogr2ogr --config OGR_SQLITE_SYNCHRONOUS OFF  --config OGR_SQLITE_CACHE 
8192 -f "GPKG" -skipfailures -update -addfields -gt unlimited -nlt 
PROMOTE_TO_MULTI -a_srs EPSG:%kbs% %db%.gpkg %%i

)
--
and save shp2gpkg.bat
to C:\path_to__gis_installation\bin

then you can rund shp2gpkg.bat in the osge4wshell to convert a directory 
with shapefiles in as Geopackage.


---

Linux:
Copy this code in a file called shp2gpkg.sh
---
#!/bin/bash
# shp2gpkg Shapes to Geopackge

read -p "Name of the geopackage and return:   " db
echo
echo
read -p "Path to the Shapes   " verzeich
echo
echo
read -p "EPSG of SRS?   " kbs
echo
echo
cd $verzeich

#shp
for shps in *.shp; do
ogr2ogr --config OGR_SQLITE_SYNCHRONOUS OFF  --config OGR_SQLITE_CACHE 
8192 -f "GPKG" -skipfailures -update -addfields -gt unlimited -nlt 
PROMOTE_TO_MULTI -a_srs EPSG:$kbs $db.gpkg $shps

done
-
and save shp2gpkg.sh
to /home/username/bin
then you can rund shp2gpkg.sh to convert a directory with shapefiles in 
a Geopackage.

--

Claas



--
-
GKG-Kassel - Dr.-Ing. Claas Leiner
QGIS-Support und mehr

Geodatenservice, Kartenwerkstatt &
GIS-Schule Kassel

Wilhelmshöher Allee 304 E
34131 Kassel
Tel. 0561/56013445
claas.lei...@gkg-kassel.de

http://www.gkg-kassel.de

Unterstützen Sie QGIS
QGIS-DE e.V. | http://qgis.de
QGIS Projekt | http://qgis.org/de/site/
___
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] Display Point with Show Labels

2018-11-13 Thread Carlos Cerdán
What about to use scale interval? You're using view based on rules; then,
you can define scale intervals to show desired points (and their labels)
depending of scale.

Good luck,

Carlos

El mié., 7 nov. 2018 a las 17:13, Ian Reese ()
escribió:

> Hi QGIS,
>
>
>
> I have been researching for two days now and not sure if this achievable,
> but is it possible to only show points for the corresponding labels that
> are showing?  I have a rule based labeling structure for a layer.  I want
> to only show points for those labels showing.  I found this post from two
> years ago:
> https://gis.stackexchange.com/questions/217067/showing-only-point-markers-when-labels-are-shown-in-qgis
> suggesting it was not possible.  I was hoping this was may have been
> addressed in QGIS 3.0 or perhaps this is some programmatic solution I am
> missing.  Attached is screen shot of the issue.  Too many points for the
> labels.
>
>
>
> Cheers,
>
>
>
> Ian C Reese
> Senior Spatial Analyst
> Location Information Data Services
>
>
>
> E  ire...@linz.govt.nz | DDI 04 6504
>
>
>
> Wellington Office, Level 7, Radio New Zealand House, 155 The Terrace
> PO Box 5501, Wellington 6145, New Zealand | T 04 460 0110
> W  www.linz.govt.nz | www.landonline.govt.nz | data.linz.govt.nz
> 
>
>
>
> --
>
> This message contains information, which may be in confidence and may be
> subject to legal privilege. If you are not the intended recipient, you must
> not peruse, use, disseminate, distribute or copy this message. If you have
> received this message in error, please notify us immediately (Phone 0800
> 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ
> accepts no responsibility for changes to this email, or for any
> attachments, after its transmission from LINZ. Thank You.
> ___
> 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] Iterators in QGIS

2018-11-13 Thread Nicolas Cadieux
Hi,

I use python and not the modeler but I believe the model, once finished can be 
run in batch mode like the other processing algorithms.  Others will confirm.  
Unless there is very specific manipulations, You should find org2org in 
processing and  used in batch mode directly. 

It can also be used in the command line and iterator can be done there if you 
use dos iterators. 
https://www.gdal.org/ogr2ogr.html

If not I think the gdal plugin in Qgis 2.18 has a option (for many algorithms ) 
to take all files from one directly and to export them to another. I know they 
have this for gdal translate so they probably have it for OGR2OGR.  This uses a 
true iterator so you only have to set things once.  You can run two version of 
Qgis if you use the OSGeo4w installer.  

Nicolas

> Le 13 nov. 2018 à 02:56, Alejandro Chamizo de Castro  a 
> écrit :
> 
> 
> Dear colleagues,
> 
> I'm trying to make a graphical model in QGIS 3.4 to export several shp to a 
> geopackage. I'd like to use an iterator in the graphical modeler, because I'm 
> not very good with python.
> 
> Is possible to use iterators in graphical model in QGIS like other GIS sw 
> does?
> 
> 
> Thanks a lot
> 
> 
> 
> -- 
> Alejandro Chamizo de Castro
> +34 653681823
> www.gisland.es
> 
>   Remitente notificado con 
> Mailtrack 13/11/18 8:52:41
> ___
> 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] gestione visualizzazione testi

2018-11-13 Thread Sergio Gollino
Purtroppo i metodi proposti si basano inevitabilmente sulla geometria e non
sul testo. (essendo un gis non è possibile fare altrimenti). per cui capita
che un punto sia a cavallo e che il testo finisca fuori mappa per un pezzo
soltanto pur essendo la geometria interna all'area.

*A tal proposito vi chiedo se qualcuno di voi sa se è possibile estrarre il
rettangolo di ingombro del testo e trasformarlo in una geometria... sarebbe
utilissimo.*

Segui i consigli che ti hanno dato prima, se ci sono ancora etichette che
spuntano fuori puoi risolvere così:
stampi due carte, una con le etichette e una muta (senza testi). le due
carte devono essere identiche. Le porti in gimp o altri editor di immagini
e le sovrapponi come livelli tenendo il livello etichettato sopra. poi
cancelli le etichette che non vuoi vedere. infine salvi un unica immagine.

è un po' laborioso e sorpatutto non automatizzabile ma se cerchi un
risultato grafico molto buono così puoi ottenerlo.

saluti


Il giorno mar 13 nov 2018 alle ore 11:54 Martina Savarese <
martina.savar...@gmail.com> ha scritto:

> Le etichette possono essere nascoste anche con un trucchetto sulla
> dimensione del testo e se lo si vuole fare solo su una sigola mappa e/o
> solo per una singola geometria.
> Bisogna innanzitutto assegnare un id alla mappa su cui si vogliono
> nascondere delle etichette e poi usare la sovrascrittura definita dai dati
> sulla dimensione del testo dell'etichetta.
> esempio
> if ( ( @map_id = 'noFeature_x' AND "campo_Feature" = 'x'),0 , @value))
>
> (x non nel senso di coordinata, ma di variabile generica)
>
> Martina
>
> Il giorno mar 30 ott 2018 alle ore 15:14 Totò 
> ha scritto:
>
>> Roberta Ciccarelli wrote
>> > Buongiorno
>> > ho il seguente problema: devo nascondere alcune parti di un disegno con
>> > una
>> > maschera costituita da uno shp poligonale rettangolare bianco; il
>> problema
>> > consiste nel fatto che questo shp nonostante sia nella posizione più
>> alta
>> > nell'elenco layer non mi copre uno shp sottostante di testi nè tantomeno
>> > le
>> > etichette di un altro shp poligonale del quale però copre le geometrie.
>> > Qualcuno saprebbe indicarmi come fare affinchè lo shp poligonale riesca
>> a
>> > nascondere tutto, testi compresi? Grazie anticipatamente a chi vorrà
>> > aiutarmi... ieri ho perso due ore di lavoro e stamattina altre due senza
>> > arrivare a una soluzione
>> > grazie mille
>>
>> Ciao Roberta. Personalmente evito sempre, quando possibile, di usare
>> plugin.
>> Intanto ti dico che è possibile nascondere le etichette di layer che sono
>> in
>> relazione spaziale con altri.
>> Io uso molto il calcolatore di campi e il costruttore di espressioni, ti
>> consiglio di guardare #HfcQGIS
>> http://hfcqgis.opendatasicilia.it/it/latest/
>> Come fare:
>> Supponiamo di avere – nell’ordine – due layer: regioni e province istat ed
>> etichetti le province;
>> anche se province è il layer che sta sotto, le etichette si vedranno.
>> Prova:
>> vai sulle proprietà del layer province, etichette, ultima scheda –
>> visulaizzazione – opzioni etichette –> mostra etichette: qui devi
>> utilizzare
>> la sovrascrittura definita dai dati; vai su modifica e incolla questa
>> espressione:
>>
>> not aggregate(‘regioni’, ‘count’, ‘pk_uid’, intersects ($geometry,
>> point_on_surface( geometry(@parent
>>
>> questa espressione darà sempre 1 e quindi non mostrerà nessuna etichetta
>> del
>> layer province;
>> ulteriore prove del nove:
>> fai un filtro sul layer regioni in modo da visualizzar solo la Sicilia
>> (“COD_REG” = 19); cosi facendo vedrai le etichetto il tutta italia tranne
>> la
>> Sicilia.
>>
>> Questa espressione deve utilizzarla per ogni layer che sta sotto il layer
>> regioni.
>>
>> 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 mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>


-- 
Sergio Gollino

Questo messaggio, comprensivo di eventuali allegati, è ad uso esclusivo del
destinatario e potrebbe contenere  informazioni riservate; se è stato
recapitato per errore ci scusiamo per l'accaduto e Vi invitiamo
cortesemente a darcene notizia provvedendo alla sua distruzione.
Vi ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei dati
ricevuti per errore costituiscono violazione alle disposizioni del D.Lgs.
n. 196/2003 "Codice in materia di protezione dei dati personali".
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] show city names without labels?

2018-11-13 Thread Groene Bij
Hi all,

 

The obvious way to show municipality names would be to use labels. However,
exporting a qgis map use qgis2web (leaflet) displaces labels. It seems
Leaflet uses it's own rules to place labels, not always to my liking.

I have created a point layer with a selection of municipalities I wanted to
have their name displayed, just for basic orientation on a nation map.

 

Are there other ways to show municipality names without the use of labels?
Maybe creating a custom rectangle polygon and having it somehow show it's
attribute value? Is it even possible to show an attribute value inside a
polygon?

 

Kind regards,

Jeroen

___
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] Hide Every Field in a GGIS Layer

2018-11-13 Thread Antongeo76




GILLEN Finbar wrote
> Hi,
> 
> Is there a way to hide all fields at once in QGIS? Sometimes there is a
> lot of columns and this functionality would be useful.
> 
> I know you can go into the layer properties and hide one field
> individually but this can take a long time.
> 
> Regards
> Finbar
> 
> Finbar GILLEN
> Underwriting Performance Analyst
> Pricing & Underwriting Department
> AXA Insurance dac
> Wolfe Tone St, Dublin 1
> T: +353 1 471 1377
> E: 

> finbar.gillen@

> mailto:

> finbar.gillen@

> 
> 
> [https://f.datasrvr.com/f1/318/64066/sign.png]
> 
> *
> 
> The contents and any attachments of this electronic mail message are
> confidential and intended only for the named addressees. Dissemination,
> forwarding, publication or other use of the message or attachments by any
> unauthorised person is strictly prohibited.
> 
> Unless stated to the contrary, any opinions expressed in this message are
> personal and may not be attributed to AXA Insurance dac or any member of
> the AXA Group of Companies.
> 
> AXA Insurance dac is regulated by the Central Bank of Ireland. For
> business in Northern Ireland, AXA Insurance dac is authorised by the
> Central Bank of Ireland and subject to limited regulation by the Financial
> Conduct Authority. Details about the extent of our regulation by the
> Financial Conduct Authority are available from us on request. AXA
> Insurance dac is a private company limited by shares, registered in
> Ireland number 136155. Registered Office Wolfe Tone House, Wolfe Tone
> Street, Dublin 1.
> 
> "AXA Supporting Road Safety in Ireland"
> 
> Internet e-mails are not necessarily secure. AXA Group does not accept
> responsibility for changes made to this message after it was sent. To help
> promote the use of electronic documents and to be kinder to the
> environment, please consider whether you really need to print this
> email.
> 
> *
> 
> ___
> Qgis-user mailing list

> Qgis-user@.osgeo

> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Hi Gillen,
yes you can do it right click on a field --> clicking on Organize columns
--> in the organize column box you need just click "deselect all" and ok

your field disappear from view in table

I Hope this help you

Regards 
Antonio



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

[Qgis-user] Hide Every Field in a GGIS Layer

2018-11-13 Thread GILLEN Finbar
Hi,

Is there a way to hide all fields at once in QGIS? Sometimes there is a lot of 
columns and this functionality would be useful.

I know you can go into the layer properties and hide one field individually but 
this can take a long time.

Regards
Finbar

Finbar GILLEN
Underwriting Performance Analyst
Pricing & Underwriting Department
AXA Insurance dac
Wolfe Tone St, Dublin 1
T: +353 1 471 1377
E: finbar.gil...@axa.ie

[https://f.datasrvr.com/f1/318/64066/sign.png]

*

The contents and any attachments of this electronic mail message are 
confidential and intended only for the named addressees. Dissemination, 
forwarding, publication or other use of the message or attachments by any 
unauthorised person is strictly prohibited.

Unless stated to the contrary, any opinions expressed in this message are 
personal and may not be attributed to AXA Insurance dac or any member of the 
AXA Group of Companies.

AXA Insurance dac is regulated by the Central Bank of Ireland. For business in 
Northern Ireland, AXA Insurance dac is authorised by the Central Bank of 
Ireland and subject to limited regulation by the Financial Conduct Authority. 
Details about the extent of our regulation by the Financial Conduct Authority 
are available from us on request. AXA Insurance dac is a private company 
limited by shares, registered in Ireland number 136155. Registered Office Wolfe 
Tone House, Wolfe Tone Street, Dublin 1.

"AXA Supporting Road Safety in Ireland"

Internet e-mails are not necessarily secure. AXA Group does not accept 
responsibility for changes made to this message after it was sent. To help 
promote the use of electronic documents and to be kinder to the environment, 
please consider whether you really need to print this
email.

*
___
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] gestione visualizzazione testi

2018-11-13 Thread Martina Savarese
Le etichette possono essere nascoste anche con un trucchetto sulla
dimensione del testo e se lo si vuole fare solo su una sigola mappa e/o
solo per una singola geometria.
Bisogna innanzitutto assegnare un id alla mappa su cui si vogliono
nascondere delle etichette e poi usare la sovrascrittura definita dai dati
sulla dimensione del testo dell'etichetta.
esempio
if ( ( @map_id = 'noFeature_x' AND "campo_Feature" = 'x'),0 , @value))

(x non nel senso di coordinata, ma di variabile generica)

Martina

Il giorno mar 30 ott 2018 alle ore 15:14 Totò 
ha scritto:

> Roberta Ciccarelli wrote
> > Buongiorno
> > ho il seguente problema: devo nascondere alcune parti di un disegno con
> > una
> > maschera costituita da uno shp poligonale rettangolare bianco; il
> problema
> > consiste nel fatto che questo shp nonostante sia nella posizione più alta
> > nell'elenco layer non mi copre uno shp sottostante di testi nè tantomeno
> > le
> > etichette di un altro shp poligonale del quale però copre le geometrie.
> > Qualcuno saprebbe indicarmi come fare affinchè lo shp poligonale riesca a
> > nascondere tutto, testi compresi? Grazie anticipatamente a chi vorrà
> > aiutarmi... ieri ho perso due ore di lavoro e stamattina altre due senza
> > arrivare a una soluzione
> > grazie mille
>
> Ciao Roberta. Personalmente evito sempre, quando possibile, di usare
> plugin.
> Intanto ti dico che è possibile nascondere le etichette di layer che sono
> in
> relazione spaziale con altri.
> Io uso molto il calcolatore di campi e il costruttore di espressioni, ti
> consiglio di guardare #HfcQGIS
> http://hfcqgis.opendatasicilia.it/it/latest/
> Come fare:
> Supponiamo di avere – nell’ordine – due layer: regioni e province istat ed
> etichetti le province;
> anche se province è il layer che sta sotto, le etichette si vedranno.
> Prova:
> vai sulle proprietà del layer province, etichette, ultima scheda –
> visulaizzazione – opzioni etichette –> mostra etichette: qui devi
> utilizzare
> la sovrascrittura definita dai dati; vai su modifica e incolla questa
> espressione:
>
> not aggregate(‘regioni’, ‘count’, ‘pk_uid’, intersects ($geometry,
> point_on_surface( geometry(@parent
>
> questa espressione darà sempre 1 e quindi non mostrerà nessuna etichetta
> del
> layer province;
> ulteriore prove del nove:
> fai un filtro sul layer regioni in modo da visualizzar solo la Sicilia
> (“COD_REG” = 19); cosi facendo vedrai le etichetto il tutta italia tranne
> la
> Sicilia.
>
> Questa espressione deve utilizzarla per ogni layer che sta sotto il layer
> regioni.
>
> 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 mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user