[Qgis-user] environmental variables in QGIS.conf file

2016-04-12 Thread Martin Landa
Hi,

is it possible to use environmental variables (like $HOME) in
QGIS2.conf file? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] DataDefinedProperties

2016-04-12 Thread Jonah Crawford
There's only a few examples using this class from the qgs python api

http://qgis.org/api/classQgsPalLayerSettings.html

Specifically:

http://gis.stackexchange.com/questions/70111/how-to-obtain-rotation-field-name-defined-in-the-labels-data-defined-section-i

http://gis.stackexchange.com/questions/77870/how-to-label-vector-features-programmatically/77963#77963

It's not clear from the documentation how one would say set a color,
or transparency, shadow etc.

Could someone share some code examples ?

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

Re: [QGIS-it-user] Shp _packed

2016-04-12 Thread Totò
polfra wrote
> In fase do modifica di uno shapefile, dopo il salvataggio, è scomparsa la
> visualizzazione dello stesso in QGis. Nella cartella il file è stato
> rinominato con l'aggiunta di _packed al nome mentre sono scomparsi i campi
> nella tabella dati. E' una anomalia della versione 2.14 o un mio modo
> errato di editazione?
> Grazie.

Questo è un problema che si verificava nelle versioni precedenti alla 2.14.
Probabilmente lo shapefile è stato creato ed  editato nelle versioni
precedenti alla 2.14 portandosi appresso degli errori.
Ti consiglio di importare lo shapefile in QGIS 2.14 e di salvarlo nuovamente
prima dell'editazione.

cambia qualcosa?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Shp-packed-tp5260860p5260871.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] qgis : how to do block diagram?

2016-04-12 Thread Neumann, Andreas
I would recommend you try the qgis2threejs plugin which you can download
and install from the plugin manager. 

It creates a WebGL based web page which you can open in any modern
webbrowser. 

This is the closest I know to a block diagram. 

Greetings, 

Andreas 

On 2016-04-11 17:07, image93 wrote:

> Good afternoon,
> 
> I am working on windows 7. I would like to do a block diagram (topographic
> and geological representation). Is it possible to do that with qgis or other
> opensource software?
> 
> Thanks.
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/qgis-how-to-do-block-diagram-tp5260704.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

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

[QGIS-it-user] QGIS 2.14 .1 e DEV - Geometry generator e legenda

2016-04-12 Thread Totò
Ho tematizzato uno shapefile puntuale attraverso la nuova funzione ' Geometry
generator' con la seguente formula  fin qui tutto ok;
appena vado a vedere la legenda (nella TOC) ottengo simboli esageratamente
grandi!!!

allego video:
https://onedrive.live.com/redir?resid=C803878C5BFD5896!1062=!ABdY0upeqfQERrM=video%2cmp4


PS: come al solito chiedo se accade anche a voi, casomai aprirò un ticket!!!

saluti



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-2-14-1-e-DEV-Geometry-generator-e-legenda-tp5260865.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] qgis : exporting 3D map into a image file?

2016-04-12 Thread image93

Hello,

It seem to be possible to visualize 3D with two tools : nviz and
Qgis2threejs. 

But i would like export the result into an image file. Is it possible to do
that with qgis?

Thank you. 







--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/qgis-exporting-3D-map-into-a-image-file-tp5260861.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[QGIS-it-user] Shp _packed

2016-04-12 Thread polfra
In fase do modifica di uno shapefile, dopo il salvataggio, è scomparsa la
visualizzazione dello stesso in QGis. Nella cartella il file è stato
rinominato con l'aggiunta di _packed al nome mentre sono scomparsi i campi
nella tabella dati. E' una anomalia della versione 2.14 o un mio modo errato
di editazione?
Grazie.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Shp-packed-tp5260860.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Problem with QGIS 2.14.1 and MapInfo 12.0.3 coexistence and sharing the same data

2016-04-12 Thread Mats Elfström
Hi!
Most likely, this will baffle MapInfo and result in unpredictable behaviour.
Also, the ticket referred to claims that QGIS ignores read-only locks on files.
Which in itself is a rather surprising bit of information if true.

Hälsning / Regards
Mats.E

Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad / Excuse my 
brevity. 

> 12 apr. 2016 kl. 13:12 skrev Bo Victor Thomsen :
> 
> Claus -
> 
> (Not tested, just a suggestion) Try to make all the files used for a MapInfo 
> layer (.tab, .id, .dat. map..) read-only for the QGIS users.
> 
> QGIS 2.14 is using a new version of GDAL/OGR (2.0) to read and write tab 
> files. This new version of GDAL/OGR is is probably locking the MapInfo files 
> with a file lock because it prepares the files for update operations. Updates 
> was not possible for earlier versions of GDAL/OGR.
> 
> If you set the read-only attribute on the MapInfo files, QGIS (aka the 
> GDAL/OGR subsystem) might not generate the file lock that makes it impossible 
> for MapInfo to read the files.
> 
> Regards
> 
> Bo Victor Thomsen
> Municipality of Frederikssund, Denmark
> 
> 
>> Den 12-04-2016 kl. 12:57 skrev Claus Sørensen:
>> with QGIS and MapInfo coexistence.
>> I have no problems opening the same MapInfo tab file (native mapinfo 7.8 
>> format) from 2 pc's ru
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] FOSS4G UK, 14-16 June 2016, Southampton, UK

2016-04-12 Thread McDonaldR
While not strictly a QGIS  issue I am sure people will be interested to know 
that early bird tickets for FOSS4G UK go on sale tomorrow morning.

The conference/unconference/workshops/tutorials/hackathon/codesprint and party 
will happen at the Ordnance Survey offices in Southampton, UK from 14th to 16th 
June.

For more information check the website: http://uk.osgeo.org/foss4guk2016/

Early bird tickets will be available through Eventbrite.

See you there!

Ross


Ross McDonald | GIS Data Coordinator | Resources Department, IT Division | 
Angus Council, Angus House, Orchardbank Business Park, Forfar, DD8 1AT
T: 01307 476419 | F: 01307 476401 | E: 
mcdona...@angus.gov.uk



This message is strictly confidential. If you have received this in error, 
please inform the sender and remove it from your system. If received in error 
you may not copy, print, forward or use it or any attachment in any way. This 
message is not capable of creating a legal contract or a binding representation 
and does not represent the views of Angus Council. Emails may be monitored for 
security and network management reasons. Messages containing inappropriate 
content may be intercepted. Angus Council does not accept any liability for any 
harm that may be caused to the recipient system or data on it by this message 
or any attachment.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] calcolatore di campi

2016-04-12 Thread giulianc51
Il giorno Tue, 12 Apr 2016 12:58:15 +0200
Giuseppe Puddu  ha scritto:

> ciao a tutti.
> sto lavorando sotto Win7 64 bit, Qgis 2.6
> 
> devo calcolare un campo "perc" come decimale (cioè con la virgola)
> utilizzando due campi numerici interi
> 
> "campo a / campo b" *100
> 
> mi restituisce solo valori uguali a 100 o a zero.
> 
> dove sto sbagliando??

probabilmente è dovuto al tipo numerico di 'campo a' e 'campo b': se
sono interi il loro rapporto può essere solo un intero, nel tuo caso 0
o 1 da cui quindi il risultato finale;

il suggerimento di AV dovrebbe migliorare ma potresti sempre avere
un intero perdendo la parte frazionaria; ti consiglio di
convertire i valori iniziali in float dopo di che il problema dovrebbe
risolversi;

se ho capito male, scusa;


> giuseppe

ciao,
giuliano
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Problem with QGIS 2.14.1 and MapInfo 12.0.3 coexistence and sharing the same data

2016-04-12 Thread Bo Victor Thomsen

Claus -

(Not tested, just a suggestion) Try to make all the files used for a 
MapInfo layer (.tab, .id, .dat. map..) read-only for the QGIS users.


QGIS 2.14 is using a new version of GDAL/OGR (2.0) to read and write tab 
files. This new version of GDAL/OGR is is probably locking the MapInfo 
files with a file lock because it prepares the files for update 
operations. Updates was not possible for earlier versions of GDAL/OGR.


If you set the read-only attribute on the MapInfo files, QGIS (aka the 
GDAL/OGR subsystem) might not generate the file lock that makes it 
impossible for MapInfo to read the files.


Regards

Bo Victor Thomsen
Municipality of Frederikssund, Denmark


Den 12-04-2016 kl. 12:57 skrev Claus Sørensen:

with QGIS and MapInfo coexistence.
I have no problems opening the same MapInfo tab file (native mapinfo 
7.8 format) from 2 pc's ru


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

Re: [QGIS-it-user] calcolatore di campi

2016-04-12 Thread AV
Prova così:

*100 * "campo_A" / "campo_B"*



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/calcolatore-di-campi-tp5260840p5260846.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] Legend / labelling

2016-04-12 Thread Lester Anderson
Hi all,

I have got a topo/bathy raster and coloured it up fine, but it always
shows the values from negative at the top to positive down, and also
the legend it set to 5 decimal places.

I haven't spotted where to change these.

At the moment I have just gone through the composer map legend and
manually reversed the colour scale with positive at the top and edited
the values.

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

Re: [Qgis-user] Problem with QGIS 2.14.1 and MapInfo 12.0.3 coexistence and sharing the same data

2016-04-12 Thread Even Rouault
Claus,

This is known as https://hub.qgis.org/issues/14378 . I'm currently working on 
a fix for that.

As a workaround (not necessarily practical), you can try setting the .tab, 
.dat, .map and .id files to be read-only in the Explorer

Even

> Hi everybody
> 
> I have encountered a problem with QGIS and MapInfo coexistence.
> I have no problems opening the same MapInfo tab file (native mapinfo 7.8
> format) from 2 pc's running either QGIS 2.14.1 or Mapinfo 12.0.3. at the
> same time.
> 
> BUT
> If I style the Mapinfo layer in QGIS 2.14.1, categorized from values in a
> column, then MapInfo cannot open the table, or using the info button in an
> already opened table and sends an error :
> Translated from Danish is says: Cannot acces the xxx.DAT for reading. Check
> that the file is not opened from another program.
> 
> Closing QGIS I can again access the file from Mapinfo.
> 
> Anybody has a workaround from that!
> 
> It makes sharing the same data impossible between QGIS 2.14.1 and MapInfo
> users.
> 
> NB! No such problems with QGIS 2.8.5 and MapInfo 12.0.3
> 
> Tecnical details
> PC1 Win8.1 64bit, QGIS 2.14.1 64bit,  MapInfo 12.0.3 32bit
> PC2 ditto
> PC3 Win7 32bit - QGIS 2.8.5 32 bit, MapInfo 12.0.3 32bit
> 
> Regards
> 
> Claus Sørensen
> Viborg Kommune,
> Denmark

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[QGIS-it-user] calcolatore di campi

2016-04-12 Thread Giuseppe Puddu

ciao a tutti.
sto lavorando sotto Win7 64 bit, Qgis 2.6

devo calcolare un campo "perc" come decimale (cioè con la virgola)
utilizzando due campi numerici interi

"campo a / campo b" *100

mi restituisce solo valori uguali a 100 o a zero.

dove sto sbagliando??
giuseppe


Connetti gratis il mondo con la nuova indoona:  hai la chat, le 
chiamate, le video chiamate e persino le chiamate di gruppo.

E chiami gratis anche i numeri fissi e mobili nel mondo!
Scarica subito l’app Vai su https://www.indoona.com/


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


[Qgis-user] Problem with QGIS 2.14.1 and MapInfo 12.0.3 coexistence and sharing the same data

2016-04-12 Thread Claus Sørensen
Hi everybody

I have encountered a problem with QGIS and MapInfo coexistence.
I have no problems opening the same MapInfo tab file (native mapinfo 7.8
format) from 2 pc's running either QGIS 2.14.1 or Mapinfo 12.0.3. at the
same time.

BUT
If I style the Mapinfo layer in QGIS 2.14.1, categorized from values in a
column, then MapInfo cannot open the table, or using the info button in an
already opened table and sends an error :
Translated from Danish is says: Cannot acces the xxx.DAT for reading. Check
that the file is not opened from another program.

Closing QGIS I can again access the file from Mapinfo.

Anybody has a workaround from that!

It makes sharing the same data impossible between QGIS 2.14.1 and MapInfo
users.

NB! No such problems with QGIS 2.8.5 and MapInfo 12.0.3

Tecnical details
PC1 Win8.1 64bit, QGIS 2.14.1 64bit,  MapInfo 12.0.3 32bit
PC2 ditto
PC3 Win7 32bit - QGIS 2.8.5 32 bit, MapInfo 12.0.3 32bit

Regards

Claus Sørensen
Viborg Kommune,
Denmark
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Edit attribute table rows

2016-04-12 Thread Lester Anderson
Hi all,

Thanks for the pointers. I finally ended up just recoding the Python
script to fill the data in.

Useful to know there are alternative routes when working on databases.

Cheers
Lester

On 8 April 2016 at 19:34, Micha Silver  wrote:
> Here's a way to accomplish what you want in a Spatialite table
>
> I saved your sample 4 rows as a CSV:
>
> row_id,strike,dip,rake,magnitude,quadrant,depth
> 0,Tensional and Compressional,
> 1,233,38,-96,6.77,Compressional,623
> 2,Tensional and Compressional,
> 3,68,36,83,5.7,Compressional,39
>
> Then I imported the CSV to Spatialite_gui and ran this query:
>
> UPDATE earthquakes SET depth=(SELECT e.depth FROM earthquakes AS e WHERE
> e.rowid=(earthquakes.rowid+1))
> WHERE depth IS NULL;
>
> Then I got:
> 000NULLNULLNULLNULLTensional and Compressional
> 623
> 11123338-966.77Compressional623
> 222NULLNULLNULLNULLTensional and Compressional
> 39
> 3336836835.70Compressional39
>
> HTH,
> Micha
>
> -- Original Message -- Subject: Re: [Qgis-user] Edit attribute table
> rows Date: Fri, 8 Apr 2016 17:17:09 +0100 To: Andreas Neumann, Qgis-user
> From: Lester Anderson
>
>
> On 04/08/2016 07:17 PM, Lester Anderson wrote:
>
> Hi Andreas,
>
> Still having issues. I can see the logic of the CASE WHEN END, but I
> am wondering if the problem is because "Depth" has both a NULL value
> and a real value. I have tried all sorts of variants and cannot get
> the NULL depth changed.
>
> Attributes: strike dip rake magnitude quadrant depth
> 0 null null null null null "Tensional and compressional" null
> 1 233 38 -96 6.77 Compressional 623
>
> So scanning for Depth=NULL is fine; this is actually all of the event
> solutions, where the row with the values defines the nodal planes. I
> have around 2928 events in the shapefile!
>
> Can this be solved by scanning for the quadrant attribute, but then
> how does one specify the value for "Depth". I think if one applies
> "Depth" NOT NULL it returns 1
>
> I could not find a guide in the documentation for the field calculator
> that was similar.
>
> Cheers
> Lester
>
> On 8 April 2016 at 15:00, Neumann, Andreas  wrote:
>
> Hi Lester,
>
> The field calculator is meant to change "a lot" of values. It will update
> all selected records with the new value or calculation (expression).
>
> With CASE WHEN END you can introduce switches for different rules.
>
> So - please don't export to Excel. You can do it all with the field
> calculator.
>
> Andreas
>
> On 2016-04-08 15:28, Lester Anderson wrote:
>
> Hi Andreas,
>
> I am trying change a lot of values, if it was a few that is no problem.
>
> The other option is to export the attribute table as a database and
> edit in Excel etc and then join the table in QGIS
>
> Cheers
> Lester
>
> On 8 April 2016 at 14:23, Neumann, Andreas  wrote:
>
> Hi Lester,
>
> I thought you want to set the value to 623 where the value was NULL before?
> - so just write 623 in the left field after you selected the values.
>
> Alternatively, you can do without the previous selection and use the
> following expression.
>
> CASE WHEN depth IS NULL THEN 623 ELSE depth END
>
> Hope this helps,
>
> Andreas
>
>
>
> On 2016-04-08 15:13, Lester Anderson wrote:
>
> Hello Andreas,
>
> Selecting the rows where depth = NULL is fine. The field calculator
> does not update the depth with the depth where known values are
> present.
>
> Only update selected features is checked, update existing field
> checked, with output field set to depth:
> Expression: tried just "depth" and also "depth"="depth".
>
> Have I missed something here?
>
> Thanks
>
> On 8 April 2016 at 12:30, Neumann, Andreas  wrote:
>
> Sure.
>
> It is a two-step thing:
>
> 1. Select all records where Depth IS NULL. Use the "Select Features using an
> expression" button (the Epsilon sign) for that and "depth IS NULL" as an
> expression
>
> 2. Use the field calculator and only update the selected records (the top
> checkbox in the field calculator).
>
> You can find details about the field calculator in the QGIS manual.
>
> Hope this helps,
>
> Andreas
>
> On 2016-04-08 13:18, Lester Anderson wrote:
>
> Hello,
>
> I have an attribute table of earthquake data (focal mechanism beach
> balls) and need to edit the depth attribute. Each ball is defined by
> two rows in the table, eg first ball
>
> Row_ID Strike Dip Rake Magnitude Quadrant Depth
> --
> 0 NULL NULL NULL NULL Tensional and Compressional NULL
> 1 233 38 -96 6.77 Compressional 623
> 2 NULL NULL NULL NULL Tensional and Compressional NULL
> 3 68 36 83 5.7 Compressional 39
> etc
>
> where rows 0,1 and 2,3 represent separate beach balls, so basically it
> is a row calculation
>
> What I need to do is replace the Depth NULL value with the depth 623
> 

Re: [QGIS-it-user] Layer Raster in PostGIS??

2016-04-12 Thread Marco Li Volsi
Utilizzare raster da PostGIS è fattibile (tempo fa ho sperimentato come 
fare), tuttavia bisogna valutare bene quali sono gli usi che ne devi 
fare e progettare bene le query per ottimizzarle al meglio.


Il 12/04/2016 09:11, Paolo Cavallini ha scritto:

Il 12/04/2016 09:10, Andrea Gagna ha scritto:

Salve a tutti,
Mi chiedevo se e' possibile importare in un Geodatabase realizzato con
PostGIS anche i layer Raster (senza vettorializzarli prima quindi).

Certo; la questione e' complessa, sia da un punto di vista operativo
(come inmportare), sia delle performances.
Saluti.



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


Re: [QGIS-it-user] Layer Raster in PostGIS??

2016-04-12 Thread Paolo Cavallini
Il 12/04/2016 09:10, Andrea Gagna ha scritto:
> Salve a tutti,
> Mi chiedevo se e' possibile importare in un Geodatabase realizzato con
> PostGIS anche i layer Raster (senza vettorializzarli prima quindi).

Certo; la questione e' complessa, sia da un punto di vista operativo
(come inmportare), sia delle performances.
Saluti.

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


[QGIS-it-user] Layer Raster in PostGIS??

2016-04-12 Thread Andrea Gagna
Salve a tutti,
Mi chiedevo se e' possibile importare in un Geodatabase realizzato con
PostGIS anche i layer Raster (senza vettorializzarli prima quindi).

Grazie a tutti.

Gagna Andrea.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user