Re: [Qgis-developer] Reverse order in PostGIS commit?

2014-07-09 Thread Piotr Pociask
Hi
I wrote about this some time ago [1]. It seems that other providers are also
affected by this.

Regards
Piotr

[1] 
http://osgeo-org.1560.x6.nabble.com/Wrong-feature-order-after-commiting-changes-td5130555.html#a5131250
http://osgeo-org.1560.x6.nabble.com/Wrong-feature-order-after-commiting-changes-td5130555.html#a5131250
  



-
Piotr Pociask
GIS Support sp. z o. o.
http://www.gis-support.pl/
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Reverse-order-in-PostGIS-commit-tp5150125p5150224.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-09 Thread Stott, James
Hi Tommy,

Unfortunately this list is not really the correct place to ask this question. 
It is possible that there are some people here who have experience with using 
dot spatial, but I think you are more likely to get a better response on the 
forums on the dot spatial website. I am certainly not familiar with dot spatial 
myself.

I don't know how dot spatial integrates GDAL into their system, or what version 
they are using, but OSGeo4W uses GDAL 1.11.0. From what I understand, OSGeo4W 
tends to set environment variables when it starts programs (with the use of 
.bat files). So it is unlikely that the GDAL installed with OSGeo4W is 
interfering with the GDAL that is built into dot spatial. However that is just 
my understanding of it and one of the more expert people here will maybe want 
to correct me :)

Sorry I can't be of more help, but try the guys over at the dot spatial site. 
They will be able to provide further guidance I would imagine. 

James

-Opprinnelig melding-
Fra: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av klausenlie
Sendt: 8. juli 2014 19:53
Til: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] SOSI support in QGIS

Hi everyone and thanks for the post lately.

I don`t konow if I am completly off road here, but I have and issue that I 
suspect COULD be related to GDAL.

I am working with a .Net forms application i Visual Studio 2013 which uses Dot 
Spatial.

From what I can read it is based somehowe on GDAL.

Now, tonight, out of the blue really, I get an out of memory message when I 
try to open a GeoTiff in the Dot Spatial map control.
I say out of the blue because it came just like that.

I must have done something or something must have happened, but I can`t figure 
out what.

Has this something to do with the GDAL/OGR me and James have been working on 
lately and I have installed on this machine? Has there been an automatic update 
somewhere?

I just wanted to ask

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5150155.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Reverse order in PostGIS commit?

2014-07-09 Thread Jürgen E . Fischer
Hi Paolo,

On Tue, 08. Jul 2014 at 15:48:22 +0200, Paolo Cavallini wrote:
 I have just noticed that when digitizing new shapes, they get written
 in a PostGIS table in a reverse order respect to the digitizing order;

You refer to the order of INSERTs?  Why does that matter?   The order in which
you get back the feature after INSERT later is undefined anyway.


Jürgen 

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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


[Qgis-developer] Pyton support on windows

2014-07-09 Thread Potári Gábor
Hi all!

I installed 2.5 dev properly under windows 7, but it shows no Python
support detected.
I selected python in osgeo4w, and selected it in cmake.


Where i go wrong?

All the best, and thanks.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] New version of GEarthView plugin (1.0.7)

2014-07-09 Thread Geo DrinX
Hello all,

I inserted a new version of GEarthView 1.0.7 ,   that solves a bug (with
accentated characters).

Now GEarthView is moved in Web menu, and it has new palette a buttons
(thank s to Aldo Scorza).

Please, test it and approve it, if you like.

:)

Regards

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

Re: [Qgis-developer] Working with the new Legend

2014-07-09 Thread Martin Dobias
Hi Richard

 if I want to insert a new layer below some other one, I need to know the
 position of that one. I'm trying to find an index or so in Python, but
 cannot find it?

 Is there already a way to do this? (I want to put a buffer below the
 layer it has buffered)

You just need to find the index in parent's list of children:
node_idx = node.parent().children().index(node)

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


[Qgis-developer] wkbType() for shape files

2014-07-09 Thread Bernhard Ströbl

Hi,

I have a shapefile with a multiPolygon.
layer.wkbType() == QGis.WKBMultiPolygon returns False

having a multiPolygon-PostGIS layer
layer.wkbType() == QGis.WKBMultiPolygon returns True

Is this the expected behaviour or a bug?

If you confirm it is the expected beaviour (maybe shape cannot 
differentiate between polygon and multipolygon but only between 
point/line/polygon) can you tell me for which other dataProviders this 
is true?


Bernhard



__ Information from ESET Mail Security, version of virus signature 
database 10068 (20140709) __

The message was checked by ESET Mail Security.
http://www.eset.com


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


[Qgis-developer] Refresh SVG symbols drawn by a plugin

2014-07-09 Thread Billant Jérémy

Hi,

I am making a plugin drawing focal mechanisms (a symbol indicating how 
move a fault when an earthquake occurs) and there is one last problem 
before the release that i can't solve.


Anyway, the plugin draws the SVG symbol using the attributes and save 
them in a folder, each SVG symbol have the name of the feature Id. Then, 
symbology is applied to the layer using :


symbol_layer = 
QgsSvgMarkerSymbolLayerV2().create({'name_expression':'concat(\''+dirNameSymbol+'/\',\'+self.ui.idField.currentText()+'\,\'.svg\')'})

layer.rendererV2().symbols()[0].changeSymbolLayer(0, symbol_layer)
iface.mapCanvas().refreshMap()

