[QGIS-Developer] lack of conflation tools

2024-05-30 Thread PIERRE Sylvain via QGIS-Developer
Hi devs and  qgis power users,

After investigating I can arg that there's a lack of conflation tools in QGIS 
like such existing for Esri  :

https://proceedings.esri.com/library/userconf/proc17/tech-workshops/tw_513-105.pdf


Is there some plan or something I miss for doing such task in QGIS ?

Thanks


[cid:image001.jpg@01DAB287.134C7D80]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] wrong VRT layer extent

2023-11-23 Thread PIERRE Sylvain via QGIS-Developer
Hi,

Trying to simply export VRT layer , getting a wrong extent and exporting only 
extent of first raster part of VRT with this code :

  list_dalles = []

features = layer.selectedFeatures()
for f in features:
file_name = f['NOM_DALLE']+'.tif'
dir_name = f['repertoire']
full_file_name = os.path.join( dir_name, file_name)

if os.path.isfile(full_file_name):
list_dalles.append(full_file_name)

parameters = { 'ADD_ALPHA' : False,
'ASSIGN_CRS' : None,
'EXTRA' : '',
'INPUT' : list_dalles,
'OUTPUT' : outVRTfile,
'PROJ_DIFFERENCE' : False,
'RESAMPLING' : 0,
'RESOLUTION' : 0,
'SEPARATE' : False,
'SRC_NODATA' : '' }

#processing.runAndLoadResults("gdal:buildvirtualraster", parameters)
processing.run("gdal:buildvirtualraster", parameters)

vrtLayer = QgsRasterLayer(full_file_name, "bidon")

QgsProject.instance().addMapLayer(vrtLayer, True)

file_writer = QgsRasterFileWriter(outfile)
provider = vrtLayer.dataProvider()
pipe = QgsRasterPipe()

if not pipe.set(provider.clone()):
print ("Cannot set pipe provider")

print(str(provider.extent()))
file_writer.writeRaster(
pipe,
provider.xSize(),
provider.ySize(),
provider.extent(),
provider.crs())

I don't find anything about that, any idea ?

Thanks

[cid:image001.jpg@01DA1E31.806E1620]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-20 Thread PIERRE Sylvain via QGIS-Developer
Hi Germán,

options.actionOnExistingFile = QgsVectorFileWriter.AppendToLayerNoNewFields

Was the key. Thanks !



[cid:image001.jpg@01D97369.4FF99FA0]
Sylvain PIERRE
Chef de projet système d’information
Direction des Systèmes d’Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d’Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu<mailto:sylvain.pie...@alsace.eu>
www.alsace.eu<http://www.alsace.eu>
[facebook]<http://www.facebook.com/toutelalsace> [twitter] 
<http://www.twitter.com/toutelalsace>  [insta] 
<http://www.instagram.com/toutelalsace>

De : Germán Carrillo 
Envoyé : mercredi 19 avril 2023 17:16
À : PIERRE Sylvain 
Cc : qgis-u...@lists.osgeo.org; qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] Pyqgis how to append existing gpkg layer

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
Apprendre à reconnaître un email de 
phishing.<https://intranet.alsace.eu/actualites/apprenez-a-reconnaitre-un-email-phishing/>
Bonjour Sylvain,

J'espère que vous allez bien.


If you want to append features from a source layer to another layer that 
already exists in a GPKG file, you can do this:

-
options = QgsVectorFileWriter.SaveVectorOptions()
options.driverName = "GPKG"
options.layerName = "my_existing_layer_name"  # Write here the existing layer 
name in the GPKG
options.actionOnExistingFile = QgsVectorFileWriter.AppendToLayerNoNewFields
options.onlySelectedFeatures = True

path = "/tmp/existing_gpkg_file_path.gpkg"
layer = QgsVectorLayer("/tmp/my_source_layer.shp", "my source layer name", 
"ogr")

result = QgsVectorFileWriter.writeAsVectorFormatV3(
layer,
path,  # Existing GPKG file path
layer.transformContext(),
options)
-


If on the contrary, you want to append a whole layer (with its own field 
structure, crs, etc.) to an existing GPKG database, you can follow this 
solution:

https://gis.stackexchange.com/a/417950


As you can see, the key is to define the options.actionOnExistingFile property, 
whose possible values are well documented here:

https://api.qgis.org/api/3.28/classQgsVectorFileWriter.html#afda86eff21ac1da7dc42cbdde424acb1


Note: SInce we're using writeAsVectorFormatV3(), you need at least QGIS v3.20 
for this solution to work.


Regards,

Germán



El mié, 19 abr 2023 a las 3:55, PIERRE Sylvain via QGIS-Developer 
(mailto:qgis-developer@lists.osgeo.org>>) 
escribió:
Hi dev and users

I don’t understand how to append an existing gpkg layer with pyqgis.
I’ve tried many QgsVectorFileWriter options

self.options.actionOnExistingFile = QgsVectorFileWriter.CreateOrOverwriteLayer

reset final layer

And
self.options.EditionCapability = QgsVectorFileWriter.CanAppendToExistingLayer

does not change anything

So what’s the good way to do this ?

This is my code (I’m iterating over several other data sources)
self.options = QgsVectorFileWriter.SaveVectorOptions()
self.options.driverName = 'GPKG'
self.options.onlySelectedFeatures = True
self.options.layerName = 'parcelles'

for dir in dirs:
print(dir)

if os.path.isdir(dir):
db_GPKG = os.path.join(dir, 'MAEC2023.gpkg')
if os.path.exists(db_GPKG):
gpkg_layer = db_GPKG + "|layername=parcelles"
RPG_layer = QgsVectorLayer(gpkg_layer, "RPG", "ogr")

expr = (' "fk_mesure" is not null ')
#expr = ('"fk_mesure" = \'{}\'').format('MAEC Papillons')

RPG_layer.selectByExpression(expr)
selected_feature = RPG_layer.selectedFeatures()
print(len(selected_feature))
if os.path.exists(self.db_GPKG): # if the ouput file 
already exist
self.options.actionOnExistingFile = 
QgsVectorFileWriter.CreateOrOverwriteLayer
#self.options.actionOnExistingFile = 
QgsVectorFileWriter.AppendToLayerNoNewFields
#self.options.actionOnExistingFile = 
QgsVectorFileWriter.AppendToLayerAddFields
self.options.EditionCapability = 
QgsVectorFileWriter.CanAppendToExistingLayer
else:
self.options.actionOnExistingFile = 
QgsVectorFileWriter.CreateOrOverwriteFile

write_result, error_message = 
QgsVectorFileWriter.writeAsVectorFormatV2(RPG_

[QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-19 Thread PIERRE Sylvain via QGIS-Developer
Hi dev and users

I don't understand how to append an existing gpkg layer with pyqgis.
I've tried many QgsVectorFileWriter options

self.options.actionOnExistingFile = QgsVectorFileWriter.CreateOrOverwriteLayer

reset final layer

And
self.options.EditionCapability = QgsVectorFileWriter.CanAppendToExistingLayer

does not change anything

So what's the good way to do this ?

This is my code (I'm iterating over several other data sources)
self.options = QgsVectorFileWriter.SaveVectorOptions()
self.options.driverName = 'GPKG'
self.options.onlySelectedFeatures = True
self.options.layerName = 'parcelles'

for dir in dirs:
print(dir)

if os.path.isdir(dir):
db_GPKG = os.path.join(dir, 'MAEC2023.gpkg')
if os.path.exists(db_GPKG):
gpkg_layer = db_GPKG + "|layername=parcelles"
RPG_layer = QgsVectorLayer(gpkg_layer, "RPG", "ogr")

expr = (' "fk_mesure" is not null ')
#expr = ('"fk_mesure" = \'{}\'').format('MAEC Papillons')

RPG_layer.selectByExpression(expr)
selected_feature = RPG_layer.selectedFeatures()
print(len(selected_feature))
if os.path.exists(self.db_GPKG): # if the ouput file 
already exist
self.options.actionOnExistingFile = 
QgsVectorFileWriter.CreateOrOverwriteLayer
#self.options.actionOnExistingFile = 
QgsVectorFileWriter.AppendToLayerNoNewFields
#self.options.actionOnExistingFile = 
QgsVectorFileWriter.AppendToLayerAddFields
self.options.EditionCapability = 
QgsVectorFileWriter.CanAppendToExistingLayer
else:
self.options.actionOnExistingFile = 
QgsVectorFileWriter.CreateOrOverwriteFile

write_result, error_message = 
QgsVectorFileWriter.writeAsVectorFormatV2(RPG_layer, self.db_GPKG , 
self.context, self.options)



Thanks


[cid:image001.jpg@01D972AD.7D49D680]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
When adding a new feature (polygon) I would like to close form when centroid 
does not intersect a polygon from an other layer
Here is my full python init form dialog function:

# -*- coding: utf8 -*-
from qgis.core import QgsVectorLayer, QgsFeatureRequest, QgsRectangle, 
QgsGeometry, QgsProject, QgsPointXY
import qgis.utils
from PyQt5.QtWidgets  import QDialogButtonBox, QLineEdit, QComboBox
from PyQt5.QtCore import QObject
import os.path
import getpass

def dealWithPoly(dialog, layerid, featureid):

global editMode
global iface

iface = qgis.utils.iface

geom = featureid.geometry()
if geom:
editMode = 'insert'

layers = QgsProject.instance().mapLayers().values()
canvas = iface.mapCanvas()

geo_point = geom.centroid()

canvas_crs_txt = canvas.mapSettings().destinationCrs().authid()
canvas_crs = canvas_crs_txt.split(':')[1]

layerNameRPG = 'MAEC2023 parcelles'
testlayerRPG = QgsProject().instance().mapLayersByName(layerNameRPG)

if testlayerRPG: 
bv = testlayerRPG[0]

layer_crs_txt = bv.crs().authid()
layer_crs = layer_crs_txt.split(':')[1]

if canvas_crs != layer_crs:
xform = 
QgsCoordinateTransform(QgsCoordinateReferenceSystem('EPSG:'+canvas_crs), 
QgsCoordinateReferenceSystem('EPSG:'+layer_crs), QgsProject.instance())
geo_point.transform(xform)

find_parcelle = False

polygon = [feature for feature in bv.getFeatures()]
for pol in polygon:
geo_pol = pol.geometry()
if geo_pol.contains(geo_point):
pacageVal = pol['Pacage']
numIlot = str(pol['Num_ilot'])
find_parcelle = True
break

if not find_parcelle:
txt = u"Saisie en dehors des limites du RPG"
iface.messageBar().pushMessage(txt, level=Qgis.Warning)
#dialog.parent().reject()
dialog.close()

#print(dialog.parent())
else:
linedit_pacage = dialog.findChild(QLineEdit,"PACAGE")
linedit_pacage.setText(pacageVal)

linedit_numilot = dialog.findChild(QLineEdit,"NUM_ILOT")
linedit_numilot.setText(numIlot)








  

-Message d'origine-
De : QGIS-Developer  De la part de 
Richard Duivenvoorde via QGIS-Developer
Envoyé : mardi 20 décembre 2022 09:44
À : qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] Pyqgis Close init form

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
Apprendre à reconnaître un email de 
phishing.<https://intranet.alsace.eu/actualites/apprenez-a-reconnaitre-un-email-phishing/>


Can you provide a little more code?

And more info where exactly it is called (in the startup.py or in some form 
init code?

Is 'dialog' available in the code part in which you try to close it?

Regards,

Richard Duivenvoorde

On 12/20/22 09:24, PIERRE Sylvain via QGIS-Developer wrote:
> Hi all,
>
> I can not achieve closing a form in init pyqgis fonction. I try :
>
>  dialog.close()
>
> But form stay without any widgets
>
> I try
>
>  dialog.parent().close()
>
> Does nothing
>
>  dialog.parent().reject()
>
> Qgis crash
>
> Any hints ?
>
> Thanks
>
> **
>
>
>
> Sylvain PIERRE**
>
> Chef de projet système d’information
>
> Direction des Systèmes d’Information et du Développement Numérique
>
> Service Projets et Ingénierie Numérique
>
> *Collectivité européenne d’Alsace*
>
> Tél : 03 88 76 68 88
>
> sylvain.pie...@alsace.eu <mailto:sylvain.pie...@alsace.eu>
>
> www.alsace.eu <http://www.alsace.eu>
>
> facebook <http://www.facebook.com/toutelalsace>twitter 
> <http://www.twitter.com/toutelalsace>insta 
> <http://www.instagram.com/toutelalsace>
>
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
Hi all,

I can not achieve closing a form in init pyqgis fonction. I try :
dialog.close()
But form stay without any widgets
I try
dialog.parent().close()
Does nothing
dialog.parent().reject()
Qgis crash

Any hints ?

Thanks

[cid:image001.jpg@01D91454.D88F5220]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] PyQgis Standalone app from 3.4 to 3.16

2022-10-03 Thread PIERRE Sylvain via QGIS-Developer
Hi devs,

I'm porting a PyQgis standalone app from 3.4 to 3.16 api.
I get an error with the new 3.16 app
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: 

The most visible change I noticed is python 3.7 to 3.9. Is there any impact on 
PyQt5 bindings ?  With python 3.7 there was a C:\Program Files\QGIS 
3.4\apps\Python37\sip directory which is missing with python 3.9.

Here is my app env variables
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = r'C:\Program Files\QGIS 
3.16.16\apps\Qt5\plugins'
os.environ['PATH'] += r';C:\Program Files\QGIS 3.16.16\apps\qgis-ltr;C:\Program 
Files\QGIS 3.16.16\apps\qgis\bin;C:\Program Files\QGIS 3.16.16\apps\Qt5\bin'
os.environ['QGIS_PREFIX_PATH'] = r'C:\Program Files\QGIS 3.16.16\apps\qgis-ltr'
os.environ['GDAL_DATA'] = r'C:\Program Files\QGIS 3.16.16\share\gdal'
os.environ['PROJ_LIB'] = r'C:\Program Files\QGIS 3.16.16\share\proj'

os.environ['GDAL_DRIVER_PATH'] = r'C:\Program Files\QGIS 
3.16.16\bin\gdalplugins'
os.environ['QT_PLUGIN_PATH'] = r'C:\Program Files\QGIS 
3.16.16\apps\qgis\qtplugins;C:\Program Files\QGIS 3.16.16\apps\qt5\plugins'

Did I miss something ?

Thanks

[cid:image002.jpg@01D8D739.62F6AA70]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] action get measure

2022-06-23 Thread PIERRE Sylvain via QGIS-Developer
Hi Andreas,

I want an interactive solution . Close to measurement tool except I can catch 
the length and update a field in the layer table.

De : Andreas Neumann 
Envoyé : jeudi 23 juin 2022 15:29
À : PIERRE Sylvain 
Cc : qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] action get measure

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
Apprendre à reconnaître un email de 
phishing.<https://intranet.alsace.eu/actualites/apprenez-a-reconnaitre-un-email-phishing/>

Hi Sylvain,

Do you want an interactive solution where the user should interactively draw a 
second point - or is the second point already in your data table?

Andreas

On 2022-06-23 14:42, PIERRE Sylvain via QGIS-Developer wrote:

Hi ,

I want to build an action on a point layer, wich draw a line from a point and 
store the lenght inside a field layer.

Is ther any way to do that ?



Thanks



Sylvain



[cid:image001.jpg@01D88716.6296A620]

Sylvain PIERRE

Chef de projet système d’information

Direction des Systèmes d’Information et du Développement Numérique

Service Projets et Ingénierie Numérique

Collectivité européenne d’Alsace

Tél : 03 88 76 68 88

sylvain.pie...@alsace.eu<mailto:sylvain.pie...@alsace.eu>

www.alsace.eu<http://www.alsace.eu>

[facebook]<http://www.facebook.com/toutelalsace> [twitter] 
<http://www.twitter.com/toutelalsace>  [insta] 
<http://www.instagram.com/toutelalsace>



___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] action get measure

2022-06-23 Thread PIERRE Sylvain via QGIS-Developer
Hi ,
I want to build an action on a point layer, wich draw a line from a point and 
store the lenght inside a field layer.
Is ther any way to do that ?

Thanks

Sylvain

[cid:image001.jpg@01D8870F.73668F30]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer
Hi Andeas,

Good tip !
I have to keep init script for good reason ;-). But I was not aware (not enough 
yet) of such possibilities. So for setting current date it’s pretty cool.
QGIS will still be amazing !

Thanks again

[cid:image009.jpg@01D8402E.DD9E9320]
Sylvain PIERRE
Chef de projet système d’information
Direction des Systèmes d’Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d’Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu<mailto:sylvain.pie...@alsace.eu>
www.alsace.eu<http://www.alsace.eu>
[facebook]<http://www.facebook.com/toutelalsace> [twitter] 
<http://www.twitter.com/toutelalsace>  [insta] 
<http://www.instagram.com/toutelalsace>

De : Andreas Neumann 
Envoyé : vendredi 25 mars 2022 09:28
À : Denis Rouzaud 
Cc : PIERRE Sylvain ; qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
Apprendre à reconnaître un email de 
phishing.<https://intranet.alsace.eu/actualites/apprenez-a-reconnaitre-un-email-phishing/>

Hi Pierre,

Not sure if you are aware that recent QGIS releases also have very good 
"default" value support without having to use Python. You can simply set 
default values with QGIS expressions. No need for Python code (unless you do 
something really special).

You can even set date values dependent on other widgets without having to use 
Python scripting - and do updates whenever something changes on the record, 
without having to fall back to Python scripting.

Just wanted to make sure you are aware of this alternative mechanism. There 
might still be good reasons for using Python scripting though - but theses 
cases are now rarer.

Greetings,

Andreas

On 2022-03-25 09:17, Denis Rouzaud via QGIS-Developer wrote:
QgsDateTimeEdit implements setDateTime, which is not virtual in QDateTimeEdit.
It's probably that you have to find a QDateTimeEdit rather than the Qt native 
one.

Not 100% sure this is the issue though, but it won't hurt.

Le ven. 25 mars 2022 à 09:11, PIERRE Sylvain via QGIS-Developer 
mailto:qgis-developer@lists.osgeo.org>> a écrit 
:

Thanks for tip Richard, but I've tried with
today = QtCore.QDateTime.currentDateTime()
But it's not working




-Message d'origine-
De : Richard Duivenvoorde mailto:rdmaili...@duif.net>>
Envoyé : vendredi 25 mars 2022 08:50
À : PIERRE Sylvain mailto:sylvain.pie...@alsace.eu>>; 
qgis-developer@lists.osgeo.org<mailto:qgis-developer@lists.osgeo.org>
Objet : Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d'abord qu'il ne s'agit pas d'un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
==

On 3/25/22 08:33, PIERRE Sylvain via QGIS-Developer wrote:

> But this is not working with QDateEdit widget :
>
> today=date.today()
>
> control=dialog.findChild(QDateEdit,"date_insert")
>
> control.setDateTime(today)
>
> What is the right syntax to init the date widget ? It's impossible to debug 
> init script (or may be I'm missing something...)

Hi,

Which module is 'date.today()' from, not Qt is it?

You probably have to use the QDatetime: 
https://doc.qt.io/qt-5/qdatetime.html#currentDateTime

>>> QDateTime.currentDateTime()
PyQt5.QtCore.QDateTime(2022, 3, 25, 8, 44, 19, 963)

And set THAT with the widget?

See: https://doc.qt.io/qt-5/qdatetimeedit.html#dateTime-prop

(it always a little hassle to juggle with date/time etc in Python/Qt)

Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer

Thanks for tip Richard, but I've tried with 
today = QtCore.QDateTime.currentDateTime()
But it's not working


  

-Message d'origine-
De : Richard Duivenvoorde  
Envoyé : vendredi 25 mars 2022 08:50
À : PIERRE Sylvain ; qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

Soyez vigilant : ce courriel provient d'une organisation externe à la CeA.
• Assurez-vous d’abord qu’il ne s’agit pas d’un email malveillant avant de 
cliquer sur tout lien ou pièce jointe.
==

On 3/25/22 08:33, PIERRE Sylvain via QGIS-Developer wrote:

> But this is not working with QDateEdit widget :
> 
> today=date.today()
> 
> control=dialog.findChild(QDateEdit,"date_insert")
> 
> control.setDateTime(today)
> 
> What is the right syntax to init the date widget ? It’s impossible to debug 
> init script (or may be I’m missing something…)

Hi,

Which module is 'date.today()' from, not Qt is it?

You probably have to use the QDatetime: 
https://doc.qt.io/qt-5/qdatetime.html#currentDateTime

>>> QDateTime.currentDateTime()
PyQt5.QtCore.QDateTime(2022, 3, 25, 8, 44, 19, 963)

And set THAT with the widget?

See: https://doc.qt.io/qt-5/qdatetimeedit.html#dateTime-prop

(it always a little hassle to juggle with date/time etc in Python/Qt)

Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer
Hi,
I build a form for a layer with drag and drop mode, and I use an init function 
to init some value for some widdget. I have no problem to do that with 
Qcombobox an QLineEdit widget :


linedit_imat = dialog.findChild(QLineEdit,"code_eqpt")
linedit_imat.setText(imatEqpt)

linedit_com = dialog.findChild(QLineEdit,"fk_commune")
linedit_com.setText(find_comtxt)

But this is not working with QDateEdit widget :
today = date.today()
control = dialog.findChild(QDateEdit,"date_insert")
control.setDateTime(today)

What is the right syntax to init the date widget ? It's impossible to debug 
init script (or may be I'm missing something...)

Thanks

[cid:image002.jpg@01D84022.F648C6E0]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] donuts charts

2022-03-18 Thread PIERRE Sylvain via QGIS-Developer
Hi all,

Is there something already exists or planed to make a map with donuts charts 
instead of pie charts ?
I do not find anything yet.
Il I look at plotly, it seems realy simple : 
https://support.sisense.com/kb/en/article/donut-charts-%E2%80%94-plotly
Do you think it should be difficult to manage a new « hole » parameter in Qgis 
charts ?

Thanks

[cid:image002.jpg@01D83AA8.E5138C90]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] QGIS connections to MSSQL generate multiple (000s) processes on database server

2021-09-21 Thread PIERRE Sylvain
Thanks Bo ,
It seems to be a valid workaround for us.
I'm interesting in such procedure.

Thanks for your help

[cid:image001.jpg@01D7AEEF.96D57FB0]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu<mailto:sylvain.pie...@alsace.eu>
www.alsace.eu<http://www.alsace.eu>
[facebook]<http://www.facebook.com/toutelalsace> [twitter] 
<http://www.twitter.com/toutelalsace>  [insta] 
<http://www.instagram.com/toutelalsace>

De : QGIS-Developer  De la part de Bo 
Victor Thomsen
Envoyé : mardi 21 septembre 2021 09:04
À : qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] QGIS connections to MSSQL generate multiple (000s) 
processes on database server


>From the bug report:

"QGIS is operating a 'full table scan' for MSSQL connections where no 
geometry_columns table exists." which triggers the situation. That's not smart 
and should be fixed.

However until that happens, an obvious work-around would be to create and 
populate a geometry_columns table. So if you don't have a geometry_columns 
table in the database, create one and populate it with the information about 
your spatial tables. This can be done automatically with a stored procedure 
outside the scope of QGIS.

I think I have such procedure lurking somewhere in my dungeon of a backup 
system. Send me a mail if you're interested.

Med venlig hilsen / Kind regards



Bo Victor Thomsen
Den 20-09-2021 kl. 11:44 skrev PIERRE Sylvain:
Hi ,

In want to connect with QGIS to a MSSQL geodabase. But when connecting to this 
DB it generates multiple (000s) processes on database server.
DB contains 10 schemas with several huundred tables

Realy similar to this issue 
https://github.com/qgis/QGIS/issues/31101#<https://github.com/qgis/QGIS/issues/31101>

Is there any workaround for this ?

Thanks


[cid:image005.jpg@01D7AEEF.96D57FB0]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu<mailto:sylvain.pie...@alsace.eu>
www.alsace.eu<http://www.alsace.eu>
[facebook]<http://www.facebook.com/toutelalsace> [twitter] 
<http://www.twitter.com/toutelalsace>  [insta] 
<http://www.instagram.com/toutelalsace>




___

QGIS-Developer mailing list

QGIS-Developer@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] QGIS connections to MSSQL generate multiple (000s) processes on database server

2021-09-20 Thread PIERRE Sylvain
Hi ,

In want to connect with QGIS to a MSSQL geodabase. But when connecting to this 
DB it generates multiple (000s) processes on database server.
DB contains 10 schemas with several huundred tables

Realy similar to this issue 
https://github.com/qgis/QGIS/issues/31101#

Is there any workaround for this ?

Thanks


[cid:image001.jpg@01D7AE14.CFD37640]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pie...@alsace.eu
www.alsace.eu
[facebook] [twitter] 
  [insta] 


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Debug mode for custom form init script

2019-01-28 Thread PIERRE Sylvain
Hi dev,


I want to do some deep control when user edit data in a custom form. So when I 
want to test my script there's no feedback from python console. Even If I put 
some QMessageBox in my code, it's not displayed while some other instruction 
placed after effect.

So is there some way to get debug information when using a custom form init 
script?

Thanks

Sylvain
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] missing matplotlib.pyplot python module

2018-04-24 Thread PIERRE Sylvain
HI,
I face exactly same issue (code was ok with 2.14 and failed with 2.18)
I solved it by removing :
import matplotlib.pyplot as plt
and keep direct import :
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as 
NavigationToolbar
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure

sylvain

-Message d'origine-
De : QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de CzendaZdenda
Envoyé : mercredi 25 avril 2018 07:29
À : qgis-developer@lists.osgeo.org
Objet : Re: [QGIS-Developer] missing matplotlib.pyplot python module

Hi,

you have probably solved the problem, but for those with the same problem.
You can try install 'python-tcltk' library using OSGeo4W installer. It
helped me.

Czenda



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Eclipse config for QGIS API

2018-01-15 Thread PIERRE Sylvain
Hi Anita,
I’m using Eclipse with QGIS API without problems (with Essen old release) . 
Import works.
Did you set a PATH variable in the Environment tab? (for me value is: 
C:\Program Files\QGIS Essen;C:\Program Files\QGIS Essen\bin;C:\Program 
Files\QGIS Essen\apps\qgis-ltr\bin;C:\Program Files\QGIS 
Essen\apps\python27\DLLs)

Sylvain


De : QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de Anita Graser
Envoyé : dimanche 14 janvier 2018 15:07
À : qgis-dev
Objet : [QGIS-Developer] Eclipse config for QGIS API

Hi,

I've been following 
https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/ide_debugging.html
 to set up Eclipse including "Making eclipse understand the [QGIS] API"

When I import from qgis.core:

from qgis.core import qgsfunction, QgsExpression

qgsfunction is recognized but QgsExpression is not:

https://www.dropbox.com/s/zmbzllwu2egijbq/Screenshot%202018-01-14%2014.52.52.png?dl=0

My Python interpreter is set up as shown here

https://www.dropbox.com/s/ztnr4e6zbjkk35z/Screenshot%202018-01-14%2014.54.08.png?dl=0

Am I missing something to get full PyQGIS code completion?

Regards,
Anita


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] OsmAnd obf data + styling ?

2017-10-16 Thread PIERRE Sylvain
I'm interest in OSMAND rendering too.
XML ressources for styling are here : 
https://github.com/osmandapp/OsmAnd-resources/tree/master/rendering_styles 

Question is: how can I apply one OSMAND style to OSM data?

Sylvain

-Message d'origine-
De : QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de Stefan Keller
Envoyé : dimanche 15 octobre 2017 00:19
À : qgis-developer
Cc : rich...@duif.net
Objet : Re: [QGIS-Developer] OsmAnd obf data + styling ?

2017-10-14 23:44 GMT+02:00 Stefan Keller :
> It's using OSM data, so why not taking the data directly from OSM e.g.
> using HOT Export [2] or OSMaxx tools [3]?
...
> [1] http://osmand.net/help/MapAddressDataStructure.html
> [2] https://export.hotosm.org/
> [3] https://osmaxx.hsr.ch/

... and for base maps I hope the Vector Tiles Reader [4] plugin becomes better 
and better...

:Stefan

[4] http://plugins.qgis.org/plugins/vector_tiles_reader/

2017-10-14 23:44 GMT+02:00 Stefan Keller :
> 2017-10-14 16:51 GMT+02:00 Richard Duivenvoorde :
>> As OsmAnd (for Android and Iphone) [0][1] is getting better and 
>> better, I wonder if we/QGIS can (re)use/handle their data source and styling.
>
> According to [1] the 'obf' file has a complex structure and consists 
> of 4 multiple parts:
> (vector) map tiles, transport (routing), POI, adresses.
> The OsmAnd styling seems to come with the Java binaries.
>
> What is your use case to read such a specialized format into QGIS?
>
> It's using OSM data, so why not taking the data directly from OSM e.g.
> using HOT Export [2] or OSMaxx tools [3]?
>
> :Stefan
>
> [1] http://osmand.net/help/MapAddressDataStructure.html
> [2] https://export.hotosm.org/
> [3] https://osmaxx.hsr.ch/
>
>
> 2017-10-14 16:51 GMT+02:00 Richard Duivenvoorde :
>> As OsmAnd (for Android and Iphone) [0][1] is getting better and 
>> better, I wonder if we/QGIS can (re)use/handle their data source and styling.
>>
>> The format is a binary .obf file in (protobuf apparently? [2])?
>> Is this some kind of vector tiling?
>>
>> Anybody interested, or has some more info about this?
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>>
>> [0] http://osmand.net/
>> [1] https://github.com/osmandapp/Osmand
>> [2] 
>> https://github.com/osmandapp/OsmAnd-tools/tree/master/OsmAndMapCreato
>> r ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Oracle view loading too slow

2017-05-23 Thread PIERRE Sylvain
Hi folks,

No matter qgis version (2.14, 2.18) , loading  oracle spatial table with 2 
rows take few seconds while loading a view  (based on same table) with 900 rows 
take  more than one minute.
Is there some way to tune oracle view to take more reasonable loading time?

I know that materialized view is a solution, but with frequently dataset update 
this is not the solution here…

Thanks
Thanks


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Dissolve processing alg vs Vector menu group by

2016-11-28 Thread PIERRE Sylvain
Hi devs,

I found different results when I want to dissolve line vector layer by 
attribute value :
With Dissolve processing alg,  features are merged but with Multilinestring 
geometry type for dissolved cases, and Linestring geometry  for other cases.
With group by action from vector menu, all  features get Linestring type.

Is ‘group by’ behavior the right one? In such case should be  Dissolve 
processing alg improved?

Sylvain


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

Re: [Qgis-developer] MS SQLServer support to DB manager

2016-07-26 Thread PIERRE Sylvain
Yes, it helps !

Thanks Nyall

I previously looked at DB manager plugin, but not for this. I imagined that 
there was some C++ stuff behind (just like for providers)

So I’m going to look deeper at the plugin…

De : Nyall Dawson [mailto:nyall.daw...@gmail.com]
Envoyé : mardi 26 juillet 2016 11:27
À : PIERRE Sylvain
Cc : qgis-developer
Objet : Re: [Qgis-developer] MS SQLServer support to DB manager


On 26 Jul 2016 7:25 PM, "Nyall Dawson" 
mailto:nyall.daw...@gmail.com>> wrote:
>
> On 26 Jul 2016 7:09 PM, "PIERRE Sylvain" 
> mailto:sylvain.pie...@bas-rhin.fr>> wrote:
> >
> > Hi devs,
> >
> >
> >
> > Is there any plan to add MS SQLServer support to DB manager?
>
> I haven't seen anyone publicly working on this, but it sure would be nice!
>
> >
> > I notice Oracle support was added in 2.14…
> >
> > I don’t have any idea of kind of work such improvement represent…
> >
> > Should it be funded?
>
> Funding is just one way to ensure it's implemented in a way that suits your 
> needs and meets your desired timeline. Otherwise options are:
>
> 1. Wait for someone else to write/fund this. (Can take a long time for a 
> feature like this, or it could be tomorrow... There's no way of predicting!)
> 2. Implement it yourself. If you're comfortable working with python this 
> should be relatively straightforward. It's a matter of copying what was done 
> for the Oracle databases and adapting for mssql.

I should have added: if you go with this option there's plenty of QGIS 
developers who are happy to "mentor" and give advice if you get stuck.

Nyall

> 3. Proactively seek backers/crowd source the funding yourself - if you're 
> good at networking and social media this is a great option!
> 4. Find a developer who will donate the time to implement this.
>
> Hope that helps!
> Nyall
>
>
>
>
>
> >
> > Sylvain
> >
> >
> >
> >
> >
> >
> >
> > →  Sylvain PIERRE
> >
> >  Chef de projet
> >
> >  Direction des Systèmes d’Information
> >
> >  Service SIG et ressources
> >
> >
> >
> >Conseil Départemental du Bas-Rhin
> >
> >  Hôtel du Département
> >  1 place du Quartier Blanc 67964 Strasbourg Cedex 9
> >  Tél : 03 88 76 68 88 - mobile :
> >  Mobile : 06 30 96 31 76
> >  Email : 
> > sylvain.pie...@bas-rhin.fr<mailto:sylvain.pie...@bas-rhin.fr>
> >
> >  www.bas-rhin.fr<http://www.bas-rhin.fr>
> >
> >
> >
> >
> >
> >
> > ___
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org<mailto:Qgis-developer@lists.osgeo.org>
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] MS SQLServer support to DB manager

2016-07-26 Thread PIERRE Sylvain
Hi devs,

Is there any plan to add MS SQLServer support to DB manager?
I notice Oracle support was added in 2.14…
I don’t have any idea of kind of work such improvement represent…
Should it be funded?
Sylvain



→  Sylvain PIERRE
 Chef de projet
 Direction des Systèmes d’Information
 Service SIG et ressources

   Conseil Départemental du Bas-Rhin

[cid:image001.jpg@01D1E72E.2585E9A0]

 Hôtel du Département
 1 place du Quartier Blanc 67964 Strasbourg Cedex 9
 Tél : 03 88 76 68 88 - mobile :
 Mobile : 06 30 96 31 76
 Email : sylvain.pie...@bas-rhin.fr
 www.bas-rhin.fr



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

[Qgis-developer] plugin repository is down

2016-05-30 Thread PIERRE Sylvain
It looks like plugin repository is down now :
http://plugins.qgis.org/plugins/plugins.xml


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

[Qgis-developer] QGIS processing script repos

2016-04-01 Thread PIERRE Sylvain
Hi,
With QGIS 2.12.1:
Where can I set QGIS processing script repos?
When I want to load R script from toolbox I get a python error like this : 
http://hub.qgis.org/issues/12515
Bug seems to be fix, but…

Repos is located here: 
https://github.com/qgis/QGIS-Processing/tree/master/rscripts
But I don’t know where I can set it in QGIS

Thanks

Sylvain

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

Re: [Qgis-developer] Changes to a newly created memory layer are affecting the original layer from which it was copied

2016-03-19 Thread PIERRE Sylvain
Select records 
Copy
Paste as memory layer
?

Cheers 

Sylvain


-Message d'origine-
De : Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de Tom Chadwin
Envoyé : vendredi 18 mars 2016 11:32
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Changes to a newly created memory layer are 
affecting the original layer from which it was copied

Last follow-up on this, I hope: is there an accepted method for 
cloning/duplicating a vector layer? Examples online seem to involve manually 
creating a new layer and then iterating over the source layer's features to add 
to the new one. Anything simpler?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Changes-to-a-newly-created-memory-layer-are-affecting-the-original-layer-from-which-it-was-copied-tp5256690p5257138.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Change default field identify tool

2015-12-01 Thread PIERRE Sylvain
Hi,

I would like to know if it's possible to change field displayed when identify 
map tool return more than one object.
By default it seem to display first column, which is always pk in my case 
(postgis layer)
For end user pk doesn't mean anything


Thanks

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

Re: [Qgis-developer] Tool to pick up linear referencing measure from mouse

2015-11-24 Thread PIERRE Sylvain

Hi Regis,

I dont know if it's exactly what you are looking for but I had a same question.
It was not for a plugin but for a standalone app. Form looks like screenshot 
joined
I can send you ui and  class behind the form. Lots of things are hard-coded 
(standalone app)

It's a mash-up from first LRS plugin (Martin Dobias), others, and at least  
personal stuff ;-)
PS: I have same for point event

Sylvain

-Message d'origine-
De : Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de Régis Haubourg
Envoyé : lundi 23 novembre 2015 18:01
À : qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Tool to pick up linear referencing measure from mouse

Hi,
I'm having a classical use case here. Before starting a new plugin, and since 
it is a very common task in GIS, I would like to know if anyone has made 
something alike:

- I have a postgis db with LINESTRINGM routes (watercourses already calibrated 
with measures).

- I have a non geometric table registering events with start and end measures + 
identifier of my routes (watercours ID). 

- I create my event in the attribute table, with one ID and two manually typed 
measures, then a view cast it to spatial view using locate_beetween_measure 
function. 

I would like to create a form with two tools dedicated to "pick up" my route 
and the measure. i've done it in Arcview 3.2 once in the old past.. 
What could be the current better and simpler approach in QGIS? 

LRS plugin does not have that feature, and requires to recalibrate layers from 
scratch.

Could we dream for the future of a new generic form widget with custom 
expressions to get attributes or geometric information from a layer (with 
snapping options )?  

Cheers

Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] PyQgis : Sorting alphabetically groups into legend widget

2015-07-06 Thread PIERRE Sylvain

Hello,

In a python script I want to sort by name groups inside legend widget.
I've done some test with QgsLayerTreeModel and QgsLayerTreeview but with no 
result
What's the best (an simple!) way to do that?

Thanks

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

[Qgis-developer] pyqgis loading oracle table with sql expression

2015-07-03 Thread PIERRE Sylvain
Hi,

I'm trying to load oracle table with sql expression like explain here:
http://blog.georepublic.info/2013/joining-tables-with-sql-using-pyqgis/

My python code:
uriOracle = QgsDataSourceURI()
uriOracle.setSrid("EPSG:3948")
uriOracle.setConnection('', 'x','x', 'consultsig','consultsig')

uriOracle.setDataSource( "", "(select * from COMMUNE sort by ccocom)", "GEOM", 
"","id")

layer = QgsVectorLayer(uriOracle.uri(), 'communes', 'oracle')
if  not layer.isValid():
  print "Layer failed to load!"

But layer is not valid.
Did I miss something?
(I want to load layer but already sorted on a field value...)
Thanks

Sylvain



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

[Qgis-developer] Copy/paste feature from Oracle layer failed

2015-04-27 Thread PIERRE Sylvain

Hi,
Copy/paste from Oracle layer failed in 2 ways:
First: Copy/paste feature as new layer failed on Oracle layer
When I try to copy paste features from Oracle layers to new layer/ memory 
layer, it fails with this information message:
"No features in clipboard"
Copy / past is working well with shapefile or Postgis layer.
Second: Copy/paste lines from attribute table to excel (for example...) paste 
only field names, no data
What's the reason for failing with Oracle layer?

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

[Qgis-developer] programmatically load a plugin

2015-04-02 Thread PIERRE Sylvain
Hello,

I would like to programmatically load a plugin from QGIS official repository 
(eg in startup python script)
I’ve found QgsPluginManagerInterface class but I’m not sure 
addPluginMetadata
 can do the trick…
I’ve explored QWebPluginFactory class which can be access by 
qgis.utils.plugins, but it’s a little bit confusing for me…


Sylvain



→  Sylvain PIERRE
 Ingénieur Géographe et adjoint au chef du service de l’administr
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Départemental du Bas-Rhin

[cid:image001.jpg@01D06D26.BB468450]

 Hôtel du Département
 1 place du Quartier Blanc / 67964 Strasbourg Cedex 9
 Tél : 03 88 76 68 88 – mobile :
 Email : sylvain.pie...@bas-rhin.fr
 www.bas-rhin.fr


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

Re: [Qgis-developer] QGIS and GRASS 7.0.0

2015-02-24 Thread PIERRE Sylvain
Hi GRASS plugin users ;-)

+1 Pedro

GRASS plugin is definitely the most convenient way to access GRASS 
functionalities…
With plugin you have GRASS embedded in QGIS, you get the best of both worlds

Sylvain

De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Pedro Venâncio
Envoyé : lundi 23 février 2015 22:07
À : Paolo Cavallini
Cc : qgis-developer
Objet : Re: [Qgis-developer] QGIS and GRASS 7.0.0

Olá Paolo,

this will require a reasonable amount of work. I have raised the issue
several times; sadly it seems nobody is willing to invest the necessary
resources on this.

Despite the great advantages of GRASS commands in Processing, I think that the 
GRASS plugin still plays an important role and is an excellent interface for 
GRASS. For those who still like to use the paradigm of locations, mapsets and 
the GRASS topological model, GRASS plugin is very important, because then it 
allows to use all QGIS tools, for example, to create layouts using the 
Composer, etc.

If no one is interested in making the port of the plugin for GRASS 7, we could 
try through a crowdfounding initiative. Who was behind the initial creation of 
GRASS plugin?



BTW, would you mind giving us a list of the missing modules in
Processing? AFAIK these should be only obsolete and useless ones, but if
there is some genuinely missing we should be able to fix this rather easily.


I've been checking the differences and they are indeed few. Please see the 
spreadsheet attached.

Some commands seem that were adaptations of other algorithms, made for 
Processing, as they are not in the 6 manual, or in the 7: r.cost.full.raster, 
r.drain.coordinate, r.terraflow.short, v.surf.rst.cvdev.line, v.surf.rst.line, 
v.transform.pointsfile.

Others seem that have been removed from GRASS 7 (r.average, r.bilinear, 
r.bitpattern, r.surf.idw2), as they are not in the GRASS 7 manual.

There are five that seem important to me, which are in GRASS 7, in Processing 
GRASS 6, but not in Processing GRASS 7: r.out.xyz, r.ros, r.spread, r.univar, 
v.kernel.

Finally, there are two commands that are on GRASS 7 and were not in 6: 
r.viewshed (which replace r.los) and r.relief (which replace r.shaded.relief).

Thanks!
Best regards,
Pedro Venâncio
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Filter layer after join, error/impossible

2015-02-23 Thread PIERRE Sylvain
Thank's Hugo

Will the patch be include in next release (2.8.1)? And what about the "small 
function" to convert layer to virtual layer?

By the way, I've found a workaround:
1 begin first by filtering the "wanna be" joined table
2 perform join
3 Display only needed features by setting NoSymbol to other features in a 
rule-rendering style...

Sylvain

-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Hugo Mercier
Envoyé : vendredi 20 février 2015 17:56
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Filter layer after join, error/impossible

Hi Pierre,

Le 20/02/2015 16:31, PIERRE Sylvain a écrit :
> Hi,
> 
>  
> 
> I've same behaviour with different case :
> 
> I want to filter a layer (Oracle/Postgis) after performing join with 
> tabular data (Excel, MSSQL tested).
> 
> First Filtering by Layer properties Ui is disabled (greyed button)
> 
> Filtering possible by Menu "Layer"-"Filter"
> 
> Joined fields appears, and Sample values do so.
> 
> But when I want to test filter I got an error message box: (sorry in 
> French)
> 
> "Une erreur a été rencontrée lors de l'exécution de la requête.
> 
> Le prestataire de donné a dit :
> 
> ORA-00904: "V_SIG_SITE_Site_Nature" : identificateur non valide
> 
> Impossible d'exécuter cette déclaration »
> 
>  

The filtering of a layer is done at the provider level, where nothing is known 
about the joined fields (they only exist QGIS side).

I've submitted a patch (1) to fix the UI issues: we will be able to filter on 
layers with joined fields, but only on fields of the primary table.
If you need to filter on joined fields, I am working on a "virtual layer" 
provider where you could use any SQL joins. A small function would allow to 
convert a layer with joins to a virtual layer and apply filtering on it.
More on this next week, hopefully ...

(1) https://github.com/qgis/QGIS/pull/1911

___
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] Filter layer after join, error/impossible

2015-02-20 Thread PIERRE Sylvain
Hi,

I've same behaviour with different case :
I want to filter a layer (Oracle/Postgis) after performing join with tabular 
data (Excel, MSSQL tested).
First Filtering by Layer properties Ui is disabled (greyed button)
Filtering possible by Menu "Layer"-"Filter"
Joined fields appears, and Sample values do so.
But when I want to test filter I got an error message box: (sorry in French)

"Une erreur a été rencontrée lors de l'exécution de la requête.
Le prestataire de donné a dit :
ORA-00904: "V_SIG_SITE_Site_Nature" : identificateur non valide
Impossible d'exécuter cette déclaration »

Message a bit different with Postgis layer :

"Une erreur a été rencontrée lors de l'exécution de la requête.

Le prestataire de donné a dit :

ERROR: column "maires_ZPENS_ville" does not exist

LINE 1: SELECT * FROM "riv"."bdca_commune" WHERE "maires_ZPENS_ville...

^
"
Is It possible that a simple action like that is missing?

Thanks

Sylvain




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

Re: [Qgis-developer] 2.2 -> 2.6 oracle table SRID not identified

2014-11-07 Thread PIERRE Sylvain
You're right Jonathan,

If I choose the option « Only search in the metadata table" SRID is correctly 
displayed.
But this is a difference between releases.

Thanks

De : Jonathan Moules [mailto:j.mou...@hrwallingford.com]
Envoyé : jeudi 6 novembre 2014 18:08
À : PIERRE Sylvain; 'qgis-developer@lists.osgeo.org'
Objet : RE: 2.2 -> 2.6 oracle table SRID not identified

Hi Sylvain,
I'm not seeing this. For me at least, using 2.2, 2.4, and 2.6, all exhibit the 
same behaviour with showing SRID's for layers that have geometry. All are 
correctly showing the SRID as 8607 (Oracle's version of WGS84).

Maybe it's your connection options?

Cheers,
Jonathan


From: 
qgis-developer-boun...@lists.osgeo.org<mailto:qgis-developer-boun...@lists.osgeo.org>
 [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of PIERRE Sylvain
Sent: Monday, November 03, 2014 12:55 PM
To: qgis-developer@lists.osgeo.org<mailto:qgis-developer@lists.osgeo.org>
Subject: [Qgis-developer] 2.2 -> 2.6 oracle table SRID not identified


Hi,

There's difference between 2.2 and 2.6 release when scanning an Oracle database:
With 2.2 table's SRID are well identified, not with 2.6 and DB is the same.

What should be the reason of these different behaviour? (and the solution ;-)?

Thanks

Sylvain Pierre


This message has been scanned for viruses by 
MailControl<http://www.mailcontrol.com/>, a service from BlackSpider Technology

Click 
here<https://www.mailcontrol.com/sr/9HQv42idpQHGX2PQPOmvUizKrmxxhcEG3GTnIjV23qqAqtQF7!FWUw1p4Vj8kvahaMndD5wzWU8YNBM7q0TQEQ==>
 to report this email as spam.





HR Wallingford and its subsidiaries uses faxes and emails for confidential and 
legally privileged business communications. They do not of themselves create 
legal commitments. Disclosure to parties other than addressees requires our 
specific consent. We are not liable for unauthorised disclosures nor reliance 
upon them.
If you have received this message in error please advise us immediately and 
destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099


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

[Qgis-developer] 2.2 -> 2.6 oracle table SRID not identified

2014-11-03 Thread PIERRE Sylvain

Hi,

There's difference between 2.2 and 2.6 release when scanning an Oracle database:
With 2.2 table's SRID are well identified, not with 2.6 and DB is the same.

What should be the reason of these different behaviour? (and the solution ;-)?

Thanks

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

Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

2014-10-02 Thread PIERRE Sylvain
I’ve tested with 
QGIS-OSGeo4W-2.5.0-39-Setup-x86.exe<http://qgis.org/downloads/weekly/QGIS-OSGeo4W-2.5.0-39-Setup-x86.exe>
 and 
QGIS-OSGeo4W-2.5.0-38-Setup-x86.exe<http://qgis.org/downloads/weekly/QGIS-OSGeo4W-2.5.0-38-Setup-x86.exe>
I got same results with both ☹

De : A Huarte [mailto:ahuart...@yahoo.es]
Envoyé : lundi 29 septembre 2014 18:12
À : PIERRE Sylvain; Nathan Woodrow
Cc : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

Hi, there is a small change in simplification code to fix the bug #10767 
(http://hub.qgis.org/issues/10767):

https://github.com/qgis/QGIS/commit/eaacb125c402cf22dd66482b313bdaef73791fea

Can you test QGIS before this commit ?

Best regards
Alvaro

____
De: PIERRE Sylvain mailto:sylvain.pie...@cg67.fr>>
Para: Nathan Woodrow mailto:madman...@gmail.com>>
CC: "qgis-developer@lists.osgeo.org<mailto:qgis-developer@lists.osgeo.org>" 
mailto:qgis-developer@lists.osgeo.org>>
Enviado: Lunes 29 de septiembre de 2014 15:12
Asunto: Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

See attached screen shots. It takes 15 seconds to render all the area.
With 2.2 or 2.4 release there’s no step like this during rendering an it takes 
5 seconds for same area / same data…

De : Nathan Woodrow [mailto:madman...@gmail.com]
Envoyé : lundi 29 septembre 2014 13:06
À : PIERRE Sylvain
Cc : qgis-developer@lists.osgeo.org<mailto:qgis-developer@lists.osgeo.org>
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

Hey,

I'm not sure I follow.  Could you post a screen shot.

- Nathan

On Mon, Sep 29, 2014 at 9:02 PM, PIERRE Sylvain 
mailto:sylvain.pie...@cg67.fr>> wrote:
Hi,

Doing some test on 2.5.
I’m a little bit surprised by rendering mode between 2.5 and 2.4. Is there any 
change?
First QGIS 2.5 is slower than 2.4 with same data. And rendering mode looks  
like an impressionist  painter drawing randomly small area on canvas for vector 
and draw pixels for raster, both before full rendering  correctly done…

Os is Win7


Sylvain

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


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org<mailto: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] QGIS 2.5 vs 2.4 rendering mode

2014-10-02 Thread PIERRE Sylvain
No I didn't

-Message d'origine-
De : Sandro Santilli [mailto:sandro.santi...@gmail.com] De la part de Sandro 
Santilli
Envoyé : mardi 30 septembre 2014 10:53
À : PIERRE Sylvain
Cc : Denis Rouzaud; qgis-developer@lists.osgeo.org; Régis Haubourg
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

On Tue, Sep 30, 2014 at 10:51:21AM +0200, PIERRE Sylvain wrote:
> Same behaviour with or without

Did you check build flags, in case some -O went lost ?

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


Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

2014-09-30 Thread PIERRE Sylvain
Same behaviour with or without

-Message d'origine-
De : Denis Rouzaud [mailto:denis.rouz...@gmail.com] 
Envoyé : mardi 30 septembre 2014 10:24
À : PIERRE Sylvain
Cc : Régis Haubourg; qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode


On 30.09.2014 10:15, PIERRE Sylvain wrote:
> Simplification is on for 2.2, 2.4 and  2.5
can you test with simplification disabled?
> Antialiasing is on too
>
> -Message d'origine-
> De : Rouzaud Denis [mailto:denis.rouz...@gmail.com] Envoyé : mardi 30 
> septembre 2014 09:31 À : PIERRE Sylvain Cc : Régis Haubourg; 
> qgis-developer@lists.osgeo.org Objet : Re: [Qgis-developer] QGIS 2.5 
> vs 2.4 rendering mode
>
>
> On 30 Sep 2014, at 09:28, PIERRE Sylvain  wrote:
>
>> In my case, parallel rendering is on
>>
>> It takes 15 seconds to render an area.
>> With 2.2 or 2.4 release there's no step like this during rendering an 
>> it takes 5 seconds for same area / same data.
> What about simplification?
>> -Message d'origine-
>> De : qgis-developer-boun...@lists.osgeo.org
>> [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Régis 
>> Haubourg Envoyé : lundi 29 septembre 2014 21:04 À :
>> qgis-developer@lists.osgeo.org Objet : Re: [Qgis-developer] QGIS 2.5 
>> vs 2.4 rendering mode
>>
>> Hi, same here, I don't get exactly what's different with 2.4, and 
>> didn't notice that during testing. Do we need special settings (On 
>> the fly simplification, parallel rendering?) Régis
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/QGIS-2-5-vs-2-4-rendering-mode-tp
>> 5 164698p5164805.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

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


Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

2014-09-30 Thread PIERRE Sylvain
Simplification is on for 2.2, 2.4 and  2.5
Antialiasing is on too

-Message d'origine-
De : Rouzaud Denis [mailto:denis.rouz...@gmail.com] 
Envoyé : mardi 30 septembre 2014 09:31
À : PIERRE Sylvain
Cc : Régis Haubourg; qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode


On 30 Sep 2014, at 09:28, PIERRE Sylvain  wrote:

> In my case, parallel rendering is on
> 
> It takes 15 seconds to render an area.
> With 2.2 or 2.4 release there's no step like this during rendering an 
> it takes 5 seconds for same area / same data.

What about simplification?
> 
> -Message d'origine-
> De : qgis-developer-boun...@lists.osgeo.org 
> [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Régis 
> Haubourg Envoyé : lundi 29 septembre 2014 21:04 À : 
> qgis-developer@lists.osgeo.org Objet : Re: [Qgis-developer] QGIS 2.5 
> vs 2.4 rendering mode
> 
> Hi, same here, I don't get exactly what's different with 2.4, and 
> didn't notice that during testing. Do we need special settings (On the 
> fly simplification, parallel rendering?) Régis
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/QGIS-2-5-vs-2-4-rendering-mode-tp5
> 164698p5164805.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

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


Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

2014-09-30 Thread PIERRE Sylvain
In my case, parallel rendering is on

 It takes 15 seconds to render an area.
With 2.2 or 2.4 release there’s no step like this during rendering an it takes 
5 seconds for same area / same data…

-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Régis Haubourg
Envoyé : lundi 29 septembre 2014 21:04
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

Hi, same here, I don't get exactly what's different with 2.4, and didn't notice 
that during testing. Do we need special settings (On the fly simplification, 
parallel rendering?) Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-2-5-vs-2-4-rendering-mode-tp5164698p5164805.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

[Qgis-developer] QGIS 2.5 vs 2.4 rendering mode

2014-09-29 Thread PIERRE Sylvain
Hi,

Doing some test on 2.5.
I'm a little bit surprised by rendering mode between 2.5 and 2.4. Is there any 
change?
First QGIS 2.5 is slower than 2.4 with same data. And rendering mode looks  
like an impressionist  painter drawing randomly small area on canvas for vector 
and draw pixels for raster, both before full rendering  correctly done...

Os is Win7


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

Re: [Qgis-developer] Get QGIS project EPSG code

2014-09-26 Thread PIERRE Sylvain
Yes, I missunderstood  
postgisSrid<http://qgis.org/api/2.2/classQgsCoordinateReferenceSystem.html#a3cb64f24049d50fbacffd1eece5125ee>
 () method which in fact return EPSG code (not sure of that but in my case 
postgissrid and EPSG code are equal...)


De : Denis Rouzaud [mailto:denis.rouz...@gmail.com]
Envoyé : vendredi 26 septembre 2014 14:00
À : PIERRE Sylvain; QGIS Developer
Objet : Re: [Qgis-developer] Get QGIS project EPSG code

Then iface.mapCanvas().mapRenderer().destinationCrs() should do the job, no?

On 26.09.2014 13:53, PIERRE Sylvain wrote:
Thanks

It should works, but...
I'm working with 2.2 API and mapSettings doesn't exist for this release.
I should have to migrate my devs (for other reasons ;-)

Sylvain

De : Denis Rouzaud [mailto:denis.rouz...@gmail.com]
Envoyé : vendredi 26 septembre 2014 13:43
À : PIERRE Sylvain; QGIS Developer
Objet : Re: [Qgis-developer] Get QGIS project EPSG code

Hi,

iface.mapCanvas().mapSettings().destinationCrs()

Cheers,

Denis
On 26.09.2014 13:31, PIERRE Sylvain wrote:
Hello,

PyQGIS question:
I just want to get EPSG code set at project level when on-the-fly reprojection 
is active.
I suppose it should be available in destinationCrs() properties from 
mapRenderer, but nothing found.

Any idea?

Thanks

Sylvain





___

Qgis-developer mailing list

Qgis-developer@lists.osgeo.org<mailto: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] Get QGIS project EPSG code

2014-09-26 Thread PIERRE Sylvain
Thanks

It should works, but...
I'm working with 2.2 API and mapSettings doesn't exist for this release.
I should have to migrate my devs (for other reasons ;-)

Sylvain

De : Denis Rouzaud [mailto:denis.rouz...@gmail.com]
Envoyé : vendredi 26 septembre 2014 13:43
À : PIERRE Sylvain; QGIS Developer
Objet : Re: [Qgis-developer] Get QGIS project EPSG code

Hi,

iface.mapCanvas().mapSettings().destinationCrs()

Cheers,

Denis
On 26.09.2014 13:31, PIERRE Sylvain wrote:
Hello,

PyQGIS question:
I just want to get EPSG code set at project level when on-the-fly reprojection 
is active.
I suppose it should be available in destinationCrs() properties from 
mapRenderer, but nothing found.

Any idea?

Thanks

Sylvain




___

Qgis-developer mailing list

Qgis-developer@lists.osgeo.org<mailto: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] Get QGIS project EPSG code

2014-09-26 Thread PIERRE Sylvain
Hello,

PyQGIS question:
I just want to get EPSG code set at project level when on-the-fly reprojection 
is active.
I suppose it should be available in destinationCrs() properties from 
mapRenderer, but nothing found.

Any idea?

Thanks

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

[Qgis-developer] Updating QGIS project informations on OpenHub

2014-09-05 Thread PIERRE Sylvain
Hello,
Qgis project informations on OpenHub web site are à little bit outdated (~12 
months)
https://www.openhub.net/p/3663

Informations on this site are in my opinion realy useful and a good way to show 
QGIS reality and activity.

I don't know the way to update this

If someone could do that...

Thanks

Sylvain

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

[Qgis-developer] moving object function disabled with Oracle provider

2014-04-11 Thread PIERRE Sylvain
Hi list,

I'm testing QGIS 2.2 with connection to my Oracle spatial enterprise DB.
When I try to edit point layer, moving object function is disabled.
With postgis layer,  function is enabled.

Is it a bug?

Thanks

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

[Qgis-developer] API 2.0.1 vs 2.2.0 with Pyscripter

2014-03-14 Thread PIERRE Sylvain
Hello,

I'm using Pyscripter to develop standalone application with QGIS API.
When using 2.0.1 API (and former 1.8) there's a realy "confortable" pyscripter 
behavior for debugging code, console print all messages from QGIS API, like 
that:
d:\src\qgis-2.0.1\src\core\qgsvectorlayer.cpp(477) : 
(QgsVectorLayer::drawRendererV2) Total features processed 46
d:\src\qgis-2.0.1\src\core\qgsmaprenderer.cpp(558) : (QgsMapRenderer::render) 
Layer rendered without issues
d:\src\qgis-2.0.1\src\core\qgsmaprenderer.cpp(365) : (QgsMapRenderer::render) 
Rendering at layer item Deversoirs20140314084739782
d:\src\qgis-2.0.1\src\core\qgsmaprenderer.cpp(373) : (QgsMapRenderer::render) 
If there is a QPaintEngine error here, it is caused by an emit call
d:\src\qgis-2.0.1\src\core\qgsmaprenderer.cpp(391) : (QgsMapRenderer::render) 
layer Deversoirs:  minscale:0  maxscale:1e+08  scaledepvis:0  
extent:980773.9289909170474857,108255.9812757930048974 : 
995624.1600445739459246,111670.2695432019972941  blendmode:0
d:\src\qgis-2.0.1\src\core\qgsvectorlayer.cpp(659) : (QgsVectorLayer::draw) 
rendering v2:
SINGLE: MARKER SYMBOL (1 layers) color 0,255,0,255

With 2.2 API no more messages from API :(
Switching  QGIS_DEBUG var does nothing...
How can I retrieve former behavior from QGIS API?

Thanks


Sylvain

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

Re: [Qgis-developer] iterating over fields an values API 2.0

2014-02-19 Thread PIERRE Sylvain

Yes, I will do that

Sylvain


-Message d'origine-
De : Martin Dobias [mailto:wonder...@gmail.com] 
Envoyé : mardi 18 février 2014 16:05
À : PIERRE Sylvain
Cc : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] iterating over fields an values API 2.0

On Tue, Feb 18, 2014 at 9:53 PM, PIERRE Sylvain  wrote:
>
>
> Yes!
> That's it
>
> Thanks
>
> PS: Don't you think it should be clearly documented in the pyqgis cookbook?

Agreed. Would you mind preparing a pull request to fix that?

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


Re: [Qgis-developer] iterating over fields an values API 2.0

2014-02-18 Thread PIERRE Sylvain


Yes!
That's it

Thanks

PS: Don't you think it should be clearly documented in the pyqgis cookbook?


-Message d'origine-
De : Martin Dobias [mailto:wonder...@gmail.com] 
Envoyé : lundi 17 février 2014 18:43
À : PIERRE Sylvain
Cc : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] iterating over fields an values API 2.0

On Mon, Feb 17, 2014 at 10:36 PM, PIERRE Sylvain  wrote:
>
>
> When iterating over vector features like this:
>
> fields = layer.pendingFields()
>   field_names = [field.name() for field in fields]
>   for elem in layer.getFeatures():
>   atr = dict(zip(field_names, elem.attributes()))
>
> returns this:
>
> {PyQt4.QtCore.QString(u'off_set'):  0x05115C70>, PyQt4.QtCore.QString(u'code'):  0x05115C70>object at
> 0x05115BC8>, PyQt4.QtCore.QString(u'pk'):  0x05115BC8>object at
> 0x05115C00>, PyQt4.QtCore.QString(u'id'):  0x05115C00>object at
> 0x05115B90>, PyQt4.QtCore.QString(u'annee'):  0x05115B90>object
> at 0x05115CA8>, PyQt4.QtCore.QString(u'id_anom'): 
> , 
> PyQt4.QtCore.QString(u'fk_position'):
> ,
> PyQt4.QtCore.QString(u'resolu'):  0x05115CE0>}
>
> Instead of tupple like u'off_set': 1 ...

You have not set SIP api to version 2 to QString, QVariant and other Qt 
classes. QGIS python package tries to do that automatically for you, but if you 
imported PyQt4 python modules before QGIS python modules, that will not work. 
You have two options:
1. move import of QGIS module before PyQt4 2. keep the order of imports as is, 
but put these lines before import of PyQt4:
import sip
sip.setapi("QString", 2)
sip.setapi("QVariant", 2)


This is only necessary in standalone applications - inside QGIS application 
this initialization is done before any plugins are loaded, so this issue does 
not come up. Probably in qgis __init__.py there should be some code checking if 
there are not Qt classes imported with API v1 - in such case we could throw an 
exception.

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


[Qgis-developer] iterating over fields an values API 2.0

2014-02-17 Thread PIERRE Sylvain

Hi,

I'm working on porting a standalone app from 1.8 to 2.0 API
When iterating over vector features like this:

fields = layer.pendingFields()
  field_names = [field.name() for field in fields]
  for elem in layer.getFeatures():
  atr = dict(zip(field_names, elem.attributes()))

returns this:
{PyQt4.QtCore.QString(u'off_set'): , PyQt4.QtCore.QString(u'code'): , PyQt4.QtCore.QString(u'pk'): , PyQt4.QtCore.QString(u'id'): , PyQt4.QtCore.QString(u'annee'): , PyQt4.QtCore.QString(u'id_anom'): , PyQt4.QtCore.QString(u'fk_position'): , PyQt4.QtCore.QString(u'resolu'): }

Instead of tupple like u'off_set': 1 ...

Info here:
http://gis.stackexchange.com/questions/76364/how-to-get-field-names-in-pyqgis-2-0/86751#86751

What is missing to get "good" values?

Thanks
Sylvain


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

Re: [Qgis-developer] Master and ECW format

2013-06-27 Thread PIERRE Sylvain
Thanks !


→  Sylvain PIERRE
 Ingénieur Géographe
 Adjoint au chef du service
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Général du Bas-Rhin

[cid:image001.jpg@01CE7333.594985C0]<http://www.bas-rhin.fr/>

 Passerelle 67
 20 rue Livio / 67000 Strasbourg
 Tél : +33 3 88 76 68 88 – mobile :
 Fax : 03 88 76 68 71
 Email : sylvain.pie...@cg67.fr<mailto:sylvain.pie...@cg67.fr>



De : Nathan Woodrow [mailto:madman...@gmail.com]
Envoyé : jeudi 27 juin 2013 11:36
À : PIERRE Sylvain
Cc : qgis-developer
Objet : Re: [Qgis-developer] Master and ECW format

Hey Sylvain,

When QGIS 2.0 ships it will include the ECW SDK so ECW support will be enabled, 
however for now you can follow this process 
http://www.faunalia.com/content/adding-ecw-support-quantum-gis

- Nathan

On Thu, Jun 27, 2013 at 7:26 PM, PIERRE Sylvain 
mailto:sylvain.pie...@cg67.fr>> wrote:
Hi,

Sorry for this basic question, but what about ecw format into master and by the 
way into 2.0 ?
At this time I can’t load any raster layer in this format…

Thanks

Sylvain


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org<mailto: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] Master and ECW format

2013-06-27 Thread PIERRE Sylvain
Hi,

Sorry for this basic question, but what about ecw format into master and by the 
way into 2.0 ?
At this time I can't load any raster layer in this format...

Thanks

Sylvain

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


Re: [Qgis-developer] Dev plugin for master

2013-06-26 Thread PIERRE Sylvain
Forget this 


→   Sylvain PIERRE
Ingénieur Géographe
 Adjoint au chef du service
Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
Service Administration Générale
Conseil Général du Bas-Rhin

Passerelle 67 
20 rue Livio / 67000 Strasbourg
Tél : +33 3 88 76 68 88 – mobile :
Fax : 03 88 76 68 71
Email : sylvain.pie...@cg67.fr



-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de PIERRE Sylvain
Envoyé : mercredi 26 juin 2013 16:04
À : Borys Jurgiel; qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Dev plugin for master

You're right!
Plugin is invalid no more
But I have a new problem:

#
Couldn't load plugin thememanager due an error when calling its classFactory() 
method

Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 204, in 
startPlugin
plugins[packageName] = package.classFactory(iface)
  File 
"C:\Users\sylvain.pierre/.qgis2/python/plugins\thememanager\__init__.py", line 
25, in classFactory
return ThemeManager(iface)
TypeError: 'module' object is not callable 
#

→   Sylvain PIERRE
Ingénieur Géographe
 Adjoint au chef du service
Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
Service Administration Générale
Conseil Général du Bas-Rhin

Passerelle 67 
20 rue Livio / 67000 Strasbourg
Tél : +33 3 88 76 68 88 – mobile :
Fax : 03 88 76 68 71
Email : sylvain.pie...@cg67.fr


-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Borys Jurgiel 
Envoyé : mercredi 26 juin 2013 15:09 À : qgis-developer@lists.osgeo.org Objet : 
Re: [Qgis-developer] Dev plugin for master

Dnia środa, 26 czerwca 2013 o 14:56:11 PIERRE Sylvain napisał(a):
> Master version installed yesterday with osgeo4w apt I don’t have 
> metadata.txt file, only entries in _init_.py file…

So the manager was right, you use the approach for QGIS 1.x.
Please look at the two wiki pages refered in this topic.

___
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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Dev plugin for master

2013-06-26 Thread PIERRE Sylvain
You're right!
Plugin is invalid no more
But I have a new problem:

#
Couldn't load plugin thememanager due an error when calling its classFactory() 
method

Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 204, in 
startPlugin
plugins[packageName] = package.classFactory(iface)
  File 
"C:\Users\sylvain.pierre/.qgis2/python/plugins\thememanager\__init__.py", line 
25, in classFactory
return ThemeManager(iface)
TypeError: 'module' object is not callable
#

→   Sylvain PIERRE
Ingénieur Géographe
 Adjoint au chef du service
Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
Service Administration Générale
Conseil Général du Bas-Rhin

Passerelle 67 
20 rue Livio / 67000 Strasbourg
Tél : +33 3 88 76 68 88 – mobile :
Fax : 03 88 76 68 71
Email : sylvain.pie...@cg67.fr


-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Borys Jurgiel
Envoyé : mercredi 26 juin 2013 15:09
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Dev plugin for master

Dnia środa, 26 czerwca 2013 o 14:56:11 PIERRE Sylvain napisał(a):
> Master version installed yesterday with osgeo4w apt I don’t have 
> metadata.txt file, only entries in _init_.py file…

So the manager was right, you use the approach for QGIS 1.x.
Please look at the two wiki pages refered in this topic.

___
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] Dev plugin for master

2013-06-26 Thread PIERRE Sylvain
Master version installed yesterday with osgeo4w apt
I don’t have metadata.txt file, only entries in _init_.py file…



→  Sylvain PIERRE
 Ingénieur Géographe
 Adjoint au chef du service
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Général du Bas-Rhin

[cid:image001.jpg@01CE727D.4C150ED0]<http://www.bas-rhin.fr/>

 Passerelle 67
 20 rue Livio / 67000 Strasbourg
 Tél : +33 3 88 76 68 88 – mobile :
 Fax : 03 88 76 68 71
 Email : sylvain.pie...@cg67.fr<mailto:sylvain.pie...@cg67.fr>



De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Denis Rouzaud
Envoyé : mercredi 26 juin 2013 14:30
À : Marco Bernasocchi
Cc : qgis-developer
Objet : Re: [Qgis-developer] Dev plugin for master

You are correct, you need to set qgisMinimumVersion to 2.0

How old is your master version?
Things have changed quickly last weeks...

On 06/26/2013 02:26 PM, Marco Bernasocchi wrote:

 IIRC 2.0 was mentioned to be hardcoded temporarily in plugin manager by 
Boris. I definitely have a plugin with minVersion=2.0

the warning is different as well IIRC. maybe something else? like sipV1 vs sip 
v2? (speculation)

Marco Bernasocchi (mobile)
http://opengis.ch
On Jun 26, 2013 2:19 PM, "Werner Macho" 
mailto:werner.ma...@gmail.com>> wrote:
There is no 2.0 version right now ..
IIRC minimum version right now (to be able to use it in master) should be 1.9)

hope this solves your problem

kind regards
Werner


On Wed, Jun 26, 2013 at 2:01 PM, PIERRE Sylvain 
mailto:sylvain.pie...@cg67.fr>> wrote:
Hi,

I’m trying to develop a small plugin for master.
I have set qgisMinimumVersion to 2.0 and stored the plugin in 
.qgis2\python\plugins but running  Qgis does :
This plugin is incompatible with this version of QGIS
Plugin designed for QGIS 1.x


ThemeManager


Installed version: ? (in 
C:/Users/sylvain.pierre/.qgis2/python/plugins/ThemeManager)

What should be the solution?

Thanks

→  Sylvain PIERRE
 Ingénieur Géographe
 Adjoint au chef du service
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Général du Bas-Rhin

<http://www.bas-rhin.fr/>

 Passerelle 67
 20 rue Livio / 67000 Strasbourg
 Tél : +33 3 88 76 68 88 – mobile :
 Fax : 03 88 76 68 71
 Email : sylvain.pie...@cg67.fr<http://www.bas-rhin.fr/>

 <http://www.bas-rhin.fr/>
 <http://www.bas-rhin.fr/>

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer<http://www.bas-rhin.fr/>
 <http://www.bas-rhin.fr/>

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer<http://www.bas-rhin.fr/>



<http://www.bas-rhin.fr/>

___<http://www.bas-rhin.fr/>

Qgis-developer mailing list<http://www.bas-rhin.fr/>

Qgis-developer@lists.osgeo.org<http://www.bas-rhin.fr/>

http://lists.osgeo.org/mailman/listinfo/qgis-developer<http://www.bas-rhin.fr/>
 <http://www.bas-rhin.fr/>
<>___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Dev plugin for master

2013-06-26 Thread PIERRE Sylvain
Hi,

I’m trying to develop a small plugin for master.
I have set qgisMinimumVersion to 2.0 and stored the plugin in 
.qgis2\python\plugins but running  Qgis does :
This plugin is incompatible with this version of QGIS
Plugin designed for QGIS 1.x


ThemeManager


Installed version: ? (in 
C:/Users/sylvain.pierre/.qgis2/python/plugins/ThemeManager)

What should be the solution?

Thanks

→  Sylvain PIERRE
 Ingénieur Géographe
 Adjoint au chef du service
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Général du Bas-Rhin

[cid:image002.jpg@01CE7275.97FDB610]

 Passerelle 67
 20 rue Livio / 67000 Strasbourg
 Tél : +33 3 88 76 68 88 �C mobile :
 Fax : 03 88 76 68 71
 Email : sylvain.pie...@cg67.fr



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


Re: [Qgis-developer] Fwd: Qgis and Oracle Spatial 11g

2013-04-25 Thread PIERRE Sylvain
Do you get any answer about this point ?
In my case I have 95%  Oracle RDBMS. Actually with  QGis 1.8, I can’t access 
these data. It coul’d be a very, very sad news if the next main release 
couldn’t  give a full support to Oracle…


→  Sylvain PIERRE
 Ingénieur Géographe
 Adjoint au chef du service
 Direction de l’Agriculture, de l’Espace Rural et de l’Environnement
 Service Administration Générale
   Conseil Général du Bas-Rhin

[cid:image002.jpg@01CE4199.5B074D50]

 Passerelle 67
 20 rue Livio / 67000 Strasbourg
 Tél : +33 3 88 76 68 88 – mobile :
 Fax : 03 88 76 68 71
 Email : sylvain.pie...@cg67.fr



De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Roberto Loperfido
Envoyé : samedi 20 avril 2013 13:34
À : qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Fwd: Qgis and Oracle Spatial 11g




Dear Sirs,
I tried the Qgis development version (1.9 alpha).  I am interested in 
connecting to Oracle Db 11.
Currently known considerable slowness in accessing Oracle tables.

several times asked the SRID for no reason.

By improving definitely have access times that are excessive. If you are 
interested in as soon as changes can I re run the test.
The 300 dpi printing for now does not work and crash the Pdf generation


Roberto Loperfido
comune di Bolzano


-- Messaggio inoltrato --
Da:
Data: venerdì 19 aprile 2013
Oggetto: Digest di Gfoss, Volume 94, Numero 42
A: 
gf...@lists.gfoss.it


Invia le richieste di iscrizione alla lista Gfoss all'indirizzo
gf...@lists.gfoss.it

Per iscriverti o cancellarti attraverso il web, visita
http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
oppure, via email, manda un messaggio con oggetto `help' all'indirizzo
gfoss-requ...@lists.gfoss.it

Puoi contattare la persona che gestisce la lista all'indirizzo
gfoss-ow...@lists.gfoss.it

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 Gfoss..."


Argomenti del Giorno:

   1. OpenLayers 3 alpha1 (Stefano Costa)
   2. Nuova versione finale di gvSIG Desktop: gvSIG Desktop 2.0
  (Stefano Costa)
   3. Re: c.a. Paolo Cavallini (Paolo Cavallini)
   4. Sveglia (Paolo Cavallini)


--

Message: 1
Date: Thu, 18 Apr 2013 21:56:52 +0200
From: Stefano Costa mailto:st...@iosa.it>>
To: "GFOSS.it" mailto:gf...@lists.gfoss.it>>
Subject: [Gfoss] OpenLayers 3 alpha1
Message-ID: <51705004.3030...@iosa.it>
Content-Type: text/plain; charset=ISO-8859-15

È stata rilasciata la versione alpha1 di OpenLayers 3: http://ol3js.org/

Congratulazioni a tutti quelli che hanno contribuito allo sviluppo,
anche tramite donazioni.

Ciao
steko

--
Stefano Costa
http://steko.iosa.it/


--

Message: 2
Date: Thu, 18 Apr 2013 21:48:17 +0200
From: Stefano Costa mailto:st...@iosa.it>>
To: "GFOSS.it" mailto:gf...@lists.gfoss.it>>
Subject: [Gfoss] Nuova versione finale di gvSIG Desktop: gvSIG Desktop
2.0
Message-ID: <51704e01.4050...@iosa.it>
Content-Type: text/plain; charset=UTF-8

http://www.gvsig.org/web/organization/news-office/news/nuova-versione-finale-di-gvsig-desktop-gvsig-desktop-2.0

>
>
> L’Associazione gvSIG annuncia la pubblicazione della versione finale
> di gvSIG 2.0. La novità principale di questa versione è la sua nuova
> architettura; è stata riconcepita la forma con cui gvSIG gestisce le
> sorgenti dei dati  con l’obiettivo di migliorare sia l’affidabilità
> che la modularità, novità da cui trarranno beneficio sia gli utenti
> che gli sviluppatori oltre a consentire un più facile mantenimento ed
> evoluzione tecnologica. È stata dunque una sfida per il futuro con
> l’obiettivo di non limitare l’evoluzione tecnologica e porre le basi
> per una rapida evoluzione.
>
> Questa nuova versione di gvSIG Desktop propone anche una serie di
> nuove funzioni:

Qualcuno perde colpi: è stato annunciato due giorni fa!

steko

--
Stefano Costa
http://steko.iosa.it/


--

Message: 3
Date: Fri, 19 Apr 2013 08:16:54 +0200
From: Paolo Cavallini mailto:cavall...@faunalia.it>>
To: gf...@lists.gfoss.it
Subject: Re: [Gfoss] c.a. Paolo Cavallini
Message-ID: <5170e156.2010...@faunalia.it>
Content-Type: text/plain; charset=UTF-8

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 18/04/2013 09:52, Roberto Loperfido ha scritto:
> Ho testato la connessione ad Oracle Spatial 11g con la  versione in sviluppo 
> 1.9 di
> Qgis in sviluppo (alpha).
> Per connettersi si connette ma le performa

Re: [Qgis-developer] big ECW problem

2013-02-06 Thread PIERRE Sylvain
No stretch for this ecw.

What tool did you use to generate your 92 Go ECW file?
We used ER mapper, and smaller files generated with are loading perfectly...




-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Régis Haubourg
Envoyé : mardi 5 février 2013 16:42
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] big ECW problem

Hi Sylvain,
I have no problem with 92 Go ecw... 1.8 is sometimes a bit slower than 1.7.4, 
it' true.. Did you play with stretching options?
Régis



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/big-ECW-problem-tp5032161p5032241.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


[Qgis-developer] big ECW problem

2013-02-05 Thread PIERRE Sylvain
Hi,

I'm trying to load a big ecw (36 go)  into Qgis (1.8)
The file is loading but canvas doesn't display anything (still white)

A french user told me having similar problems with ecw files larger than 4 Go 
still QGis 1.7 release

He has solved these problem with downloading erdas sdk ecw and replacing QGis 
vc80 dll's by those resulting  from erdas sdk.

Does anybody know anything about these problems and proposed solution?
Thanks

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


[Qgis-developer] conflict between Qt QSqlDatabase and PyQGis QgsDataSourceURI with spatialite connexion on addFeatures

2012-10-23 Thread PIERRE Sylvain
Hi,

Got more information about my problem 
(http://lists.osgeo.org/pipermail/qgis-user/2012-October/019815.html) .
In my app I'm connecting twice to the same spatialite DB :
one to get layers ,

uri = QgsDataSourceURI()
uri.setDatabase( self.dirDBcanal )
uri.setDataSource( "", layername, "GEOMETRY" )

one to get non-geographical data to display them into several Qt Widget,

self.db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
self.db.setDatabaseName(self.dirDBcanal)
self.db.open()

The problem occurs when I build a model to display information in a Qtableview :
self.mdlAOT = QtSql.QSqlRelationalTableModel(self.aotGui, self.db)

If I bypass this code I can insert data with the provider, if not I can't

I've tried to enable Sqlite share-cache mode, but with no effect

  self.db.setConnectOptions("QSQLITE_ENABLE_SHARED_CACHE=1")

May-be do I have to the same for QgsDataSourceURI ? (QgsDataSourceURI. setParam 
function ? but what param ?)

Thanks

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


Re: [Qgis-developer] migrating from 1.7 to 1.8

2012-10-18 Thread PIERRE Sylvain
The answer is here :

http://linfiniti.com/2012/09/making-your-qgis-command-line-applications-quiet/

But in my case QGIS_DEBUG must be set to -1



De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de PIERRE Sylvain
Envoyé : mercredi 17 octobre 2012 09:43
À : qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] migrating from 1.7 to 1.8

Hi,

I'm developping a standalone apllication with python qt and pyqgis and I would 
like to update this tools
I'm triyng to migrate from 1.7 to 1.8, so from python 2.5 to python 2.7...
My IDE is pyscripter.
With env 1.8 when I run my dev from pyscriter it's slower than with 1.7 and 
there's messages in the output window like that :

d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(364) : 
(QgsProviderRegistry::provider) Library name is C:/Program Files/Quantum GIS 
Lisboa/apps/qgis/plugins/spatialiteprovider.dll
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(370) : 
(QgsProviderRegistry::provider) Loaded data provider library
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(371) : 
(QgsProviderRegistry::provider) Attempting to resolve the classFactory function
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(378) : 
(QgsProviderRegistry::provider) Getting pointer to a dataProvider object from 
the library
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4131) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) New sqlite connection for 
C:/APPLI_PDT/CANAL_DEV/bd_canal.sqlite
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4152) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) Connection to the database was 
successful
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(389) : 
(QgsProviderRegistry::provider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(390) : 
(QgsProviderRegistry::provider) provider name: spatialite
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2804) : 
(QgsVectorLayer::setDataProvider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2818) : 
(QgsVectorLayer::setDataProvider) Extent of layer: 
980388.0988147819880396,109491.8876062979979906 : 
996598.2265172089682892,110715.9319274979934562
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(4521) : 
(QgsVectorLayer::setCoordinateSystem) - Computing Coordinate System

It's just like each cpp QGis function run in a verbose mode.

It wasn't like this with 1.7.

How can I solve it ?


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


[Qgis-developer] migrating from 1.7 to 1.8

2012-10-17 Thread PIERRE Sylvain
Hi,

I'm developping a standalone apllication with python qt and pyqgis and I would 
like to update this tools
I'm triyng to migrate from 1.7 to 1.8, so from python 2.5 to python 2.7...
My IDE is pyscripter.
With env 1.8 when I run my dev from pyscriter it's slower than with 1.7 and 
there's messages in the output window like that :

d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(364) : 
(QgsProviderRegistry::provider) Library name is C:/Program Files/Quantum GIS 
Lisboa/apps/qgis/plugins/spatialiteprovider.dll
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(370) : 
(QgsProviderRegistry::provider) Loaded data provider library
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(371) : 
(QgsProviderRegistry::provider) Attempting to resolve the classFactory function
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(378) : 
(QgsProviderRegistry::provider) Getting pointer to a dataProvider object from 
the library
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4131) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) New sqlite connection for 
C:/APPLI_PDT/CANAL_DEV/bd_canal.sqlite
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4152) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) Connection to the database was 
successful
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(389) : 
(QgsProviderRegistry::provider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(390) : 
(QgsProviderRegistry::provider) provider name: spatialite
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2804) : 
(QgsVectorLayer::setDataProvider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2818) : 
(QgsVectorLayer::setDataProvider) Extent of layer: 
980388.0988147819880396,109491.8876062979979906 : 
996598.2265172089682892,110715.9319274979934562
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(4521) : 
(QgsVectorLayer::setCoordinateSystem) - Computing Coordinate System

It's just like each cpp QGis function run in a verbose mode.

It wasn't like this with 1.7.

How can I solve it ?


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


[Qgis-developer] updating pyspatialite on windows

2012-10-15 Thread PIERRE Sylvain
Hi,

I would like to update the pyspatialite library in Python :
Windows 7
Qgis 1.7

I 've downloaded last package available (3.01), assuming QGis 1.7 version is 
2.6.2.
I'm using gcc (cygwin) to compile.
After solving some problems, I'm stuck !
I think it's a path format (Unix / Dos) conflict :

python setup.py build --compiler=mingw32
...
C:\cygwin\bin\gcc.exe -mno-cygwin -mdll -O -Wall 
-DMODULE_NAME=\"spatialite.dbapi2\" -DVERSION="3.0.1" -DSQLITE_ENABLE_FTS3=1 
-DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DOMIT_FREEXL=1 
-I/Library/Frameworks/GEOS.framework/unix/include/ 
-I/Library/Frameworks/PROJ.framework/unix/include/ -Iamalgamation "-IC:\Program 
Files\Quantum GIS Wroclaw\apps\Python25\include" "-IC:\Program Files\Quantum 
GIS Wroclaw\apps\Python25\PC" -c src/module.c -o 
build\temp.win32-2.5\Release\src\module.o
gcc: Files\Quantum : No such file or directory
gcc: GIS : No such file or directory
gcc: WroclawappsPython25include -IC:Program : No such file or directory
gcc: Files\Quantum : No such file or directory
gcc: GIS : No such file or directory
gcc: WroclawappsPython25PC -c src/module.c -o 
build\temp.win32-2.5\Release\src\module.o : No such file or directory
gcc: pas de fichier à l'entrée
error: command 'gcc' failed with exit status 1

Windows backslash deasepered.

Any help should be welcome...
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] Reading Qsettings outside QGis

2012-10-12 Thread PIERRE Sylvain
I apologize!

It works!

-Message d'origine-
De : PIERRE Sylvain 
Envoyé : vendredi 12 octobre 2012 09:54
À : PIERRE Sylvain; Etienne Tourigny
Cc : qgis-developer@lists.osgeo.org
Objet : RE: [Qgis-user] Reading Qsettings outside QGis

Unfortunatly, it's not working. I forgot to comment old line wich was:

settings = 
QSettings("HKEY_USERS\\S-1-5-21-135220595-821698489-1543119021-16853\\Software\\QuantumGIS\\QGIS",QSettings.NativeFormat)
and is working, but it's not a permanent solution.
The last one I mentioned is not working:
settings = QSettings( QSettings.NativeFormat, QSettings.UserScope, 
'QuantumGIS', 'QGis') I use InitQGis in my app, but  QSettings() return 
nothing, so maybe here's a bug...


-Message d'origine-
De : qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] De la part de PIERRE Sylvain 
Envoyé : vendredi 12 octobre 2012 09:46 À : Etienne Tourigny Cc : 
qgis-u...@lists.osgeo.org; qgis-developer@lists.osgeo.org Objet : Re: 
[Qgis-user] Reading Qsettings outside QGis

Thanks for interest!

You  are right. With no args QSettings outside Qgis return nothing. After 
consultinq Qt doc and with your help, this code is working:

QSettings( QSettings.NativeFormat, QSettings.UserScope, 'QuantumGIS', 'QGis')

Diving into Python, Qt and Pyqgis since few months, I have new questions each 
day, and each day, I find answers...

Great job made by all developpment teams and plugins developpers , where I can 
find lots of code.

-Message d'origine-
De : Etienne Tourigny [mailto:etourigny@gmail.com] Envoyé : jeudi 11 
octobre 2012 16:13 À : PIERRE Sylvain Cc : qgis-u...@lists.osgeo.org Objet : 
Re: [Qgis-user] Reading Qsettings outside QGis

Hi Pierre,

yes this is the right approach.  However, you must make sure that the proper 
organisation (QuantumGIS) and application (QGIS) are set.  Your problem is 
probably because the QSettings is initialized with some default values.

This is done automatically when using plugins in the qgis app, but not if your 
are creating an external app.

Although it should happen when calling QgsApplication.initQgis() - you might 
want to file a bug report for that.

BTW - you might get more feedback if posting to the qgis-devel mailing list.

Etienne

On Thu, Oct 11, 2012 at 6:34 AM, PIERRE Sylvain  wrote:
> I'm developping a standalone application (Python, Qt, Qgis) and I 
> would like to read some settings that I currently use in my Qgis 
> projects : PostGis and Spatialite connections.
>
> I suppose I can get this values with QSettings, but I'm not sure.
>
> Is it the right way to do this ?
>
> I'm testing with the code below, with no result :
>
> settings = QSettings()
>
> settings.beginGroup("/PostgreSQL/connections")
>
> keys = settings.childGroups()
>
>
>
> for name in keys:
>
> QMessageBox.warning(self,"Information",str(name))
>
>
>
>
>
> Any idea ?
>
>
>
> Thanks
>
>
> ___
> Qgis-user mailing list
> qgis-u...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
qgis-u...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] Reading Qsettings outside QGis

2012-10-12 Thread PIERRE Sylvain
Thanks for interest!

You  are right. With no args QSettings outside Qgis return nothing. After 
consultinq Qt doc and with your help, this code is working:

QSettings( QSettings.NativeFormat, QSettings.UserScope, 'QuantumGIS', 'QGis')

Diving into Python, Qt and Pyqgis since few months, I have new questions each 
day, and each day, I find answers...

Great job made by all developpment teams and plugins developpers , where I can 
find lots of code.

-Message d'origine-
De : Etienne Tourigny [mailto:etourigny@gmail.com] 
Envoyé : jeudi 11 octobre 2012 16:13
À : PIERRE Sylvain
Cc : qgis-u...@lists.osgeo.org
Objet : Re: [Qgis-user] Reading Qsettings outside QGis

Hi Pierre,

yes this is the right approach.  However, you must make sure that the proper 
organisation (QuantumGIS) and application (QGIS) are set.  Your problem is 
probably because the QSettings is initialized with some default values.

This is done automatically when using plugins in the qgis app, but not if your 
are creating an external app.

Although it should happen when calling QgsApplication.initQgis() - you might 
want to file a bug report for that.

BTW - you might get more feedback if posting to the qgis-devel mailing list.

Etienne

On Thu, Oct 11, 2012 at 6:34 AM, PIERRE Sylvain  wrote:
> I'm developping a standalone application (Python, Qt, Qgis) and I 
> would like to read some settings that I currently use in my Qgis 
> projects : PostGis and Spatialite connections.
>
> I suppose I can get this values with QSettings, but I'm not sure.
>
> Is it the right way to do this ?
>
> I'm testing with the code below, with no result :
>
> settings = QSettings()
>
> settings.beginGroup("/PostgreSQL/connections")
>
> keys = settings.childGroups()
>
>
>
> for name in keys:
>
> QMessageBox.warning(self,"Information",str(name))
>
>
>
>
>
> Any idea ?
>
>
>
> Thanks
>
>
> ___
> Qgis-user mailing list
> qgis-u...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] Reading Qsettings outside QGis

2012-10-12 Thread PIERRE Sylvain
Unfortunatly, it's not working. I forgot to comment old line wich was:

settings = 
QSettings("HKEY_USERS\\S-1-5-21-135220595-821698489-1543119021-16853\\Software\\QuantumGIS\\QGIS",QSettings.NativeFormat)
and is working, but it's not a permanent solution.
The last one I mentioned is not working:
settings = QSettings( QSettings.NativeFormat, QSettings.UserScope, 
'QuantumGIS', 'QGis')
I use InitQGis in my app, but  QSettings() return nothing, so maybe here's a 
bug...


-Message d'origine-
De : qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] De la part de PIERRE Sylvain
Envoyé : vendredi 12 octobre 2012 09:46
À : Etienne Tourigny
Cc : qgis-u...@lists.osgeo.org; qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-user] Reading Qsettings outside QGis

Thanks for interest!

You  are right. With no args QSettings outside Qgis return nothing. After 
consultinq Qt doc and with your help, this code is working:

QSettings( QSettings.NativeFormat, QSettings.UserScope, 'QuantumGIS', 'QGis')

Diving into Python, Qt and Pyqgis since few months, I have new questions each 
day, and each day, I find answers...

Great job made by all developpment teams and plugins developpers , where I can 
find lots of code.

-Message d'origine-
De : Etienne Tourigny [mailto:etourigny@gmail.com] Envoyé : jeudi 11 
octobre 2012 16:13 À : PIERRE Sylvain Cc : qgis-u...@lists.osgeo.org Objet : 
Re: [Qgis-user] Reading Qsettings outside QGis

Hi Pierre,

yes this is the right approach.  However, you must make sure that the proper 
organisation (QuantumGIS) and application (QGIS) are set.  Your problem is 
probably because the QSettings is initialized with some default values.

This is done automatically when using plugins in the qgis app, but not if your 
are creating an external app.

Although it should happen when calling QgsApplication.initQgis() - you might 
want to file a bug report for that.

BTW - you might get more feedback if posting to the qgis-devel mailing list.

Etienne

On Thu, Oct 11, 2012 at 6:34 AM, PIERRE Sylvain  wrote:
> I'm developping a standalone application (Python, Qt, Qgis) and I 
> would like to read some settings that I currently use in my Qgis 
> projects : PostGis and Spatialite connections.
>
> I suppose I can get this values with QSettings, but I'm not sure.
>
> Is it the right way to do this ?
>
> I'm testing with the code below, with no result :
>
> settings = QSettings()
>
> settings.beginGroup("/PostgreSQL/connections")
>
> keys = settings.childGroups()
>
>
>
> for name in keys:
>
> QMessageBox.warning(self,"Information",str(name))
>
>
>
>
>
> Any idea ?
>
>
>
> Thanks
>
>
> ___
> Qgis-user mailing list
> qgis-u...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
qgis-u...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


RE: [Qgis-developer] Sextante: SAga ERRORS

2012-04-15 Thread PIERRE Sylvain
12g'ggag5a'5a5gaa'@ooz
-Original Message-
From: Paolo Cavallini
Sent:  13/04/2012, 17:14
To: qgis-developer
Subject: [Qgis-developer] Sextante: SAga ERRORS



Hi all.

Running slope, aspect etc results in:

Could not load layer: /home/paolo/sextante/tempdata/1334329842.3813.tif
Check the SEXTANTE log to look for errors in algorithm execution


and in fact:

Sextante.runalg("saga:slopeaspectcurvature","/home/paolo/Desktop/corso_qgis_grass/Dati_corso_QGIS/dtm/hdr.adf",0,None,None,None,None,None)


All the best.

--
Paolo Cavallini
See: http://www.faunalia.it/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer