Re: [Qgis-user] hughe file project file size with qgis 2.10

2015-10-01 Thread lars lingner
Hello Nyall,



On 30.09.2015 23:00, Nyall Dawson wrote:
[...]
> 
> Try with a revision after 0587a59b - should be fixed now. Now the
> effect element will only be written if it's had the effect settings
> altered.
> 

Thanks for taking care if this issue. I'll build a new version and test it.

> You'll need to open & resave your project using a version later than
> this for the change to apply.
> 

Allright, that I'll test and report back.


Thanks so far!

Lars

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


[Qgis-user] QGIS 2.10 Pisa Crash

2015-10-01 Thread Emiliano Manzo
Hi to all lists,

is anybody knows why my egis 2.10 Pisa crashed with mac os 10.10 yosemite? 

Thank you 

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


Re: [Qgis-user] Error when "save as" the dataset

2015-10-01 Thread Andre Joost

Am 29.09.2015 um 17:33 schrieb Andrea Peri:



Exportation in the vector file faildes
Error: errors in the write:
Geometry of the elements not imported (OGR error).

I notice also that if I select a few elements and repeat the save-as
using ony selected elements.
All go ok.

Instead if I select ALL the elements of the dataset and try the export with
save-a (using selection)
have again the ogr error.

Perhaps a memory error ?



Maybe a geometry error. Have you tested it with the Geometry checker?

Or mixed geometries, which are not allowed for shapefiles? You could try 
an export to spatialite in this case.


HTH,
André Joost


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

[Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
I have a query about the use of Rule based styles.
I have a layer of parishes within a county area, which is  styled with a
transparent fill. Below it I have a copy layer of the same data.
In both layers the attribute table has a column headed WAPENTAKE, which
holds string data of 25 characters wide. Some of the fields contain a
wapentake name, and the remainder contain NULL.
I want the copy layer to display a certain style when the wapentake contains
a name, but nothing when the column wapentake contains NULL.

Now comes the problem. If I set the copy layer to a rule based style so that
it will display a coloured shading where there is data in the field
WAPENTAKE, I expect to use the filter of "WAPENTAKE" IS NOT NULL.
This works correctly if I double click on the filter section in the Style
window, and manually edit the filter to this expression.
If instead I open the ellepsis button (...) in order to use the Expression
builder to build the same expression, the result is the reverse of what I
want.  IE those with NULL content now show the selected style, and those
that have names in the column show no style.
Can anybody shed light on this issue please? What I am I doing wrong?

(I am using QGIS 2.8.3 under Windows 7 Professional, 64 bit)



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread James Keener
Is it possible that when you leave the expression editor and recompute
the styling the colors accidentally get reversed (e.g. the one for 0 is
now 1)?  I've had this happen to me a few times.

Would it be possible to take a couple screen shots of the workflow so
that we can see exactly what you mean?

Jim

On 10/01/2015 11:50 AM, David Addy wrote:
> I have a query about the use of Rule based styles.
> I have a layer of parishes within a county area, which is  styled with a
> transparent fill. Below it I have a copy layer of the same data.
> In both layers the attribute table has a column headed WAPENTAKE, which
> holds string data of 25 characters wide. Some of the fields contain a
> wapentake name, and the remainder contain NULL.
> I want the copy layer to display a certain style when the wapentake contains
> a name, but nothing when the column wapentake contains NULL.
> 
> Now comes the problem. If I set the copy layer to a rule based style so that
> it will display a coloured shading where there is data in the field
> WAPENTAKE, I expect to use the filter of "WAPENTAKE" IS NOT NULL.
> This works correctly if I double click on the filter section in the Style
> window, and manually edit the filter to this expression.
> If instead I open the ellepsis button (...) in order to use the Expression
> builder to build the same expression, the result is the reverse of what I
> want.  IE those with NULL content now show the selected style, and those
> that have names in the column show no style.
> Can anybody shed light on this issue please? What I am I doing wrong?
> 
> (I am using QGIS 2.8.3 under Windows 7 Professional, 64 bit)
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 2.10 Pisa Crash

2015-10-01 Thread Alexandre Neto
Emiliano,

You need to provide a bit more detail about your problem.

When does it crash?
Can you copy/paste the error message?
Try cleanninf your .qgis2 folder. It can be a plugin.

Alexandre Neto

A 12h32 Qui, 1 de Out de 2015, Emiliano Manzo 
escreveu:

> Hi to all lists,
>
> is anybody knows why my egis 2.10 Pisa crashed with mac os 10.10 yosemite?
>
> Thank you
>
> Emiliano
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread James Keener
Interesting. I haven't noticed this behavior before. I'll see if I can
reproduce it on my end.

If you deselected the empty style in your pictures, does the problem
still occur? (I know, stupid question; I'd expect it not to matter)

Jim

PS: Note I'm not a dev, but I'm willing to help look into what's up, as
this is weird :)

On 10/01/2015 12:25 PM, David Addy wrote:
> Hi,
> First up comes how the styling should look.
>  
> Now two views using the Expression builder, showing the result:
>  
>  
> 
> Thanks for looking at this issue, and I hope these images  help. I note that
> the Expression builder returns '1' as the result, but this is assigned to
> the wrong polygons.
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
Hi,
First up comes how the styling should look.
 
Now two views using the Expression builder, showing the result:
 
 

Thanks for looking at this issue, and I hope these images  help. I note that
the Expression builder returns '1' as the result, but this is assigned to
the wrong polygons.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread DelazJ
Hi,
David, in expression_builder2 picture, there is a "no filter" rule (which
means all the features of your layer) at the top of the "WAPENTAKE" IS NOT
NULL rule.
Try to replace the rule "no filter" by *else* or just delete it to see.

Regards,
Harrissou

2015-10-01 18:50 GMT+02:00 James Keener :

> Interesting. I haven't noticed this behavior before. I'll see if I can
> reproduce it on my end.
>
> If you deselected the empty style in your pictures, does the problem
> still occur? (I know, stupid question; I'd expect it not to matter)
>
> Jim
>
> PS: Note I'm not a dev, but I'm willing to help look into what's up, as
> this is weird :)
>
> On 10/01/2015 12:25 PM, David Addy wrote:
> > Hi,
> > First up comes how the styling should look.
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/correct_style_result.jpg
> >
> > Now two views using the Expression builder, showing the result:
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/Expression_builder1.jpg>
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/Expression_builder2.jpg>
> >
> > Thanks for looking at this issue, and I hope these images  help. I note
> that
> > the Expression builder returns '1' as the result, but this is assigned to
> > the wrong polygons.
> >
> >
> >
> > --
> > View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
> > Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Error when "save as" the dataset

2015-10-01 Thread Giuseppe Sucameli
Hi,
it has been fixed [1].
Best regards.
Giuseppe

[1] http://hub.qgis.org/issues/13451

Sent from mobile. Sorry for being short.
--
Giuseppe Sucameli
Il 01/ott/2015 18:35, "Andre Joost"  ha scritto:

> Am 29.09.2015 um 17:33 schrieb Andrea Peri:
>
>
>> Exportation in the vector file faildes
>> Error: errors in the write:
>> Geometry of the elements not imported (OGR error).
>>
>> I notice also that if I select a few elements and repeat the save-as
>> using ony selected elements.
>> All go ok.
>>
>> Instead if I select ALL the elements of the dataset and try the export
>> with
>> save-a (using selection)
>> have again the ogr error.
>>
>> Perhaps a memory error ?
>>
>>
> Maybe a geometry error. Have you tested it with the Geometry checker?
>
> Or mixed geometries, which are not allowed for shapefiles? You could try
> an export to spatialite in this case.
>
> HTH,
> André Joost
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS - value relation widget

2015-10-01 Thread Blumentrath, Stefan
Hi Luca,

Sounds like a case for Python logic!
General principles are explained here:
http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/

Also nice, and probably exactly what you are looking for:
http://medspx.fr/blog/Qgis/cascade_forms/

Cheers
Stefan

From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Luca Lanteri
Sent: 1. oktober 2015 22:07
To: qgis-user 
Subject: [Qgis-user] QGIS - value relation widget

Hi to all,

I need to build a form when the value of a combo are filtered basing on the 
value of anoter combobox.
I have a first combo where I choose the region and a second with the 
municipalities.
I need that the second combo shows only the municipalities of the choosed 
region.
I tried to use use the widget "relationship value" with the a filter like 
classe_munic = attribute($currentfeature, 'classe_munic') without any success.

Has anyone ever done something similar?
Thank in advance

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

Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
Hi all,
Thanks for the suggestions and ideas.
I have tried deleting the "no filter" rule,  as suggested, but it makes no
difference.
I have also tried both the 'Add rule' buttons and the 'Amend rule ' button
to bring up the Expression builder. 
I have  used the 'Amend Rule' on the "no filter" line so as to eliminate the
'spare' line, and proceed to build the expression using the Expression
Builder, but I continue to get the same result.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227449.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS - value relation widget

2015-10-01 Thread Luca Lanteri
Hi to all,

I need to build a form when the value of a combo are filtered basing on the
value of anoter combobox.
I have a first combo where I choose the region and a second with the
municipalities.
I need that the second combo shows only the municipalities of the choosed
region.
I tried to use use the widget "relationship value" with the a filter like
classe_munic = attribute($currentfeature, 'classe_munic') without any success.


Has anyone ever done something similar?
Thank in advance

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

[Qgis-user] Copy vector layer CRS.

2015-10-01 Thread Fernando M. Roxo da Motta


  Hi all,

  I am writing a processing script in which I get a pair of line vector
layer as input and I create a new point vector layer that is a kind of
chainage processing with some constraint.   So far so good, the
algorithm is working like a charm and the output is being generated as
expected.

  I am stumbling on (I think) a simple task.   As the input layers
don't necessarily have the same CRS as the project, I would like to use
for the output the same CRS as the input layers.   My problem is in how
to do it.

  I am getting the reference as:

  CRS = layer.GetSpatialRef()

  When defining the writer I use:

  writer = VectorWriter(Outfile, None, fields,\
   QGis.WKBPoint, \
   CRS)

  And I get the error:

   arguments did not match any overloaded call:
 QgsVectorFileWriter(QString, QString, QgsFields, QGis.WkbType,
 QgsCoordinateReferenceSystem, QString driverName="ESRI Shapefile",
 QStringList datasourceOptions=QStringList(), QStringList
 layerOptions=QStringList(), QString newFilename=None,
 QgsVectorFileWriter.SymbologyExport
 symbologyExport=QgsVectorFileWriter.NoSymbology): argument 5 has
 unexpected type 'SpatialReference'
 QgsVectorFileWriter(QgsVectorFileWriter): argument 1 has unexpected
 type 'unicode' See log for more details 

  The traceback in log is:

Traceback (most recent call last):|  File
"/home/roxo/.qgis2/python/plugins/processing/core/GeoAlgorithm.py",
line 227, in execute|self.processAlgorithm(progress)|  File
"/home/roxo/.qgis2/python/plugins/processing/script/ScriptAlgorithm.py",
line 271, in processAlgorithm|exec((script), ns)|  File "",
line 832, in |  File "", line 781, in main|  File
"", line 538, in Creat3D|  File
"/home/roxo/.qgis2/python/plugins/processing/tools/vector.py", line
435, in __init__|qgsfields, geometryType, crs,
OGRCodes[extension])|TypeError: arguments did not match any overloaded
call:|  QgsVectorFileWriter(QString, QString, QgsFields, QGis.WkbType,
QgsCoordinateReferenceSystem, QString driverName="ESRI Shapefile",
QStringList datasourceOptions=QStringList(), QStringList
layerOptions=QStringList(), QString newFilename=None,
QgsVectorFileWriter.SymbologyExport
symbologyExport=QgsVectorFileWriter.NoSymbology): argument 5 has
unexpected type 'SpatialReference'|
QgsVectorFileWriter(QgsVectorFileWriter): argument 1 has unexpected
type 'unicode'|

  The content of CRS is:

CRS= PROJCS["SIRGAS_2000_UTM_zone_24S",
GEOGCS["SIRGAS 2000",
DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6674"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4674"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-39],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",1000],
UNIT["Meter",1]]

  If instead of CRS I use :

  writer = VectorWriter(Outfile, None, fields,\
 QGis.WKBPoint, \
 QgsCoordinateReferenceSystem(31984,
QgsCoordinateReferenceSystem.EpsgCrsId))

  Everything works, so I understand that the format of information is
not correct.

  The CRS is : class 'osgeo.osr.SpatialReference'
  And the convertion above is:  class
'qgis._core.QgsCoordinateReferenceSystem'

  Is there a way to convert from one to the other?

  BTW:  2.10.1-Pisa in Linux [Xu|U]buntu 14.04.3 64bits.

  Thanks in advance.


  Roxo

-- 
 Non luctari, ludare ---+ WYSIWYG
Fernando M. Roxo da Motta   | Editor?
Except where explicitly stated I speak on my own behalf.|  VI !!
  ( Usuário Linux registrado #39505 )   | I see text,
 Quis custodiet ipsos custodes?-+ I get text!
 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS - value relation widget

2015-10-01 Thread Luca Lanteri
Hi,

now I'm already using the python logic but my code is terrible and I have a
lot of crash problem.
Now that I using your example all is easier and seem to worsk fine.

I owe you one beer.
Many many tanks !

Luca


2015-10-01 22:23 GMT+02:00 Blumentrath, Stefan :

> Hi Luca,
>
>
>
> Sounds like a case for Python logic!
>
> General principles are explained here:
>
>
> http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/
>
>
>
> Also nice, and probably exactly what you are looking for:
>
> http://medspx.fr/blog/Qgis/cascade_forms/
>
>
>
> Cheers
>
> Stefan
>
>
>
> *From:* qgis-user-boun...@lists.osgeo.org [mailto:
> qgis-user-boun...@lists.osgeo.org] *On Behalf Of *Luca Lanteri
> *Sent:* 1. oktober 2015 22:07
> *To:* qgis-user 
> *Subject:* [Qgis-user] QGIS - value relation widget
>
>
>
> Hi to all,
>
> I need to build a form when the value of a combo are filtered basing on
> the value of anoter combobox.
> I have a first combo where I choose the region and a second with the
> municipalities.
> I need that the second combo shows only the municipalities of the choosed
> region.
> I tried to use use the widget "relationship value" with the a filter like
> classe_munic = attribute($currentfeature, 'classe_munic') without any
> success.
>
> Has anyone ever done something similar?
> Thank in advance
>
>
> Luca
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Maintain Session for QwebView in Actions or some other way

2015-10-01 Thread Murad Jamal
Hello,

I am trying to link up QGIS with our application by posting a feature
geometry in WKT to our local application api.
I have started by creating actions and using QWebview to call our API,

Our API needs to login.

so below is action script when used will just call the api

from PyQt4.QtCore import QUrl;

from PyQt4.QtWebKit import QWebView;

myWV = QWebView(None);

myWV.load(QUrl('http://localhosot/app/asset/new'));

myWV.show();


now since our api needs login - as soon as it realizes it is the firstime
user trying

to go the application url. it redirects you to login.


once i logged in - normally in a browser like chrome it remembers you so
next time you point to the API you don;t need to login anymore.


But with QGIS in QWebview everytime triggering the action it doesn;t seem
to remember and always goes back to login,


how can i make a global webview. so that it is only created once and
remember the session user is in. so it would only have to login once.


or do i have to do something other than using actions to accomplish this.


Regards


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