It works but only the first time. If i run the plugin a second time 
(i.e. to changed the color of the symbols), the new SVG symbol are well 
drawn in the folder, but don't displayed in the map canvas (the first 
are still displayed).


I understand it is probably because of cache memory (because if i close 
and re-open qgis or generate the new symbols in a different folder it 
works) but i'm not able to find the right way to refresh the view.


I have tried the following functions but no one make the job :

QgsMapRendererCache().clearCacheImage(layer.id())

or

if hasattr(layer, setCacheImage): layer.setCacheImage(None)
layer.triggerRepaint()

or

layer.dataProvider().reloadData()
layer.triggerRepaint()

Thank you for your help.


--
Billant Jérémy - PhD student
CEREGE - UMR 7330
Europôle méditerranéen de l'Arbois
Avenue Louis Philibert
BP 80 13545 Aix-en-Provence Cedex 04
04 42 97 16 79

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


[Qgis-developer] Python init script

2014-07-09 Thread Andreas Neumann
Hi,

I am trying to do a python init script that executes upon opening a form
(the standard-form, not a custom form).

The script should take a value of a feature, round the value (without
modifying the data) and display it in the form instead of the unrounded
value.

I can get access to the attribute data, but don't know how to access the
QLineEdit to change the value in the form.

Here is what I did so far:

---

# -*- coding: utf-8 -*-
# Import the PyQt and QGIS librariesfrom qgis.core import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *

def featureFormInit(dialog,layer,feature):
area_rounded = round(feature.attribute(f_area))
feature.setAttribute(f_area,area_rounded)

---

The above code works fine so far and I checked by logging the rounded
value. How can I now get access to the correct widget and replace the
unrounded value with the rounded one?

Thanks for any hint,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] TALK: Legend behaviour

2014-07-09 Thread Niccolò Marchi



Hi all,
two trivial thoughts about the legend behaviour:
- I don't
 know if I'm the only one, but I think the new way to move layers with 
the dragged image is less comfortable and precise than the previous. I
 found easier (and hence faster) to manage files in 2.2 legend when 
appeared the line instead of having the actual image that covers the 
destination and doesn't allow to see in a proper way where the file will
 be put. Examples come mainly with: include/exclude a layer from a group
 or moving a layer up to a group if the group is already on top;
- 
other thing: is there a particular reason why, grouping some files, they
 automatically go to the bottom of the legend? could it be a good idea 
(and easy task) to group them where they are?

sorry for bothering and (as usual) thank you for the great work you do

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

[Qgis-developer] slow loading projects (with layouts) and crashes when renders layers in parallel using many CPS cores is ON

2014-07-09 Thread Giovanni Manghi
Hi all,

there are reports in the bug tracker about two situations in qgis 2.4.
I would like to know if anyone else confirms:

* it seems that adding print layouts make loading of projects more and
more slow, this was not the case in 2.2

http://hub.qgis.org/issues/10828#note-17

* qgis 2.4 seems that can become unstable if renders layers in
parallel using many CPS cores is ON and/or the number of cores used
is high

http://hub.qgis.org/issues/10778#note-13

http://hub.qgis.org/issues/10744#note-6


cheers

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


Re: [Qgis-developer] slow loading projects (with layouts) and crashes when renders layers in parallel using many CPS cores is ON

2014-07-09 Thread Andreas Neumann
Hi,

I can confirm such stability issues - I had these crash issues mainly
directly after project load - without any user interaction whatsoever.
It is, however, hard to create reproducible test-cases. The crashes are
not always.

Regarding print composers: yes - there is a considerable slow-down in
project loading if a project contains a lot of print composers.

These are two issues we have to pay close attention to.

Andreas

Am 09.07.2014 16:13, schrieb Giovanni Manghi:
 Hi all,
 
 there are reports in the bug tracker about two situations in qgis 2.4.
 I would like to know if anyone else confirms:
 
 * it seems that adding print layouts make loading of projects more and
 more slow, this was not the case in 2.2
 
 http://hub.qgis.org/issues/10828#note-17
 
 * qgis 2.4 seems that can become unstable if renders layers in
 parallel using many CPS cores is ON and/or the number of cores used
 is high
 
 http://hub.qgis.org/issues/10778#note-13
 
 http://hub.qgis.org/issues/10744#note-6
 
 
 cheers
 
 -- G --
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 

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


Re: [Qgis-developer] New version of GEarthView plugin (1.0.7)

2014-07-09 Thread G. Garibaldi
I have several layers of point data in a PostGIS database. These do not 
show up in Google Earth. Multilinestring data types from PostGreSQL do 
transfer. Georeferenced rasters from individual files transfer over. 
SRID on data is 4326.


Windows 7 64bit. QGIS 2.4 64bit from prepackaged installer.

On 7/9/2014 4:42 AM, Geo DrinX wrote:

Hello all,

I inserted a new version of GEarthView 1.0.7 ,   that solves a bug 
(with accentated characters).


Now GEarthView is moved in Web menu, and it has new palette a 
buttons  (thank s to Aldo Scorza).


Please, test it and approve it, if you like.

:)

Regards

Roberto


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


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

[Qgis-developer] Composer Map moveContent()

2014-07-09 Thread boesiii
I am working on a python plugin that works with composer maps and I was
trying to use the moveContent method but was not able to understand the
results.  When I try moveContent(1,1) I was expecting the composer map
content to pan 1 unit to the right and 1 unit down but the content moved a
much larger distance.  What units does this method work with? I am working
with feet.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Composer-Map-moveContent-tp5150386.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer