[Qgis-user] Selecting features of type points with SVG Marker

2022-12-02 Per discussione Tudorache, Marian via Qgis-user
Hi,

In QGIS 2.18 I used to apply SVG Marker styles to points and I was able to 
select these features.
When I executed select, a red square was drawn around the SVG pictogram.
In QGIS3 I still can see these points with SVG marker style but when I select 
them that red square does not exist anymore.
Basically I cannot make visual difference between selected and unselected 
features.

Is any setting that I can being back that red square around?
I am using QGIS 3.22.

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Event loop in QGIS3

2022-08-16 Per discussione Tudorache, Marian via Qgis-user
Hi Chris,

I read that article and based on it I found out that I need to put 
processEvents() and I understand the logic in this.

Someone said:
In more recent QGIS versions the Python console no longer triggers this event 
loop, as it's often quite dangerous to execute the loop in the middle of other 
running code.

It seems somehow QGIS 2.18 was designed to send automatically updates to the 
GUIs when a loop is running and this capability was eliminated in QGIS 3
Anyway, thank you for your answer.

Marian

From: chris hermansen 
Sent: August 16, 2022 4:40 PM
To: Tudorache, Marian 
Cc: qgis-user@lists.osgeo.org
Subject: [EXT] Re: [Qgis-user] Event loop in QGIS3

Marian and list, On Tue, Aug 16, 2022 at 12: 02 PM Tudorache, Marian via 
Qgis-user  wrote: Hello community,   A while ago 
I sent a question about a problem with QMessageBox and message bar does not get 
updated

Marian and list,

On Tue, Aug 16, 2022 at 12:02 PM Tudorache, Marian via Qgis-user 
mailto:qgis-user@lists.osgeo.org>> wrote:
Hello community,

A while ago I sent a question about a problem with QMessageBox and message bar 
does not get updated during a long process.
In my example I create a script like this.

from qgis.PyQt import QtWidgets
message = "Wait to open the airspace project..."
msg = QtWidgets.QMessageBox()
msg.setText(message)
msg.show()
qgis.utils.iface.messageBar().pushMessage("Wait", message)


for i in range(1000):
print(i)
qgis.utils.iface.messageBar().pushMessage("Done", "The process is done")
msg.setText("The process is done")
msg.show()
qgis.utils.iface.messageBar().pushMessage("Done", "The process is done"))


When I run the scrip in QGIS 2.18 the QMessageBox displays first the message 
"Wait to open the airspace project...". The same message is pushed to 
messageBar.
Then during the loop it displays the variable i.
At the end of the loop the QMessageBox displays the message "The process is 
done" which is also pushed to the messageBar.

When I run the same scrip on QGIS 3 the QMessageBox is empty. The message "Wait 
to open the airspace project..." is not displayed by QMessageBox nor by 
messageBar.
The print inside the loop displays the I and when the loop is done the 
QMessageBox displays the message "The process is done".
The messageBar displays also the message "The process is done". And after a 
while it displays the initial message "Wait to open the airspace project..."

I modified the scrip by adding QApplication.processEvents() inside the loop and 
now everything is fine.
It seems QGIS3 no longer triggers this event loop and I have to do this 
explicitly by calling processEvents from QApplication.

Why QGIS 3 needs to call QApplication.processEvents() and QGIS 2 does not need?


Marian, did you read this article?

https://doc.qt.io/qt-5/qcoreapplication.html#details<https://urldefense.com/v3/__https:/doc.qt.io/qt-5/qcoreapplication.html*details__;Iw!!P0kg3YazkQ!CcSBA7taBRD4nM94gtxzazyv0U6cmASgYsOj82Fb8dTTzEuCUBZIOlqx018StM8IglMsIkz51FTlYFb0J6ClVfIwQbFuLA$>

There you will see this:

The event loop is started with a call to 
exec<https://urldefense.com/v3/__https:/doc.qt.io/qt-5/qcoreapplication.html*exec__;Iw!!P0kg3YazkQ!CcSBA7taBRD4nM94gtxzazyv0U6cmASgYsOj82Fb8dTTzEuCUBZIOlqx018StM8IglMsIkz51FTlYFb0J6ClVfLZXx-a2Q$>().
 Long-running operations can call 
processEvents<https://urldefense.com/v3/__https:/doc.qt.io/qt-5/qcoreapplication.html*processEvents__;Iw!!P0kg3YazkQ!CcSBA7taBRD4nM94gtxzazyv0U6cmASgYsOj82Fb8dTTzEuCUBZIOlqx018StM8IglMsIkz51FTlYFb0J6ClVfI1OxPavQ$>()
 to keep the application responsive.

In your case, your "long-running operation" is your for loop.  And it is not 
QGIS3 that has the responsibility to trigger processEvents() but your own 
long-running operation, at least the way I'm reading this.

As to why QGIS 2 did not need this, I don't know.

--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce

[Qgis-user] Event loop in QGIS3

2022-08-16 Per discussione Tudorache, Marian via Qgis-user
Hello community,

A while ago I sent a question about a problem with QMessageBox and message bar 
does not get updated during a long process.
In my example I create a script like this.

from qgis.PyQt import QtWidgets
message = "Wait to open the airspace project..."
msg = QtWidgets.QMessageBox()
msg.setText(message)
msg.show()
qgis.utils.iface.messageBar().pushMessage("Wait", message)


for i in range(1000):
print(i)
qgis.utils.iface.messageBar().pushMessage("Done", "The process is done")
msg.setText("The process is done")
msg.show()
qgis.utils.iface.messageBar().pushMessage("Done", "The process is done"))


When I run the scrip in QGIS 2.18 the QMessageBox displays first the message 
"Wait to open the airspace project...". The same message is pushed to 
messageBar.
Then during the loop it displays the variable i.
At the end of the loop the QMessageBox displays the message "The process is 
done" which is also pushed to the messageBar.

When I run the same scrip on QGIS 3 the QMessageBox is empty. The message "Wait 
to open the airspace project..." is not displayed by QMessageBox nor by 
messageBar.
The print inside the loop displays the I and when the loop is done the 
QMessageBox displays the message "The process is done".
The messageBar displays also the message "The process is done". And after a 
while it displays the initial message "Wait to open the airspace project..."

I modified the scrip by adding QApplication.processEvents() inside the loop and 
now everything is fine.
It seems QGIS3 no longer triggers this event loop and I have to do this 
explicitly by calling processEvents from QApplication.

Why QGIS 3 needs to call QApplication.processEvents() and QGIS 2 does not need?

Thank you,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Waiting message displayed in a either QMessageBox or as pushed message does not work

2022-08-02 Per discussione Tudorache, Marian via Qgis-user
Hello Community,

In one of pyqgis app built in QGIS 2.18 I have a waiting message to let know 
the user to wait until a project opens.
I simplified the process in the following scrip:

from qgis.PyQt import QtWidgets
message = "Wait to open the airspace project..."
msg = QtWidgets.QMessageBox()
msg.setText(message)
msg.show()
qgis.utils.iface.messageBar().pushMessage("Wait", message)

for i in range(1000):
print(i)
qgis.utils.iface.messageBar().pushMessage("Done", "The process is done")
msg.setText("The process is done")

When I run the script as is in QGIS 2.18 the message "Wait to open the airspace 
project..." is displayed on both message bar and QMessageBox.
Then the loop starts and it display the i.
And at the end the message "The process is done" is displayed in both message 
bar and QMessageBox.

If I run the same scrip in 3.22.8-Białowieża, the loop starts and no wait 
message is displayed.
The QMessageBox is somehow displayed without any message.
After the loop is done "The process is done" is displayed in both pushed bar 
and QMessageBox.
What is strange "The process is done" disappear from the pushed bar and "Wait 
to open the airspace project..." is displayed.
So this behavior is useless for the user.
Is anyway hot to make QGIS 3.22 to display these messages in the proper 
sequence as they used to be displayed in QGIS 2.18.

I hope you can access the video at this link. I explained the behavior and you 
can see it

https://drive.google.com/file/d/1tQNP6nBRL0tAS4bl_2i5heHz7viwCCAv/view?usp=sharing



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y etre joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés a l'usage 
exclusif des personnes ou des organismes a qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Filtering layer or selected features by attributes does not work for new added features in QGIS 3.22.8

2022-07-25 Per discussione Tudorache, Marian via Qgis-user
Hi Andrea,

I asked permission to share these coverage files with you and the company 
cannot do this because the data belongs to ESRI and we are only the users of 
the data.
But I removed these files .idm and and .ind and everything is fine.
Thank you.

I have one more observation.
When I converted the data from coverage to shapefile using QGIS2.18 the 
geometries were simple parts. For example to extract the points from an arc 
layer I had to use arc.geometry().asPolyline()
The shapefiles were under a QGIS project (.qgs).
When I open the QGIS project created with QGIS2.18 I got a message which notify 
me the project is an old version of QGIS and some conversion was done.

When I ran some algorithm which tried to arc.geometry().asPolyline() I got this 
error.
Traceback (most recent call last):
  File "/usr/lib64/python3.9/code.py", line 90, in runcode
exec(code, self.locals)
  File "", line 1, in 
TypeError: MultiLineString geometry cannot be converted to a polyline. Only 
single line or curve types are permitted.

So when I open QGIS 2.18 project something happened with the data and was 
transformed from LineString to MultiLineString.
Is this normal behaviour for QGIS 3 to convert the geometry type from single 
part to multiple parts?
Is any method to supress this transformation?

Thank you,
Marian


From: Qgis-user  On Behalf Of Andrea 
Giudiceandrea via Qgis-user
Sent: July 25, 2022 5:12 AM
To: qgis-user@lists.osgeo.org
Subject: [EXT] Re: [Qgis-user] Filtering layer or selected features by 
attributes does not work for new added features in QGIS 3.22.8

Tudorache, Marian Sun Jul 24 11:⁠​14:⁠​30 PDT 2022 How these .⁠​idm and and 
.⁠​ind files were created? These files are created by reading ESRI coverage 
data used in an application under ArcInfo:⁠​ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ 
‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍

Tudorache, Marian
Sun Jul 24 11:14:30 PDT 2022


How these .idm and and .ind files were created?

These files are created by reading ESRI coverage data used in an application 
under ArcInfo:

Hi Marian,
could you share a link to a sample of such ESRI coverage data file for which 
the conversion to a Shapefile layer creates the .idm and and .ind attributes 
indexes sidecar files?




Cab these file be recreated without knowing?

Looking at the QGIS code, it seems such attributes indexes sidecar files could 
be unknowingly created if the user uses the Shapefile layer in a join (via 
layer Property->Joins) enabling the "Create attribute index on join field" 
option.
An user can also directly create attributes indexes using the "Create attribute 
index" processing algorithm, or e.g. using the GDAL/OGR "ogrinfo" command [1] 
[2], or using a Python script, or ... .

Best regards.

Andrea


[1] 
https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing<https://urldefense.com/v3/__https:/gdal.org/drivers/vector/shapefile.html*spatial-and-attribute-indexing__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bmwrYD-E$>
[2] 
https://gdal.org/user/ogr_sql_dialect.html#create-index<https://urldefense.com/v3/__https:/gdal.org/user/ogr_sql_dialect.html*create-index__;Iw!!P0kg3YazkQ!GzcCr3gac6KvyF6_O4cFbtPNlfuLIWHcHkhpM9nUVcW6hOYUC0_rFXJb3kpv7_1gSi8fXst9eGF6z5HWfW_38p3bgfrbURg$>



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Filtering layer or selected features by attributes does not work for new added features in QGIS 3.22.8

2022-07-24 Per discussione Tudorache, Marian via Qgis-user
Hi Andrea,

Thank you for your advice.
How these .idm and and .ind files were created?
These files are created by reading ESRI coverage data used in an application 
under ArcInfo:
vLayer = qgis.core.QgsVectorLayer(coverageSource + "|layername=arc", 
layerSourceName, "ogr")
and I created shapefile like this
qgis.core.QgsVectorFileWriter.writeAsVectorFormat(vLayer, \
  
shapeDestination + "/" + shapeLayerName + ".shp", \
  "utf-8", \
  srs, \
  "ESRI 
Shapefile")

What is interesting not all the shapefiles have these idm and ind files.
QGIS 2.18 did not have this problem.

Anyway, I assume I can have a general script to remove any file with extension 
idm and ind.
Cab these file be recreated without knowing?

Thanks,
Marian

From: Andrea Giudiceandrea 
Sent: July 23, 2022 6:29 AM
To: Tudorache, Marian ; qgis-user@lists.osgeo.org
Subject: [EXT] Re: RE: Re: [Qgis-user] Filtering layer or selected features by 
attributes does not work for new added features in QGIS 3.22.8

Hi Marian, I advise you, for the future, to avoid sending e-mail messages to a 
mailing list user personal e-mail address (unless requested) and instead please 
always prefer to send the message/replay to the mailing list e-mail address.⁠​ 
Moreover,

Hi Marian,
I advise you, for the future, to avoid sending e-mail messages to a mailing 
list user personal e-mail address (unless requested) and instead please always 
prefer to send the message/replay to the mailing list e-mail address. Moreover, 
better to avoid attach big files to an e-mail message (better to specify a link 
to an online resource).

Looking at the provided ESRI Shapefile layer, it seems to me the issue is due 
to the fact that in addition to the typical ESRI Shapefile files (.shp, .shx, 
.dbf, .prj, ...) are also present the non standard .idm and .ind files which 
contain the "attribute indexes as a mapinfo format index" [1].

If you remove such .idm and and .ind files, then the issue will not occur with 
your ESRI Shapefile layer.

What I suppose is that while QGIS, using the GDAL/OGR library, can use such non 
standard .idm and .ind files for attribute indexes, it (or the GDAL/OGR 
library) fails to properly update such attribute indexes files when a new 
feature is added to the layer. You can check this just looking at such files 
modification time in you file system when a new feature is added to the layer: 
such files are not modified.

Best regards.

Andrea Giudiceandrea



[1] 
https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing<https://urldefense.com/v3/__https:/gdal.org/drivers/vector/shapefile.html*spatial-and-attribute-indexing__;Iw!!P0kg3YazkQ!Bt-tNo4aq3ENChJ2xQGTArs2o6LONBDrdCC4xd3u6NaDJSQJVEcm56YkkJjuk8ahBf9AviXt5MKBBGDgbqmDkal_wT_gv88$>
Il 22/07/2022 21:54, Tudorache, Marian ha scritto:
Hi Andrea,

Thank you for your answer.
I attach the an archive with the shapefile in question.
I also attached a video to see what is going on.



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Python for qgis

2021-08-23 Per discussione Tudorache, Marian
This is a nice tutorial and they have a section about Python Programming in QGIS
https://www.qgistutorials.com/en/
https://www.qgistutorials.com/en/docs/getting_started_with_pyqgis.html

Books:
https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/index.html
https://courses.spatialthoughts.com/pyqgis-in-a-day.html

If you search using “pyqgis” as keyword you will find out more material.

Good luck!
Marian

From: Qgis-user  On Behalf Of Alexandru 
Munteanu
Sent: August 21, 2021 11:18 AM
To: qgis-user@lists.osgeo.org
Subject: [EXT] [Qgis-user] Python for qgis

CAUTION: This email originated from outside of the organization. If you do not 
recognize the sender or you are not certain the content is safe, then do not 
click on any links or open any attachments.
AVERTISSEMENT : Ce courriel provient d’une source externe à l’organisation. Si 
vous ne reconnaissez pas l’expéditeur ou si vous doutez de la sécurité du 
contenu, ne cliquez sur aucun lien et n’ouvrez aucune pièce jointe.

Hi community!

I am wondering if you can help me with information / resources where i learn 
using Python for qgis. I have taken a basic course on Python, but i am sure I 
need to extend my knowledge on how to apply it in qgis.

Thank you in advance for any help you can provide and sources where I can find 
more information on that.

Best,
Alex



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Convert symbology of qgis layer into PyQGIS code to define renderer

2021-06-11 Per discussione Tudorache, Marian
Hi,

As far as I know symbology is tight to the topology.
Here is a simple example for lines.

mlayer = qgis.utils.iface.activeLayer()
styles = {'width': '0.5', 'color': 'yellow', 'penstyle': 'solid'}
registry = qgis.core.QgsSymbolLayerV2Registry.instance()
symbol = qgis.core.QgsSymbolV2.defaultSymbol(mlayer.geometryType())
lineLayer = lineMeta.createSymbolLayer(styles)
symbol.deleteSymbolLayer(0)
symbol.appendSymbolLayer(lineLayer)
renderer = qgis.core.QgsSingleSymbolRendererV2(symbol)
mlayer.setRendererV2(renderer)
mlayer.triggerRepaint()
qgis.utils.iface.mapCanvas().refresh()

For points
styles = {'name': 'diamond', 'color': 'yellow', 'size': '2'}
pointSymbol = qgis.core.QgsMarkerSymbolV2.createSimple(styles)
mlayer.rendererV2().setSymbol(pointSymbol)
qgis.utils.iface.mapCanvas().refresh()
mlayer.triggerRepaint()

for polygons
symbol.setColor(QtGui.QColor("blue"))
registry = QgsSymbolLayerV2Registry.instance()
lineMeta = registry.symbolLayerMetadata("SimpleLine")
lineLayer = lineMeta.createSymbolLayer({'width': '0.8', 
'color': 'blue', 'offset': '0', 'penstyle': 'solid'})
symbol.appendSymbolLayer(lineLayer)
symbol.setAlpha(0.2)

renderer = QgsRuleBasedRendererV2(symbol)
vLayer.setRendererV2(renderer)
vLayer.setLayerTransparency(0)
vLayer.triggerRepaint()

This when you want to have static symbols.
QGIS also gives the capability of creating dynamic symbols
-Original Message-
From: Qgis-user  On Behalf Of Manuel 
Campagnolo
Sent: June 11, 2021 7:56 AM
To: qgis-user@lists.osgeo.org
Subject: [EXT] [Qgis-user] Convert symbology of qgis layer into PyQGIS code to 
define renderer

CAUTION: This email originated from outside of the organization. If you do not 
recognize the sender or you are not certain the content is safe, then do not 
click on any links or open any attachments.
AVERTISSEMENT : Ce courriel provient d’une source externe à l’organisation. Si 
vous ne reconnaissez pas l’expéditeur ou si vous doutez de la sécurité du 
contenu, ne cliquez sur aucun lien et n’ouvrez aucune pièce jointe.


Hi

Do you know of a way of using the style of a ,say, vector layer in QGIS3 to 
create automatically the python code that would generate it, namely the 
QgsSymbol part in the code below.

Thanks


symbol1=QgsSymbol.defaultSymbol(ifn_ppsm.geometryType())
symbol2=QgsSymbol.defaultSymbol(ifn_ppsm.geometryType())
symbol3=QgsSymbol.defaultSymbol(ifn_ppsm.geometryType())
symbol4=QgsSymbol.defaultSymbol(ifn_ppsm.geometryType())
symbol5=QgsSymbol.defaultSymbol(ifn_ppsm.geometryType())

symbol1.setColor(QColor('black'))
symbol2.setColor(QColor('gray'))
symbol3.setColor(QColor('dark green'))
symbol4.setColor(QColor('light green'))
symbol5.setColor(QColor('orange'))

cat1=QgsRendererCategory('Improdutivos', symbol1, 'Improdutivos') # category, 
symbol, label cat2=QgsRendererCategory('Urbano', symbol2, 'Urbano') 
cat3=QgsRendererCategory('Matos e Pastagens', symbol3, 'Matos e Pastagens') 
cat4=QgsRendererCategory('Floresta', symbol4, 'Floresta') 
cat5=QgsRendererCategory('Agricultura', symbol5, 'Agricultura') 
categories=[cat1,cat2,cat3,cat4,cat5] # list

renderer = QgsCategorizedSymbolRenderer('usosolo', categories)
ifn_ppsm.setRenderer(renderer)

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: 
https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/qgis-user__;!!P0kg3YazkQ!Wh7k2FBqY62GCB78RuenegW_YsQXCfSx7yC8s8SDK5rZJL96TYagaJQFJKb14VXtcg$
Unsubscribe: 
https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/qgis-user__;!!P0kg3YazkQ!Wh7k2FBqY62GCB78RuenegW_YsQXCfSx7yC8s8SDK5rZJL96TYagaJQFJKb14VXtcg$



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de 

Re: [Qgis-user] Rename column

2021-06-01 Per discussione Tudorache, Marian
There should be a method renameAttribute as part of QgsVectorLayer class.

You can do something like that:

layer = iface.activeLayer()
for field in layer.pendingFields():
if field.name() == 'old':
with edit(layer):
idx = layer.fieldNameIndex(field.name())
layer.renameAttribute(idx, 'new')

Good luck!
Marian

From: Qgis-user  On Behalf Of Ursula Heinze
Sent: June 1, 2021 5:26 AM
To: Qgis-user@lists.osgeo.org
Subject: [EXT] [Qgis-user] Rename column

CAUTION: This email originated from outside of the organization. If you do not 
recognize the sender or you are not certain the content is safe, then do not 
click on any links or open any attachments.
AVERTISSEMENT : Ce courriel provient d’une source externe à l’organisation. Si 
vous ne reconnaissez pas l’expéditeur ou si vous doutez de la sécurité du 
contenu, ne cliquez sur aucun lien et n’ouvrez aucune pièce jointe.

Hello,
I have a little problem with the field calculator. I want to rename a column, 
and I don´t find any way to do it.
Now I tried to copy the field values in a new column with the right name, and 
am also not successful. Has anybody an idea for me, how to solve the problem? 
Many thanks in advance!
Ursula Heinze

Gesendet von 
Mail
 für Windows 10




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] bounding box algorithm

2020-10-08 Per discussione Tudorache, Marian
Hi,

The question is for the developers of QGIS.
In my python classes I use a lot the boundingBox function for QgsGeometry class.
I would like to know if it is possible to see the algorithm for this function.

I found this but it is not really the algorithm

  
858
 QgsRectangle 
QgsGeometry::boundingBox()
 const
  859 {
  860  if ( 
d->geometry
 )
  861  {
  862  return 
d->geometry->boundingBox();
  863  }
  864  return QgsRectangle();
  865 }
  866
Where
I create some polygons with QGIS which are exported to another system which use 
a bounding box formula that gives infinity.
The other system includes a check of the South Pole in the bounding box it also 
takes in consideration the orientation of the polygon coordinates.
It seems in one of the orientation the South Pole is inside the bounding box 
and if I switch the orientation the South Pole is not anymore inside.
QGIS seems to be immune of how the coordinates are oriented. Regardless of the 
order QGIS gives a finite bounding box without having a South Pole inside.

Can someone help me?
Thank you,
Marian
Anyone can help me?



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] null geometries workaround

2020-07-10 Per discussione Tudorache, Marian
I fix the null geometries programmatically.
For example:
geom = feature.geometry()
if type(geom) == types.NoneType:
   like skip or delete.

To delete these geometries you can use this algorithm
featuresToDelete = []
for feature in layer.getFeatures():
  geom = feature.geometry()
  if type(geom) == types.NoneType:
 featuresToDelete.append(feature.id())

if len(featuresToDelete) > 0:
  layer.startEditing()
  layer.setSelectedFeatures(featuresIds)
  layer.deleteSelectedFeatures()
  layer.commitChanges()

to delete you also can used 
layer.dataProvider().deleteFeatures(featuresToDelete)

I hope this will help.
Thanks,
Marian



From: Qgis-user  On Behalf Of Jésahel Benoist
Sent: Thursday, July 2, 2020 10:09 AM
To: qgis-user ML 
Subject: [EXT] [Qgis-user] null geometries workaround

I had to deal with null geometries (points) in a geopackage. As it shows some 
QGIS strange behavior I decided to post this.

When the attributes table is by default on "filtered by view", switching to 
"show all" is filtering null geometries. No way to show them... By changing the 
default behaviour in the options to "show all", there's no more filter, but it 
isn't possible to find faulty lines ; all graphic tools are working as if 
everything was correct.

I've found that the "geometry attribute table" plugin by P. Whitten can help, 
however, I wondered if there was a standard tool to do the job.

With QGIS 3.10.7, the 'removenullgeometries', 'fixgeometries', 
'checkgeometries' processing tools doesn't work.
The checkgeometry tool finds them, but gives only the id without any option to 
fix.

I found with "DB browser with SQLite" that the geometry was there, but x and y 
were 0x   f87f. This is for 'not a number' (nan) value. But I 
didn't find any expression to check for this value...

Finally, I found two ways to find the faulty lines :
The first is to create a calculated field with $x as value. (nan) is clearly 
shown then.
The second is to make a filter with this simple formulae : if (to_int($x)=0, 
true, false). The to_int() converts the nan value to 0, et voila. Easy.

You're then free to add a part or delete the faulty lines.

Hope it helps some people...

Jésahel





This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] A suggestion to define a proj4 string

2020-07-03 Per discussione Tudorache, Marian
Hi,

I got some vectorial projected data. The data reference is stereographic where 
lat_0=53.354166  and lon_0=-114.8525
The data spec also gave me this:
Major_Axis_Csp= 6378137
Minor_Axis_Csp= 6356752.31414
Gnomonic_Scale_Factor_Csp= 0.9984
Stereographic_Scale_Factor_Csp= 0.9996
Utm_Scale_Factor_Csp= 0.9996
Ups_Scale_Factor_Csp= 0.994
Rdps_Eccentricity_Squared_Csp= 0.00672267
False Northing= 0
False Easting = 0

So I tried to define a proj4 string to be used in QGIS.
This is what I found so far:
Major_Axis_Csp = +a
Minor_Axis_Csp = +b
False Northing   = +y_0
False Easting   = +x_0
I figured out based on major and minor axis the ellps is using GRS 1980 model
What I cannot figured out is how to use the four scale factors in proj4. My 
fist assumption is to use Stereographic_Scale_Factor_Csp value for k_0 scaling 
factor.
Did someone encountered such projection specifications?
This is the proj4 string that I defined
+proj=sterea +lat_0=53.354166 +lon_0=-114.8525 +k_0=0.9996 +x_0=0.0 +y_0=0.0 
+a=6378137 +b=6356752.31414 +ellps=GRS80 +units=m +no_defs
Do you think is correct?

Thank you,
Marian




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How to determine the inner surface on a sphere or ellipsoid

2020-06-18 Per discussione Tudorache, Marian
I think I found a solution for this problem.
Instead of do the analysis over the entire polygon on the surface, I will do it 
over the three consecutive points from polygon vertices not colinear and the 
middle point is either most East, South, West or North.
detO = (bPoint.x() - aPoint.x()) * (cPoint.y() - aPoint.y()) - (cPoint.x() - 
aPoint.x()) * (bPoint.y() - aPoint.y())
The sign of the determinant will tell me the direction of the three points 
which coincides with the direction of the polygon.
In this way I can force the orientation of the polygon to match the one 
required by Intermaphics.

Thanks,
marian

-Original Message-
From: Nyall Dawson 
Sent: Tuesday, June 16, 2020 6:21 PM
To: Richard Duivenvoorde 
Cc: Tudorache, Marian ; qgis-user@lists.osgeo.org
Subject: [EXT] Re: [Qgis-user] How to determine the inner surface on a sphere 
or ellipsoid

On Wed, 17 Jun 2020 at 02:10, Richard Duivenvoorde  wrote:
>
> On 6/16/20 4:17 PM, Tudorache, Marian wrote:
> > Hi everyone,
> >
> > I have a list of polygons given by a list of points.
> > The polygons are properly drawn on QGIS canvas by creating the geometries, 
> > the each geometry is used to create a Qgsfeature which are saved on a 
> > shapefile.
> > The problem appears in detecting if a point on the Earth is inside or 
> > outside the polygon.
> > Using pyqgis QgsGeometry intersects function returns proper value.
> > However when I export the polygon to intermaphics from Kongsberg Geospatial 
> > (former Gallium) sometime the point is inside other time is outside the 
> > polygon.
> > I tried to switch the order of the points is QGIS ,but the intersects 
> > function always give me the same result regardless of the order of the 
> > points.
> > In intermaphics the intersection between a polygon and a point varies with 
> > the order of the points which define a polygon.
> > I talked to people from gallium and they confirmed the order of the points 
> > is important.
> > In one direction a inner area of the polygon is the small surface and if I 
> > switch the order the inner area is the outside and it wraps the Earth on 
> > the opposite side.
> >
> > Does QGIS or pyqgis has a similar mechanism to determine which is the inner 
> > part of the polygon on a sphere or ellipsoid?
>
> Hi Marian,
>
> are'nt we here talking about the so called Right Hand Rule?

That's just a convention -- it doesn't change what the boundary actually 
represents.

If you want to do analysis based on points which fall outside a digitized 
polygon, you should use a "disjoint" relationship. The alternative is to do 
what Nicolas suggested and make a polygon which covers the globe minus a small 
hole, but you'll get terrible performance with any analysis using that 
approach...!

Nyall



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] How to change the color of the labels for features that are selected

2020-06-18 Per discussione Tudorache, Marian
Hi everyone again,

When I select in QGIS the selected features are highlighted in a different 
color but if the labels are turned on, they do not change the color.
Is it a way to change the color of the labels for the features that are 
selected and keep the others with the original color?

Thank you,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How to determine the inner surface on a sphere or ellipsoid

2020-06-16 Per discussione Tudorache, Marian
This might help, however  I forgot to mention that I am using QGIS 2.18.
The QgsGeometry Class that you sent me is for QGIS 3.

Do you know something similar on QGIS 2.18?

Thanks,
Marian

-Original Message-
From: Richard Duivenvoorde 
Sent: Tuesday, June 16, 2020 12:10 PM
To: Tudorache, Marian ; qgis-user@lists.osgeo.org
Subject: [EXT] Re: [Qgis-user] How to determine the inner surface on a sphere 
or ellipsoid

On 6/16/20 4:17 PM, Tudorache, Marian wrote:
> Hi everyone,
>
> I have a list of polygons given by a list of points.
> The polygons are properly drawn on QGIS canvas by creating the geometries, 
> the each geometry is used to create a Qgsfeature which are saved on a 
> shapefile.
> The problem appears in detecting if a point on the Earth is inside or outside 
> the polygon.
> Using pyqgis QgsGeometry intersects function returns proper value.
> However when I export the polygon to intermaphics from Kongsberg Geospatial 
> (former Gallium) sometime the point is inside other time is outside the 
> polygon.
> I tried to switch the order of the points is QGIS ,but the intersects 
> function always give me the same result regardless of the order of the points.
> In intermaphics the intersection between a polygon and a point varies with 
> the order of the points which define a polygon.
> I talked to people from gallium and they confirmed the order of the points is 
> important.
> In one direction a inner area of the polygon is the small surface and if I 
> switch the order the inner area is the outside and it wraps the Earth on the 
> opposite side.
>
> Does QGIS or pyqgis has a similar mechanism to determine which is the inner 
> part of the polygon on a sphere or ellipsoid?

Hi Marian,

are'nt we here talking about the so called Right Hand Rule?

https://urldefense.com/v3/__https://postgis.net/docs/ST_ForceRHR.html__;!!P0kg3YazkQ!SxE0ZFgaBrgWRAqxjyrcC27wO_4FSfOZJ6YSW3RdPYb1VIj6V3RbX2nWprVt5PDgB1KFJfl8$
says:

In particular, the exterior ring is orientated in a clockwise direction and the 
interior rings in a counter-clockwise direction.

QGIS has this also:

https://urldefense.com/v3/__https://github.com/qgis/QGIS/blob/master/src/core/geometry/qgsgeometry.cpp*L2651__;Iw!!P0kg3YazkQ!SxE0ZFgaBrgWRAqxjyrcC27wO_4FSfOZJ6YSW3RdPYb1VIj6V3RbX2nWprVt5PDgB0hgkj92$

With pyqgis you can als use forceRHR:

https://urldefense.com/v3/__https://qgis.org/pyqgis/3.12/core/QgsGeometry.html?highlight=qgsgeometry*qgis.core.QgsGeometry.forceRHR__;Iw!!P0kg3YazkQ!SxE0ZFgaBrgWRAqxjyrcC27wO_4FSfOZJ6YSW3RdPYb1VIj6V3RbX2nWprVt5PDgBwHQeTsL$

I do know that QGIS is not so good when a geometry crosses the world-dateline 
though... but I do not think that is your case is it?

Or do I misunderstand you question?

Regards,

Richard Duivenvoorde









This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] How to determine the inner surface on a sphere or ellipsoid

2020-06-16 Per discussione Tudorache, Marian
Hi everyone,

I have a list of polygons given by a list of points.
The polygons are properly drawn on QGIS canvas by creating the geometries, the 
each geometry is used to create a Qgsfeature which are saved on a shapefile.
The problem appears in detecting if a point on the Earth is inside or outside 
the polygon.
Using pyqgis QgsGeometry intersects function returns proper value.
However when I export the polygon to intermaphics from Kongsberg Geospatial 
(former Gallium) sometime the point is inside other time is outside the polygon.
I tried to switch the order of the points is QGIS ,but the intersects function 
always give me the same result regardless of the order of the points.
In intermaphics the intersection between a polygon and a point varies with the 
order of the points which define a polygon.
I talked to people from gallium and they confirmed the order of the points is 
important.
In one direction a inner area of the polygon is the small surface and if I 
switch the order the inner area is the outside and it wraps the Earth on the 
opposite side.

Does QGIS or pyqgis has a similar mechanism to determine which is the inner 
part of the polygon on a sphere or ellipsoid?

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Select features inconsistency on QGIS 2.18

2020-03-27 Per discussione Tudorache, Marian
Hi everyone,

I have found an inconsistency on the way how select features works in QGIS 2.18.

If I use actionSelectRectangle or actionSelect the selection disappears when I 
hold Shift + left mouse key.
This does not happen if I use actionSelectFreehand, actionSelectPolygon or 
actionSelectRadius.

I try to find in user manual the difference the behavior differences and I 
found nothing.
Normally when I want to do multi features selection I use either Ctrl +  left 
mouse key click or Shift + left mouse key click and drag.
If actionSelectRectangle or actionSelect is used I have to be fast because if I 
hold too long (3 secodns) the two keys (Shift and left mouse key) the entirely 
previous selectin is lost.

Thank you,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Qgis 2.18 support

2019-10-04 Per discussione Tudorache, Marian
Hi,

I currently use Qgis 2.18. on Centos.
I would like to know if this will be supported and for how long?
We tried to upgrade to QGIS 3.x but there are backward compatibility issues.
Also there are dependencies issues.

Thanks,
Marian




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Defining Geographical Coordinate System GRS80

2019-03-22 Per discussione Tudorache, Marian
Hi there,


I have a set of  coordinates which are in a user defined projected coordinates 
system as bellow. Coordinates are in meters.

+proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 +a=6378137 
+b=6381816.160744 +ellps=GRS80 +units=m +no_defs


The documentation says the data was transformed from Geographical Coordinate 
System GRS80 in QGIS database with Coordinate Reference Systems and I found one 
named Unknown datum based upon GRS 1980 ellipsoid with Authority ID EPSG:4019:

+proj=longlat +ellps=GRS80 +no_defs

Is this the GRS 80?

I would like to know if I can relay in CRS with Authority ID EPSG:4019 to 
transform those projected coordinates back to GRS 80.


Thank you,

Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.18 -Changing layer rule-based style transparency

2019-01-09 Per discussione Tudorache, Marian
In 2.18 it crush at this line
symbol = symbolItem.symbol()

You should have symbol2() not symbol().
symbol = symbolItem.symbol2()

Thank you,
Marian

-Original Message-
From: Qgis-user  On Behalf Of Raymond Nijssen
Sent: Saturday, January 5, 2019 11:04 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS 2.18 -Changing layer rule-based style transparency

Already got it working, using the setLegendSymbolItem() on the renderer:


layer = iface.activeLayer()
renderer = layer.renderer()
symbolItems = renderer.legendSymbolItems()

for symbolItem in symbolItems:
 print(symbolItem)
 symbol = symbolItem.symbol()
 color = symbol.color()
 color.setAlpha(255 * 0.8)
 symbol.setColor(color)
 renderer.setLegendSymbolItem(symbolItem.ruleKey(), symbol)

layer.triggerRepaint()



No clue if it will run in 2.18, expecting not. Hoping you can upgrade.

Raymond

On 05-01-19 13:22, Raymond Nijssen wrote:
> Hi Marian,
>
> As I understand you want to set every symbol in your rule based
> classification to 80% transparent (instead of the entire layer)?
>
> I tried to write a qgis (v3.4) script but unfortunately it crashes my
> qgis. So I hope somebody here can correct it, or maybe you will find
> the solution yourself.
>
> I'm doing many prints to see the return values. The crash happens when
> in line 18: symbolItem.setSymbol(symbol)
>
> ---
>
> layer = iface.activeLayer()
>
> renderer = layer.renderer()
>
> symbolItems = renderer.legendSymbolItems()
> print(symbolItems)
>
> for symbolItem in symbolItems:
>  print('---')
>  print(symbolItem)
>  symbol = symbolItem.symbol()
>  print(symbol)
>  color = symbol.color()
>  print(color.name(1))
>  color.setAlpha(255*0.8)
>  print(color.name(1))
>  symbol.setColor(color)
>  symbolItem.setSymbol(symbol) # !!! this makes qgis crash
>
> layer.triggerRepaint()
>
> ---
>
> When crashing, qgis outputs:
>
> QGIS died on signal 11Could not attach to process.  If your uid
> matches the uid of the target process, check the setting of
> /proc/sys/kernel/yama/ptrace_scope, or try again as the root user.
> For more details, see /etc/sysctl.d/10-ptrace.conf
> ptrace: Operation not permitted.
> No thread selected
> No stack.
> gdb returned 0
> Aborted (core dumped)
>
> ---
>
> Kind regards,
> Raymond
>
>
> On 04-01-19 22:32, Tudorache, Marian wrote:
>> Hi,
>>
>> I have a polygon type vector layer with rule-based style.
>>
>> I need to change programmatically the layer transparency.
>>
>> I used the following code:
>>
>> layer = iface.activeLayer()
>>
>> layer.setTransparency(80)
>>
>> layer.triggerRepaint()
>>
>> This works only if I want to see layers which are under the active
>> one but it does not work for the features inside active layer.
>>
>> When there are identical polygons which overlap within active layer,
>> I can only see the top one. If I select a polygon which is underneath
>> it is not displayed as selected.
>>
>> I can make it work if I manually open the layer style and double
>> click on rule to open Rule properties and set the transparency for the rule.
>>
>> How can I change the rule transparency programmatically?
>>
>> Thank you,
>>
>> Marian
>>
>>
>> -
>> ---
>>
>> This electronic message, as well as any transmitted files included in
>> the electronic message, may contain privileged or confidential
>> information and is intended solely for the use of the individual(s)
>> or entity to which it is addressed. If you have received this
>> electronic message in error please notify the sender immediately and
>> delete the electronic message. Any unauthorized copying, disclosure
>> or distribution of the electronic message is strictly forbidden. NAV
>> CANADA accepts no liability for any damage caused by any virus and/or
>> other malicious code transmitted by this electronic communication.
>>
>> Le présent message électronique et tout fichier qui peut y être joint
>> peuvent contenir des renseignements privilégiés ou confidentiels
>> destinés à l’usage exclusif des personnes ou des organismes à qui ils
>> s’adressent. Si vous avez reçu ce message électronique par erreur,
>> veuillez en informer l’expéditeur immédiatement et supprimez le.
>> Toute reproduction, divulgation ou distribution du présent message
>> électronique est strictement interdite. NAV CANADA n’assume aucune
>> responsabilité en cas de dommage causé par tout virus ou autre
>> progr

[Qgis-user] QGIS 2.18 -Changing layer rule-based style transparency

2019-01-04 Per discussione Tudorache, Marian
Hi,

I have a polygon type vector layer with rule-based style.
I need to change programmatically the layer transparency.

I used the following code:
layer = iface.activeLayer()
layer.setTransparency(80)
layer.triggerRepaint()
This works only if I want to see layers which are under the active one but it 
does not work for the features inside active layer.

When there are identical polygons which overlap within active layer, I can only 
see the top one. If I select a polygon which is underneath it is not displayed 
as selected.
I can make it work if I manually open the layer style and double click on rule 
to open Rule properties and set the transparency for the rule.
How can I change the rule transparency programmatically?
Thank you,
Marian




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Converting X Y Coordinates to Latitude/Longitude

2018-07-04 Per discussione Tudorache, Marian
Nicholas method is about transforming coordinates from a CRS to another one.

QGIS also has the possibility of enable on the fly CRS transformation.

In both cases you should know the CRS for vectorized historic map.

QGIS will do the best to generate a custom CRS and associate to your data but 
it does not work all the time.

Do you know the CRS for vectorized historic map?

To be accurate during coordinate transformation you need to associated the 
original data with a CRS.

We had an issue with not georeferenced data. When we loaded the vectorized 
data, QGIS assigned a weird CRS. After we <> to GRS80 the area was 
shifted.
We knew the area was somewhere in Vancouver and the area was over a 
stereographic projection. I knew the point of tangency and I created a custom 
CRS which was associated to my original data.

After this tweak we were able to overlay precisely the area where it belongs.

I hope this helps.
Marian


From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nicolas 
Cadieux
Sent: June-07-18 9:54 PM
To: David Hochfelder
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Converting X Y Coordinates to Latitude/Longitude

Hi David,

I’am an archaeologist working in Québec. If you vectorized the map in a local 
CRS, all you need to do is do a « save as » and change the CRS (coordinate 
reference system) that is in Longitude Latitude.  If your map is not 
georefenrenced (that is, you just scanned the map and did not use a CRS, that 
is more complicated but not impossible.  I usually fixe that do in a CAD but I 
am sure you can do it in QGIS.  We could talk if you want and I could help you 
out figured the next steps and steps to avoid this problem (like georefereing 
the raster map before you start) .Send me an email directly.

You could look at this also.
https://gis.stackexchange.com/questions/136817/qgis-moving-the-layer-all-features-using-vector-affine-transformation

Nicolas

Le 7 juin 2018 à 20:49, David Hochfelder 
mailto:dhochfel...@albany.edu>> a écrit :
Hi All,

I am new to QGIS, so this may be a newbie question easily answered by the more 
experienced.

I'm working on a historical GIS project to remap an area of Albany, NY 
demolished for urban renewal in 1962. I've succeeded in vectorizing a historic 
map of the area (~1960), but the coordinates are not in lat/long form. I see 
that there are plugins for converting tables of specific coordinates, but I 
want to convert the entire map continuously.

This area no longer exists--all the buildings and streets were cleared for the 
Empire State Plaza state capitol complex.

My end goal is to use the rectified map as a way to geotag historic photographs 
of particular buildings.

Is there a way to convert the coordinates in a continuous fashion for the 
entire region?

Thanks for your help.

Dave Hochfelder


David Hochfelder
Associate Professor
History Department
Social Science 060B
University at Albany, SUNY
Albany, NY 1
518-442-5348
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Implement QGIS source

2017-11-16 Per discussione Tudorache, Marian
I think it refers to run make install script which allows to deploy QGIS on 
your machine.
This is how I used to do in Linux.

If you want your QGIS in a windows machine why don`t use QGIS installers.
http://www.qgis.org/en/site/forusers/download.html

Thanks,
marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Arun 
Bharathi
Sent: November-16-17 6:49 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Implement QGIS source

Hi,

I have compiled QGIS open source in visual studio 2013. But I am getting more 
errors and also I am not getting the meaning of the following sentence found in 
your help file (under section 4.1.3. Setting up the Visual Studio project with 
CMake).


After the build completed you should install QGIS using the INSTALL target.

Install QGIS by building the INSTALL project. By default this will install to 
c:\Program Files\qgis (this can be changed by changing the 
CMAKE_INSTALL_PREFIX variable in cmake-gui).

Thanks and Regards.
P.Arun Bharathi


On Wed, Nov 8, 2017 at 8:00 PM, Arun Bharathi 
<arunbharathi...@gmail.com<mailto:arunbharathi...@gmail.com>> wrote:
Hi Marian,
Yes. I need to build and execute QGIS open source in Qt windows.


On Nov 8, 2017 7:36 PM, "Tudorache, Marian" 
<marian.tudora...@navcanada.ca<mailto:marian.tudora...@navcanada.ca>> wrote:
Hi Arun,

What does it mean to implement QGIS open source code in QT C++ windows?
Does it mean to install QGIS in windows?

Thanks,
marian

From: Qgis-user 
[mailto:qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org>]
 On Behalf Of Arun Bharathi
Sent: November-08-17 7:14 AM
To: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: [Qgis-user] Implement QGIS source

Hi,
I am new to QGIS open source software. I have adequate knowledge in Qt C++. I 
need to implement QGIS open source code in Qt C++ windows. Plz help me.

Thanks and Regards.
P.Arun Bharathi




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.


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

Re: [Qgis-user] QGIS Meeting #20 : 20-25 February 2018, Madeira

2017-11-14 Per discussione Tudorache, Marian
Hello everyone,

Last week, I have sent an email to Tim Sutton and another one to Lene Fischer 
about this event.
I am really interesting in participating.

In my preliminary discussions with my manager, he is willing to seek money from 
the company to sponsor me. So basically I do not need any funding support.
I tried to use your form 
https://docs.google.com/forms/d/e/1FAIpQLSea25C7UMQecQgEIIpZGHdwpqqFy6ZTEfOk64qcA0tI4aZZFA/viewform
 but it does not allow to introduce 0 Euro.
It seems the form is for who applies for support.

So I would really appreciate a firm response from organizers if my 
participation is accepted or not.
In case you accept my participation I would need a letter from you with your 
agreement eventually the program of the event.

Thank you and I am looking forward to see you there.

CAATS Engineering Data Developer
NAV CANADA
280 Hunt Club Road
Ottawa (Ontario)  K1V 1C1
(613) 248-6558
tudo...@navcanada.ca

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Tim 
Sutton
Sent: October-29-17 6:08 PM
To: QGIS Developer; QGIS Users; Lene Fischer
Cc: Sara Isabel Correia Freitas; Duarte Costa
Subject: [Qgis-user] QGIS Meeting #20 : 20-25 February 2018, Madeira

Hi All

We have a confirmed venue for the next QGIS get together - it is in Madeira 
from the 20-25 February 2018. If you plan on attending please head over to the 
wiki page and register your intention to be there:

https://github.com/qgis/QGIS/wiki/DeveloperMeetingMadeira2018

Please also note that this time we are going to try to be a little more 
organised for helping newcomers, so I have added sections to the wiki page for 
‘Mentor streams’ - I have nominally added 4 streams but if you would like to 
host more please add a new section to the wiki page. If you are interested in 
attending one of the streams, please add your name to the appropriate section.

Lene will no doubt provide you with more details (via the wiki)  as we get 
closer to the event as will Duarte and Sara (our local organisers in Madeira).

Another important thing to note is that the cost of attending will be higher 
than usual given the more removed location and that we do not have very cheap 
accommodation available. If you intend on requesting travel assistance for the 
event, please fill out our new form as 
soon as possible. Also be aware that funds are limited so we may not be able to 
cover everyone’s costs or all costs completely - applications will be taken on 
merit with priority given to active contributors to the QGIS project.

Looking forward to seeing you all in Madeira!

Regards



 [cid:image001.png@01D35D2C.A8C36C00]



---

Tim Sutton
QGIS Project Steering Committee Chair
t...@qgis.org







This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Python plugin is broken

2017-11-09 Per discussione Tudorache, Marian
Hola Juan,

Could you send the whole stack trace please?
There might be a dependency which causes the problem.

Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Juan 
Jose Rodriguez
Sent: November-09-17 2:59 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Python plugin is broken

Hi,

I´m new to this support list, and would like to post a question.

I´m developing a QGIS Python plugin. The plugin loads in one computer but not 
in another (both with Windows 10). I get this message in the wrong one:

This plugin is broken
Error reading metadata: global name '__builtin__' is not defined

In the computer that gives the error message I have the latest QGIS version:

QGIS version
2.18.14
QGIS code revision
ff83b9a479
​
​The one that runs OK has version 2.18.3

​Any idea of what is happening?

Thanks

Juan Jose Rodriguez
FLO-2D Software  /  Hydronia LLC
www.flo-2d.com   
www.hydronia.com
j...@flo-2d.com



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] vector digitizing question

2017-11-09 Per discussione Tudorache, Marian
Hi Scott,

The new possibility in 2.18 is cool but if you have older QGIS version you can 
use SIGNAL/SLOTS

.featuresAdded().connect(defaultAttributes)

def defaultAttributes(fid):
feature = [feat for feat in .getFeatures() if feat.id() == fid][0]
.changeAttributeValue(fid, , 
feature.geometry().length())
.featuresAdded().disconnect()

It is a little bit messy :).

Marian

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
Matthias Kuhn
Sent: November-09-17 9:47 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] vector digitizing question

Hi Scott,

a tiny bit of configuration and it will be done for you:

https://gis.stackexchange.com/a/211154/9839

Regards
Matthias

On 11/09/2017 03:43 PM, Madry, Scott wrote:
> Hello all. I have a vector polygon shape file that was originally
> created in ArcGIS. I have recently added three polygons to the file
> using QGIS, but the results (attached) show that the area and
> perimeter values for these are not computed. How can I, in QGIS,
> generate these area and perimeter fields to be added? I know I can
> manually do the areas using the ‘Measure’ tool, but would prefer an automated 
> process.
> Does Arc just create these automatically? Can QGIS?
>
> Thanks so much,
>
> Scott
>
> Scott Madry, Ph.D.
> Research Associate Professor of Archaeology The University of North
> Carolina at Chapel Hill
>
> Tel 1-919-448-4493
> Email:mad...@email.unc.edu 
> https://scottmadry.web.unc.edu
> Skype:   scott.madry
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Implement QGIS source

2017-11-08 Per discussione Tudorache, Marian
Hi Arun,

What does it mean to implement QGIS open source code in QT C++ windows?
Does it mean to install QGIS in windows?

Thanks,
marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Arun 
Bharathi
Sent: November-08-17 7:14 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Implement QGIS source

Hi,
I am new to QGIS open source software. I have adequate knowledge in Qt C++. I 
need to implement QGIS open source code in Qt C++ windows. Plz help me.

Thanks and Regards.
P.Arun Bharathi




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Issue with coordinates in QGIS 2.10

2017-10-30 Per discussione Tudorache, Marian
Hello,

I am encountering an issue with QGIS 2.10 which I never had before.
When add an arc to the canvas the saved coordinates do not match those from 
status bar Coordinate  field.

Example:
Step1: Click the first point at -2766147, 5189893. The value is from Coordinate 
field of the status bar.
Step2: Click right at the  second point having coordinates -1342991, 6725875. 
The value is from Coordinate field of the status bar.

Step3: Click right to draw the line: The line is drawn.
Step4: Save the layer.

Step5: From the console I extract the points.
layer = iface.activeLayer()
feature = layer.getFeatures.next()
print feature.geometry().asPolyline()
The console display:
(-1.52996e+06,6.82968e+06), (636778,6.98782e+06).

These coordinate are totally different from those captured in Coordinate field 
of the status bar.

How do you explain this?
When I hover the mouse over the first and last point of the arc the Coordinate 
field of the status bar shows the same number for the step 1 and step 2.

Which coordinates are correct?

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Check if a selectionChanged signal is connected to any slot?

2017-10-03 Per discussione Tudorache, Marian
Hi Mathias,

Yeah, this is what I knew in theory. Unfortunately this is not the case.
You can try in python console.
Make sure you have a layer with some features.
Define function executeAfterSelection where you do some dummy printing.
Call three times layer.selectionChanged.connect(executeAfterSelection).
Then try to select features in the layer.
You will see the function executeAfterSelection is execute three times after 
each selection.

I have done an workaround by introducing a flag variable which tells me if the 
myLayer.selectionChanged.connect(executeAfterSelection) statement was already 
called.

Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
Matthias Kuhn
Sent: October-03-17 3:13 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Check if a selectionChanged signal is connected to any 
slot?


Hi Marian,

Just tell Qt that it shouldn't create the connection more than once using 
Qt::UniqueConnection.

Cheers

Matthias

On 10/2/17 5:30 PM, Tudorache, Marian wrote:

Hi everyone,

I have connected the signal selectionChanged so some code, which is executed 
after features are selected.

myLayer.selectionChanged.connect(self.executeAfterSelection)

Then I have a method self. executeAfterSelection(self, featuresIds)

The SIGNAl/SLOT tandem works but now I realized every time when I call 
myLayer.selectionChanged.connect(self.executeAfterSelection)  It does not 
overwrite my previous call. It creates a second signa/slot tandem. During 
running the method  executeAfterSelection is excuted twice, three times etc.

How can I check if the SIGNAL selectionChanged is connected to the slot 
executeAfterSelection before I run 
myLayer.selectionChanged.connect(self.executeAfterSelection)?

I tried this:
receiversCount = QtCore.QObject.receivers(QtCore.SIGNAL("selectionChanged()")
receiversCount = QtCore.QObject.receivers(QtCore.SIGNAL("selectionChanged")
receiversCount = 
QtCore.QObject.receivers(QtCore.SIGNAL("myLayer.selectionChanged()")
receiversCount = 
QtCore.QObject.receivers(QtCore.SIGNAL("myLayer.selectionChanged")

Every time I get this error:

QObject.receivers(SIGNAL()): first argument of unbound method must have type 
'QObject').


Thanks,
Marian






This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.




___

Qgis-user mailing list

Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>

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

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

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

Re: [Qgis-user] Check if a selectionChanged signal is connected to any slot?

2017-10-02 Per discussione Tudorache, Marian

Hi everyone,

I have connected the signal selectionChanged so some code, which is executed 
after features are selected.

myLayer.selectionChanged.connect(self.executeAfterSelection)

Then I have a method self. executeAfterSelection(self, featuresIds)

The SIGNAl/SLOT tandem works but now I realized every time when I call 
myLayer.selectionChanged.connect(self.executeAfterSelection)  It does not 
overwrite my previous call. It creates a second signa/slot tandem. During 
running the method  executeAfterSelection is excuted twice, three times etc.

How can I check if the SIGNAL selectionChanged is connected to the slot 
executeAfterSelection before I run 
myLayer.selectionChanged.connect(self.executeAfterSelection)?

I tried this:
receiversCount = QtCore.QObject.receivers(QtCore.SIGNAL("selectionChanged()")
receiversCount = QtCore.QObject.receivers(QtCore.SIGNAL("selectionChanged")
receiversCount = 
QtCore.QObject.receivers(QtCore.SIGNAL("myLayer.selectionChanged()")
receiversCount = 
QtCore.QObject.receivers(QtCore.SIGNAL("myLayer.selectionChanged")

Every time I get this error:

QObject.receivers(SIGNAL()): first argument of unbound method must have type 
'QObject').


Thanks,
Marian






This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Training in QGIS

2017-06-15 Per discussione Tudorache, Marian
Hi everyone,

I am interested in finding an official instructor in QGIS to provide training 
in Ottawa/Gatineau region, Canada.

Thank you,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] (no subject)

2017-06-01 Per discussione Tudorache, Marian
Hi Fred,

You include quite a lot of questions.
Changing layer color is done by styling.
You click right on the layer and choose properties. Go to the tab Style.
You can change the color of the features displayed in your layer, the 
transparency, unit of measurements etc.

Also I can't see a line of crosses, points opposite the nodes by the polygon  
so I don't know how to do this does any know how to correct this, sort it out?
I think you refers to the points which build a specific feature.
If you use vectorial layers there are three types: points, lines and polygon. 
You cannot have a layer with mixed types.
When you work with point layers it is simple. Each feature on the layer is a 
point.
When you work with lines you see the lines which connect the point defined by 
your clicks on the canvas.
If you want to visuals those  points you need to have the layer in edit mode 
and select a specific line feature, You can see the defined points by a small 
red x.
The same with polygon layer type.

Be aware the lines which are drawn manually are simple. They do not follow the 
contour of the earth like Great Circle, Rhumble lines. If you want to draw a 
great circle line you need create plugin or used one of the plugins which exist.
You have all kind of processing algorithm which can operate on you layers.

Changing the layer symbols.
You can change the symbol but not the layer type. Go to layer style as I 
explained above.

Do I answer to your questions?

Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Fred 
Ralston
Sent: May-30-17 12:34 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] (no subject)


Hi

I have been trying to learn how to use QGIS following the QGIS online tutorial. 
I am on lesson 6.2 part 2. Though I am still struggling to work out how to do 
this as my area of my places layer should be a different colour which I have 
tried to change but I don't know how as its shows as green on the tutorial but 
white at the moment does anyone know about this? .Also I can't see a line of 
crosses, points opposite the nodes by the polygon  so I don't know how to do 
this does any know how to correct this, sort it out?. Also each of the layers 
appear as symbols which I can't find,remember this being in the tutorial does 
anyone know how to change these layers so there are symbols.  I am basically 
just stuck on this lesson which I am finding very tricky and I badly need help 
with this. I have tried Stack Exchange but to no avail.

Kind Regards

Fred Ralston



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Clipping a QgsVectorLayer object of type LineString with a QgsVectorLayer object of type Polygon

2017-05-19 Per discussione Tudorache, Marian

Hi,

I have tried to run clipping processing algorithm and it fails.
First version:
srs = qgis.core.QgsCoordinateReferenceSystem(4019, qgis.core. 
QgsCoordinateReferenceSystem.EpsgCrsId)

#Input Layer
inputLayer = qgis.core.QgsVectorLayer(shapeFileLocation + 
“/inputLineString.shp”, “inputLineString”, “ogr”)
inputLayer.setCrs(srs)
Clipping Layer:
clipLayer = qgis.core.QgsVectorLayer(“Polygon?crs={0}”.format(srs.authid())
#algorithm to add a clipping polygon feature
#the algorithm works because I tested with clipLayer.getFeatures() and I was 
able to extract the geometry and points
…..
….
#calling processing algorithm.
processing.runalg(‘qgis.clip’, inputLayer, clipLayer, “output.shp”)

The error:
Unable to execute algorithm
Wrong parameter value: Polygon?crs=ESPG:4019

Any idea why is not working?

Thank you,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Magnetic declination

2017-05-17 Per discussione Tudorache, Marian
Thank you Nicolas,

I have seen this video. The rotation is applied to the whole canvas.

I forgot to mention but I want to apply the rotation for one layer only. The 
other layers I want to keep un-rotated.

Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nicolas 
Cadieux
Sent: May-17-17 9:53 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Magnetic declination



https://www.youtube.com/watch?v=7TN3toqcyks



Le 17 mai 2017 à 09:02, Tudorache, Marian [via OSGeo.org<http://OSGeo.org>] 
<[hidden email]> a écrit :
Hi everyone,

I have a map build in True Geographic North.
I have used the Magnetic Declination plugin build by Aldo Scorza, to calculated 
magnetic declination on various points on the map.
I would like to know if there is a way to rotate the map on the fly with 
declination angle.

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/Magnetic-declination-tp5320815.html
To start a new topic under QGIS - User, email [hidden 
email]
To unsubscribe from QGIS - User, click here.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


View this message in context: Re: Magnetic 
declination<http://osgeo-org.1560.x6.nabble.com/Magnetic-declination-tp5320815p5320828.html>
Sent from the QGIS - User mailing list 
archive<http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html> at 
Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Magnetic declination

2017-05-17 Per discussione Tudorache, Marian
Can Vector Affine Transformation plugin do the job?

Thanks,
Marian


From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nicolas 
Cadieux
Sent: May-17-17 9:53 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Magnetic declination



https://www.youtube.com/watch?v=7TN3toqcyks



Le 17 mai 2017 à 09:02, Tudorache, Marian [via OSGeo.org<http://OSGeo.org>] 
<[hidden email]> a écrit :
Hi everyone,

I have a map build in True Geographic North.
I have used the Magnetic Declination plugin build by Aldo Scorza, to calculated 
magnetic declination on various points on the map.
I would like to know if there is a way to rotate the map on the fly with 
declination angle.

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/Magnetic-declination-tp5320815.html
To start a new topic under QGIS - User, email [hidden 
email]
To unsubscribe from QGIS - User, click here.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


View this message in context: Re: Magnetic 
declination<http://osgeo-org.1560.x6.nabble.com/Magnetic-declination-tp5320815p5320828.html>
Sent from the QGIS - User mailing list 
archive<http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html> at 
Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Check intersection of polygons and points with same value in ID field.

2017-05-17 Per discussione Tudorache, Marian
You can extract the geometry from feature polygon and point and you perform a 
geometry intersection.

Here is a sample in python.

featurePolygon - pointer to feature polygon
featurePoint - pointer to feature point

polygonGeometry = featurePolygon.geometry()
pointGeometry = featurePoint.geometry()

if featurePolygon ["ID"] == featurePoint["ID"] and 
pointGeometry.intersect(polygonGeometry):
#Do whatever you need to do.
print pointGeometry.intersection(polygonGeometry)

Marian

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
sinorfavela
Sent: May-17-17 8:03 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Check intersection of polygons and points with same value 
in ID field.

Hi there!

I need to check if the features of a polygon shape intersect with the features 
of a points shape with share the same value in their ID field. In other word, 
if the polygon with ID "54" intersect with the point with ID "54" and so on 
with all the features.

¿Any idea? I guess that could probably made with the field calculator, but I 
cannot figure out how to build it.

Thanks in advance!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Check-intersection-of-polygons-and-points-with-same-value-in-ID-field-tp5320809.html
Sent from the QGIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Magnetic declination

2017-05-17 Per discussione Tudorache, Marian
Hi everyone,

I have a map build in True Geographic North.
I have used the Magnetic Declination plugin build by Aldo Scorza, to calculated 
magnetic declination on various points on the map.
I would like to know if there is a way to rotate the map on the fly with 
declination angle.

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Projection database

2017-03-15 Per discussione Tudorache, Marian
I found it.
It is in sqllite database qgis.db

Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
Tudorache, Marian
Sent: March-15-17 6:08 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Projection database

Hi everyone,

Can someone tell me where projections and reference coordinates system are 
stored in QGIS?

Thank you,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

2017-03-15 Per discussione Tudorache, Marian
Well some of our maps are not on True North.
Each point on the map was transformed by applying a rotation equal to the angle 
between the true north pole and magnetic north .



-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Tobias 
Wendorff
Sent: March-09-17 2:42 PM
To: Tudorache, Marian
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Am Do, 9.03.2017, 19:33 schrieb Tudorache, Marian:
>
> It seems the reason why I get different x and y in ArcInfo is because
> I have to transform those coordinate based on magnetic declination.

What, a dynamic projection connected the Earth' magnetic declination?
I thought, I've already seen everything in GIS world :)

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

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Projection database

2017-03-15 Per discussione Tudorache, Marian
Hi everyone,

Can someone tell me where projections and reference coordinates system are 
stored in QGIS?

Thank you,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

2017-03-09 Per discussione Tudorache, Marian
I can but we use GRS80 not WGS84.
Can I work with WGS84?

Thanks,
Marian



From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Mark 
Seibel
Sent: March-09-17 1:47 PM
To: Tudorache, Marian
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

I would project them it to another coordinate system with ARC.

Can you project them to a geographic coordinate system like EPSG: 4326 (WGS84), 
or projected coordinate system?

Mark

On Thu, Mar 9, 2017 at 1:33 PM, Tudorache, Marian 
<marian.tudora...@navcanada.ca<mailto:marian.tudora...@navcanada.ca>> wrote:
Hi again Mark,

It seems the reason why I get different x and y in ArcInfo is because I have to 
transform those coordinate based on magnetic declination.
Could you tell me how can I modify the projection string +proj-sterea 
+lat_0=53.5 + lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 +a=631816.16075 
+b=631816.16075 +units=m +nodefs
So I can include the magnetic declination?
I want to try to see what will be the coordinate when I use true North and 
magnetic North.

Thank you,
Marian

From: Tudorache, Marian
Sent: March-07-17 1:19 PM
To: 'Mark Seibel'
Cc: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: RE: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Hi Mark,


The projection that I use in Qgis and ArcInfo is:
QGIS: +proj-sterea +lat_0=53.5 + lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 
+a=631816.16075 +b=631816.16075 +units=m +nodefs
ArcInfo: has different representation but the same thing:
Projection   STEREOGRAPHIC
Datum  NONE
Zunits   NO
Units METERS
XShift0.000
YShift0.000
Parameters 631816.16075 0.000
  1 /* Projection type < 1 | 2 >
631816.16075   /*radius of sphere of reference
-76   0 0.000   /* longitude of center of projection

5330 0.000 /* latitude of center of projection
0.0  /* false easting (meters)
0.0  /* false westing (meters)

One more thing ArcInfo uses directive COORDINATES in AML to extract the 
coordinates.
Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Mark 
Seibel
Sent: March-07-17 11:18 AM
To: Tudorache, Marian
Cc: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: Re: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Hi.

Can somebody explain me why coordinates in map units read by Qgis are different 
than those read by ArcInfo?
How can I make the two coordinates to be the same?

What is the projection of the arc/info coverage?

Is QGIS set to the same projection?

Mark


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.

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

Re: [Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

2017-03-09 Per discussione Tudorache, Marian
Hi again Mark,

It seems the reason why I get different x and y in ArcInfo is because I have to 
transform those coordinate based on magnetic declination.
Could you tell me how can I modify the projection string +proj-sterea 
+lat_0=53.5 + lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 +a=631816.16075 
+b=631816.16075 +units=m +nodefs
So I can include the magnetic declination?
I want to try to see what will be the coordinate when I use true North and 
magnetic North.

Thank you,
Marian

From: Tudorache, Marian
Sent: March-07-17 1:19 PM
To: 'Mark Seibel'
Cc: qgis-user@lists.osgeo.org
Subject: RE: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Hi Mark,


The projection that I use in Qgis and ArcInfo is:
QGIS: +proj-sterea +lat_0=53.5 + lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 
+a=631816.16075 +b=631816.16075 +units=m +nodefs
ArcInfo: has different representation but the same thing:
Projection   STEREOGRAPHIC
Datum  NONE
Zunits   NO
Units METERS
XShift0.000
YShift0.000
Parameters 631816.16075 0.000
  1 /* Projection type < 1 | 2 >
631816.16075   /*radius of sphere of reference
-76   0 0.000   /* longitude of center of projection

5330 0.000 /* latitude of center of projection
0.0  /* false easting (meters)
0.0  /* false westing (meters)

One more thing ArcInfo uses directive COORDINATES in AML to extract the 
coordinates.
Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Mark 
Seibel
Sent: March-07-17 11:18 AM
To: Tudorache, Marian
Cc: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: Re: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Hi.

Can somebody explain me why coordinates in map units read by Qgis are different 
than those read by ArcInfo?
How can I make the two coordinates to be the same?

What is the projection of the arc/info coverage?

Is QGIS set to the same projection?

Mark


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QgsCoordinateTransform does not get initialized in Qgis 2.10

2017-03-08 Per discussione Tudorache, Marian
Hi,

I have an issue with coordinate transformation when I use 
QgsCoordinateTransform class.
I want to transform a point given on ul_stereographic (see the projection 
string) to lat and long on GRS80 (see the grs80 string).

The point is
czul_old_ddl = qgis.core.QgsPoint(177309.9337868, -893161.8040887)
After I run the below script I get
Transformed point pt1, pt2: (177310,-893162) (-493719,-701640)
So my point supposed to be in lat and long using decimal degree format.
I verified ",xform.isInitialised() and it is False.

So why QgsCoordinateTransform does not get initialized?
I am using QGIS 2.10.

Thank you,
Marian


ul_stereographic = "+proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=0.9996 +x_0=0.0 
+y_0=0.0 +a=6378137 +b=6381816.160744 +ellps=GRS80 +datum=GRS80 +units=m 
+no_defs"
grs80 = "+proj=longlat +ellps=GRS80 +units=degrees"

print "ul_stereographic ", ul_stereographic
print "grs80 ", grs80

crsSrc = qgis.core.QgsCoordinateReferenceSystem()
crsSrc.createFromProj4(ul_stereographic)
crsDest = qgis.core.QgsCoordinateReferenceSystem()
crsDest.createFromProj4(grs80)

xform = qgis.core.QgsCoordinateTransform()
xform.setSourceCrs(crsSrc)
xform.setDestCRS(crsDest)

czul_old_ddl = qgis.core.QgsPoint(177309.9337868, -893161.8040887)
czul_new_ddl = qgis.core.QgsPoint(-493718.78427, -701639.769759)

pt1 = xform.transform(czul_old_ddl, 
qgis.core.QgsCoordinateTransform.ForwardTransform)
pt2 = xform.transform(czul_new_ddl, 
qgis.core.QgsCoordinateTransform.ForwardTransform)
print "Transformed point pt1, pt2:", pt1, pt2



print "QGIS CRS ID:", crsSrc.srsid(), crsDest.srsid()
print "Description:", crsSrc.description(), " - ", crsDest.description()
print "Projection Acronym:", crsSrc.projectionAcronym(), " - ", 
crsDest.projectionAcronym()
print "Ellipsoid Acronym:", crsSrc.ellipsoidAcronym(), " - ", 
crsDest.ellipsoidAcronym()
#print "Proj4 String:", crsSrc.toProj4(), " - ", crsDest.toProj4()
print "Is geographic:", crsSrc.geographicFlag(), " - ", crsDest.geographicFlag()
print "Map units:", crsSrc.mapUnits(), " - ", crsDest.mapUnits()

print "xform.isInitialised() ",xform.isInitialised()

print "xform.destCRS() ",xform.destCRS()


#results
#ul_stereographic  +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=0.9996 +x_0=0.0 
+y_0=0.0 +a=6378137 +b=6381816.160744 +units=m +no_defs
#grs80  +proj=longlat +ellps=GRS80 +units=degrees
#Transformed point pt1, pt2: (177310,-893162) (-493719,-701640)
#QGIS CRS ID: 0 0
#Description:   -
#Projection Acronym: sterea  -  longlat
#Ellipsoid Acronym:   -  GRS80
#Is geographic: False  -  False
#Map units: 0  -  2
#xform.isInitialised()  False
#xform.destCRS()  

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

2017-03-07 Per discussione Tudorache, Marian
Hi Mark,


The projection that I use in Qgis and ArcInfo is:
QGIS: +proj-sterea +lat_0=53.5 + lon_0=-76.0 +k=0.9996 +x_0=0.0 +y_0=0.0 
+a=631816.16075 +b=631816.16075 +units=m +nodefs
ArcInfo: has different representation but the same thing:
Projection   STEREOGRAPHIC
Datum  NONE
Zunits   NO
Units METERS
XShift0.000
YShift0.000
Parameters 631816.16075 0.000
  1 /* Projection type < 1 | 2 >
631816.16075   /*radius of sphere of reference
-76   0 0.000   /* longitude of center of projection

5330 0.000 /* latitude of center of projection
0.0  /* false easting (meters)
0.0  /* false westing (meters)

One more thing ArcInfo uses directive COORDINATES in AML to extract the 
coordinates.
Thanks,
Marian

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Mark 
Seibel
Sent: March-07-17 11:18 AM
To: Tudorache, Marian
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Coordinates in map units are different between ArcInfo 
and Qgis

Hi.

Can somebody explain me why coordinates in map units read by Qgis are different 
than those read by ArcInfo?
How can I make the two coordinates to be the same?

What is the projection of the arc/info coverage?

Is QGIS set to the same projection?

Mark


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Coordinates in map units are different between ArcInfo and Qgis

2017-03-07 Per discussione Tudorache, Marian
Hi everyone,

I have two GIS systems. First one is based on ArcInfo and the other one is 
based on Qgis 2.10.

The system with ArcInfo uses Esri coverage data files.
QGIS is able to read coverage data but I see differences between the coordinate 
expressed on map units between the two.

For example:
A point has in ArcInfo the coordinates in map units (meters) x = -1273005.24 
and y = 2898383.44.
The same point has in Qgis the coordinates in map units (meters) x = 
-1940424.5898 and y = 3192159.87877.

I looked in qgsmaptopixel.cpp how the mouse position coordinate is transformed 
to world map units coordinate and I have found this:
mx = x * mMapUnitsPerPixel + xMin
my = -1 * ((y – yMax) * mMapUnitsPerPixel – Ymin)

I have displayed the transformation parameters in Qgis using showParameters 
function and I got:
Map units/pixel: 6130.91 center: -337918, 1.36002e+06 rotation: 0, size: 
1493x974
So it looks a pixel has 6130.91 meters.
Map center is located at -337918, 1.36002e+06 (probably meters)
I can’t figure out the value for xMax, xMin , yMax, yMin.

Can somebody explain me why coordinates in map units read by Qgis are different 
than those read by ArcInfo?
How can I make the two coordinates to be the same?
Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qGIS crashes when working on rasters

2016-09-16 Per discussione Tudorache, Marian
Hi everyone,

I am not sure if this issue was solved but QGIS has a rendering setting which 
allows allow using multiple CPU cores.
I experienced those inexplicable crashes with QGIS 2.10 (Pisa).
After I activated the setting Render layers in parallel using many CPU cores 
and put max cores at 8, everything was fine.
The setting can be found in Settings/Options / Rendering.

So if you have multicore machine takes advantage of this.

I hope this helps.
Marian

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of pzab
Sent: September-09-16 3:43 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] qGIS crashes when working on rasters



Hello,

I am new user here and I would like to ask You for a solution concerning my 
problem.

So...

I downloaded and installed qGIS 2.14.6 LTR. I tried to follow this tutorial 
http://www.qgistutorials.com/en/docs/working_with_terrain.html.

I got the raster, added it to my new project and when I insert the coords for 
Mt. Everest and change a scale I got the message qgis-ltr-bin stopped working. 
And it automatically closed qgis windows. I restarted my computer and try it 
again...and I got the same message.

What can be the issue of this problem?

Thank You very much in advance for helping me out.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/qGIS-crashes-when-working-on-rasters-tp5285026.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Define custom projections using a script

2016-07-15 Per discussione Tudorache, Marian
Anybody could help me with this?

Thanks,
Marian

From: Tudorache, Marian
Sent: July-13-16 12:21 PM
To: qgis-user@lists.osgeo.org
Subject: Define custom projections using a script

Hi everyone,


I have a big list with custom projections that have to be added in QGIS.
I know how to do this using Custom CRS from Setting menu. However it would be a 
time consuming job to add them one by one but then I have to distribute them to 
around 50 computers.
In time these projections will be updated with new parameter values. No need to 
explain how long job will be if this is done manually.

I am looking to a possible file in QGIS where those custom projections are 
store so I can modify it using a python script.
Can someone tell me how and where those projections are stored in QGIS?

Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Define custom projections using a script

2016-07-13 Per discussione Tudorache, Marian
Hi everyone,


I have a big list with custom projections that have to be added in QGIS.
I know how to do this using Custom CRS from Setting menu. However it would be a 
time consuming job to add them one by one but then I have to distribute them to 
around 50 computers.
In time these projections will be updated with new parameter values. No need to 
explain how long job will be if this is done manually.

I am looking to a possible file in QGIS where those custom projections are 
store so I can modify it using a python script.
Can someone tell me how and where those projections are stored in QGIS?

Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS 2.14 Essen for Censtos has several errors

2016-06-30 Per discussione Tudorache, Marian
Hi everyone,

I have finished the installation of QGIS 2.14 on Centos 7.
For example a lot of ui files uses QWebView which I have to replace with 
QTextBrowser.
Here is the list with errors:


1.  vector.py from /usr/share/qgis/python/plugins/processing/tools.

a.  Fails at the line import spatialite_utils because spatialite_utils;

b.  Since I do not use spatialite I decided to comment out the line;

2.  DlgResults.ui, DlgHelpEdition.ui, DlgAlgorithmBase.ui, 
DlgGetScriptsAndModels.ui contains QWebView but when these are loaded an error 
pops up: ImportError: No module named QtWebKit.QWebView.

a.  I have found two possible solutions to fix this:

i. Replace the QWebView 
with QTextBrowser in ui file;

   ii. Find the python file 
responsible with loading of each ui file and introduce the import statement:

From PyQt4.QtWebKit import QWebView

For example for DlgResults.ui file I have to modify the file ResultsDialog.py

I implemented the first fix

b.  In the file ModelerParametersDialog.py I have added from PyQt4.QtGui import 
QTextBrowser as QWebView

 i.   I think you do not have to add this line if you 
implement the second fix from a)


3.  ImportError: No module named Qsci.qsciscintilla on the file 
ui_console_compile_apis.py.

a.  I had to replace the statement from Qsci.qsciscintilla import QsciScintilla 
with from PyQt4.Qsci import QsciScintilla

Please let me know if you have any question.

Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Changing the language in QGIS

2016-05-13 Per discussione Tudorache, Marian
Hi again,

I have found it. It is QGIS2.conf file .

Marian

From: Tudorache, Marian
Sent: May-13-16 2:05 PM
To: qgis-user@lists.osgeo.org
Subject: Changing the language in QGIS


Hi everyone,

I switch my QGIS to use French by Overriding system locale.

Can somebody tell me in which file is store the chosen language?



Thanks,

Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Changing the language in QGIS

2016-05-13 Per discussione Tudorache, Marian
Hi everyone,

I switch my QGIS to use French by Overriding system locale.

Can somebody tell me in which file is store the chosen language?



Thanks,

Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Trigger actions of CADDigitize plugin from pyqgis

2016-05-10 Per discussione Tudorache, Marian
Hi,

Any news about the new reease of CADDigitize?

Thanks,
Marian

From: lb [mailto:co...@tuxfamily.org]
Sent: April-15-16 3:11 AM
To: Tudorache, Marian; qgis-user@lists.osgeo.org
Subject: Re: Trigger actions of CADDigitize plugin from pyqgis

Hi Marian,

Just wait some days, I will release the next version (0.2.0) of CADDigitize. I 
partially rewrite it from scratch.
You can see the repo here: https://gitlab.com/lbartoletti/CADDigitize/

Regards.
On 14.04.2016 15:26, Tudorache, Marian wrote:
Hi everyone,

I have a question about how to use CADDigitize plugin from pyqgis.

1.  I would like to get the active instance of this plugin from 
QgisInterface (iface). I understand when the plugin is installed there is a 
reference of this plugin recorded here (iface).
Is it possible to do this?

Thanks,
Marian

From: 
qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org> 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of lb
Sent: September-20-15 2:25 AM
To: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: Re: [Qgis-user] About QgsGeometry::buffer

Hi,

Buffer require some parameter since you can choose the "style" of buffer. You 
have some example on PostGis documentation (parameters are the same)
http://postgis.net/docs/ST_Buffer.html

QGis define this parameters in Settings->Options->Digitizing->Curve offset tool.

You can get this parameters via QSettings :
join = QSettings().value("Qgis/digitizing/offset_join_style", 0, type=int)
quad = QSettings().value("Qgis/digitizing/offset_quad_seg", 8, type=int)
endCap = quad
miter = QSettings().value("Qgis/digitizing/offset_miter_limit", 5, type=int)

Regards

l.bartoletti
Le 18/09/2015 23:12, Tudorache, Marian a écrit :
Hi everyone,

I would like to find more details about QgsGeometry::buffer with more styles.

In QGIS API Documentation there are two version of the buffer:
Simple version with distance and segments and with sytles.

The one with styles is defines as: ( distance, segments, endCapStyle, 
joinStyle, mitreLimit );

I do not understand the followings parameters:

endCapStyle: Round (1) / Flat (2) / Square (3) end cap style
joinStyle: Round (1) / Mitre (2) / Bevel (3) join style
mitreLimit: Limit on the mitre ratio used for very sharp corners

Does someone has some examples or recommend a book where to find more details 
please?
The QGIS API Documentation does not give me too much.


Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.




___

Qgis-user mailing list

Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/qgis-user


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

Re: [Qgis-user] Controll QGIS installation

2016-05-06 Per discussione Tudorache, Marian
Hi Richard,

Thank you for you answer.
QGIS works fine on Centos 7. I am not looking to change the OS.

I am investigating if the rpms can be installed in a directory that I can 
choose.
I have run Linux command:
rpm -qpi filename.rpm | grep Relocations for each qgis rpm and all are not 
relocatable. So it seems this is not possible.

It would be nice if you can package all 59 rpms to installed in a location at 
user choice.

Thank you,
Marian


From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Richard 
McDonnell
Sent: May-06-16 10:31 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Controll QGIS installation

Hi Marian,
This suggestion might be not be quite what you are looking for, but have you 
looked at

http://live.osgeo.org/en/index.html

Its a Linux Disto with pretty much everything needed, based off Lubuntu, it 
should be easy to keep everything up to date also!

Just a suggestion!

Regards,

Richard.
On 06/05/2016 15:18, Tudorache, Marian wrote:
Hi,

I have QGIS 2.10 on Centos 7.
In order to install it I have used:
yum -y install qgis qgis-grass qgis-python
It looks like qgis was installed all over the places.

Is it possible to control the installation to have all necessary files in one 
place?

Thank kyou,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.




___

Qgis-user mailing list

Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>

List info: http://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

--
Richard McDonnell
GIS Specialist PgD GIS AssocSCSI
OPW FRM Data Management
52 Stephens Green, Dublin 2.
TEL: 01 6476543
OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart
OPW - Looking to the future - Caring for the past
[http://www.opw.ie/en/media/opw-email-banner.png]<http://www.opw.ie/>
Email Disclaimer: http://www.opw.ie/en/disclaimer/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Controll QGIS installation

2016-05-06 Per discussione Tudorache, Marian
Hi,

I have QGIS 2.10 on Centos 7.
In order to install it I have used:
yum -y install qgis qgis-grass qgis-python
It looks like qgis was installed all over the places.

Is it possible to control the installation to have all necessary files in one 
place?

Thank kyou,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Plugin Building

2016-05-02 Per discussione Tudorache, Marian
Hi Tyler,
Yes I did but I need the whole error stack message.
Can you paste in your email the whole error stack?

In that message it is the answer.

Marian


From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Tyler 
Veinot
Sent: April-22-16 3:00 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Plugin Building

Hello All;
I am using QGIS 2.14.1 and am trying to build a python plugin using the plugin 
builder using this tutorial;
https://anitagraser.com/2014/04/26/getting-started-writing-qgis-2-x-plugins/
and the information here;
http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html#init-py

But when I complete the first few steps and get to installing the plugin to see 
a blank interface I get error when calling it's classfactory method in the 
utils.py and __init__.py and I am not sure what is causing this error. I think 
I must be missing some required modules or something. These scripts are 
generated by the plugin builder and are suppose to call up the basic qgis and 
qt functions to my understanding.
Has anyone ran into this before?
Thanks
Tyler



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Security warning: project macros have been disabled.

2016-04-18 Per discussione Tudorache, Marian
Yes I know but it does not work anymore. I have used this in QGIS 2.8

This is the script that I want to be executed in Open Project area

execfile(u'/opt/support_sw/current/spam/python/Controllers/spam_menu.py'.encode('UTF-8'))

The script does not start and I get this warning message: QGIS Security 
warning: project macros have been disabled.
I have the same script in 2.8 and it runs without any problem.

Let's rephrase my question. Is something new in QGIS 2.10 which broke this old 
functionality? Or should change the way how to call a script?


Thanks,
Marian

-Original Message-
From: Kai Borgolte [mailto:kai.borgo...@gmx.de]
Sent: April-16-16 3:06 AM
To: Tudorache, Marian; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Security warning: project macros have been 
disabled.

Am 15.04.2016 um 22:31 schrieb Tudorache, Marian:

> Is anything new in QGIS 2.10 which affects the macros launching?

In Settings, Options on the General tab there is the option "Enable macros". 
This is not new.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS Security warning: project macros have been disabled.

2016-04-15 Per discussione Tudorache, Marian
Hi,

I have tried to launch a python script when QGIS project is open.

Inside Project Properties/Macros I have included in th macros area

iface to access QGIS API interface or Type help(iface) for more info
def openProject():

execfile(u'/opt/support_sw/current/spam/python/Controllers/spam_menu.py'.encode('UTF-8'))
def saveProject():
pass

def closeProject():
pass

The script does not start and I get this warning message: QGIS Security 
warning: project macros have been disabled.
This used to work on QGIS 2.8.

Is anything new in QGIS 2.10 which affects the macros launching?

Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] CentOS or SuSE for QGIS?

2016-02-17 Per discussione Tudorache, Marian
I am not sure if you are still looking into this matter.

What about this? 
http://courses.neteler.org/qgis-2-10-rpms-for-fedora-21-centos-7-scientific-linux-7/


-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Evert 
Groenewald
Sent: January-17-16 2:39 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] CentOS or SuSE for QGIS?

Hi Andreas

On 13/01/2016 13:40, Andreas Neumann wrote:
> Hi,
>
> At my new workplace I have the choice of CentOS or SuSE as a Linux
> distribution. I would have chosen Debian or Ubuntu, personally, but
> the other two are my choice.
>
You can look at the link below, it might help.
I do not know what the situation is in the CentOS repositories. On openSuse 
this is the choices from the Geo repository. Though I see CentOS 6 is listed as 
well.
http://download.opensuse.org/repositories/Application:/Geo/

Evert

> Which one is better for QGIS and FOSSGIS in general? What do you
> recommend? Or are they equally well suited?
>
> I intend to build from Source.
>
> Thanks,
> Andreas
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

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

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] About QgsGeometry::buffer

2015-09-18 Per discussione Tudorache, Marian
Hi everyone,

I would like to find more details about QgsGeometry::buffer with more styles.

In QGIS API Documentation there are two version of the buffer:
Simple version with distance and segments and with sytles.

The one with styles is defines as: ( distance, segments, endCapStyle, 
joinStyle, mitreLimit );

I do not understand the followings parameters:

endCapStyle: Round (1) / Flat (2) / Square (3) end cap style
joinStyle: Round (1) / Mitre (2) / Bevel (3) join style
mitreLimit: Limit on the mitre ratio used for very sharp corners

Does someone has some examples or recommend a book where to find more details 
please?
The QGIS API Documentation does not give me too much.


Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?

2015-09-11 Per discussione Tudorache, Marian
Hi again,

I think I sent the code with a small bug.

Replace this  line:
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)

with

self.__transformation = qgis.core.QgsCoordinateTransform(self.__ crs , self.__ 
prs  )

let me know if it works.

Thanks,
Marian

From: Tudorache, Marian
Sent: September-11-15 5:32 PM
To: 'Alexandre Neto'; Pedro Venâncio
Cc: QGIS User
Subject: RE: [Qgis-user] Edit vertex using DMS coordinates Plugin?

Hi Alexandre,

It is actually not a plugin.
It is part of an application which launched aside of QGIS to help the users to 
draw airspaces.
Their requirements are to work on the projected coordinate system with the data 
stored in world coordinate system but when they add geometries they want to 
input points in DMS format.

I build a Widget GUI using QtDesigner (see the picture)

The user enters start point of the line as: DD MM SS.XXX H, DD MM SS.XXX L
Where:
DD - degrees
MM - minutes
SS - seconds
XXX - decimals for seconds
H - is the hemisphere N or S
L - is the W for West and E for East

Then the drawLine is called  and executes the drawing of the line.

If I have time I will make a plugin. You are welcome to do it if you have more 
time than me.

Thanks,
Marian


From: Alexandre Neto [mailto:senhor.n...@gmail.com]
Sent: September-11-15 3:58 PM
To: Tudorache, Marian; Pedro Venâncio
Cc: QGIS User
Subject: Re: [Qgis-user] Edit vertex using DMS coordinates Plugin?


Making a plugin might be an idea. Or some improve the numericalvertexedit and 
numerical digitize plugins.

I will have a look into all your code.

Meanwhile, what is the name of your plugin? It sound useful fot mem.

Thanks

A 19h34 Sex, 11 de Set de 2015, Tudorache, Marian 
<marian.tudora...@navcanada.ca<mailto:marian.tudora...@navcanada.ca>> escreveu:
Hi,

I am sorry to interfere in this thread but I think my findings will help you.
I also want to report a possible bug.

I have worked to a plugin which display the coordinate in DMS when the user 
execute a mouse left click on the map.
When the geometries are displayed on the projection, the conversion on the fly 
to DMS does not work properly.
To have properly displayed the coordinate in DMS or Decimal degree you need to 
re-project your data to a coordinate reference system (WGS84 or GRS80, or 
other).

For example:
If data is displayed in projection reference system (stereographic in my case) 
and data is stored in world coordinates system (X and Y).
X = -1081940.67048 and Y = 2561405.89514 will be displayed as 140040’13.726 W. 
There is not such latitude2561405053’42.489 N

This is the projection: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs


The conversion is done by the function toDegreesMinutesSeconds from QsgPoint 
class.
It looks the function is not able to do to re-projection back to the spheroid. 
I think this is a bug.

The function toDegreesMinutesSeconds works properly if it is applied to Decimal 
degree coordinate.

What to be done!
First you need to reproject your data by using QgsCoordinateTransform .
Ex.
crs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized coordinate 
reference system
prs = qgis.core.QgsCoordinateRefernceSystem(, qgis.core. 
QgsCoordinateRefernceSystem.InternalCrsId) # if you use a customized projected 
reference system
transformation = = qgis.core. QgsCoordinateTransform(crs, prs)

#transformation object is used to re-project your coordinates.
For example:
point = qgis.core.QgsPoint(X, Y) # X and Y are in world coordinate system meters
#apply transformation to reproject your point
reprojectedPoint = transformation.transform(point, 
QgsCoordinateTransform.ForwardTransform)
print reprojectedPoint #you will get the point in decimal degrees.
pointDMS = reprojectedPoint. toDegreesMinutesSeconds(3, True, True) #your will 
get the point in degrees minutes seconds with respect to crs

if you want to input DMS data then you have to do the same steps but in reverse:

1.   Convert DMS to decimal degrees;

2.   Apply QgsCoordinateTransform to decimal degrees so you get X and Y.

You can build a plugin based on this class. Check out the function drawLine 
where I input a lat and long in DMS format and write the line geometry in x/y 
format. If you have write your geometry in lat and long decimal degrees you do 
not have to apply QgsCoordinateTransform.

#spam_activate_map_background
import qgis
from PyQt4 import QtGui, QtCore


class LineGeometryDMSInput:
def __init__(self):
self.__prs  = qgis.core.QgsCoordinateReferenceSystem(16, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__crs = qgis.core.QgsCoordinateReferenceSystem(10, 
qgis.core.QgsCoordinateReferenceSystem.InternalCrsId)
self.__transformation = qgis.core.QgsCoordinateTransform(self.__ prs  , 
self.__ crs)


def drawLine(self, 

Re: [Qgis-user] Issues with QgsCoordinateTransform

2015-09-09 Per discussione Tudorache, Marian
Sorry the copy paste did not work well so I put the script uncleaned.
Here is the script again. The issue is the same: transformation from la/long to 
X / Y does not work.


 ##
import processing, sys, os, math, LatLon, pyproj from PyQt4 import QtCore 
crsScr  = QgsCoordinateReferenceSystem(16, 
QgsCoordinateReferenceSystem.InternalCrsId)
crsDest = QgsCoordinateReferenceSystem(10, 
QgsCoordinateReferenceSystem.InternalCrsId)
xform = QgsCoordinateTransform(crsScr, crsDest)

coord_start = '53 30 21.88 N, 114 25 15.88 W'
coord_end = '54 40 21.88 N, 115 30 15.88 W'
start_Point = coord_start.split(',')
end_Point = coord_end.split(',')
start_Line = LatLon.string2latlon(str(start_Point[0]).strip(), 
str(start_Point[1]).strip(), 'd% %m% %S% %H')
end_Line = LatLon.string2latlon(str(end_Point[0]).strip(), 
str(end_Point[1]).strip(), 'd% %m% %S% %H')
print "QgsPoint = ",QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1]))

line_start = QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1]))
line_end = QgsPoint(float(end_Line.to_string()[0]), 
float(end_Line.to_string()[1]))

pointGeomStart = QgsGeometry.fromPoint(line_start)
pointGeomEnd = QgsGeometry.fromPoint(line_end)

print "Geometry points Start = {0}, End = {1}".format(pointGeomStart.asPoint(), 
pointGeomEnd.asPoint())

print "QgsCoordinateTransform.ReverseTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ReverseTransform)
print "QgsCoordinateTransform.ForwardTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ForwardTransform)
#

The InternalCrsIdfor=16 is: +proj=longlat +datum=GRS80 +no_defs The 
InternalCrsIdfor=10 is: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs

I try to transform the coordinate '53 30 21.88 N, 114 25 15.88 W' and '54 40 
21.88 N, 115 30 15.88 W' from 16 to 10

This is the output
QgsPoint =  (53.5061,-114.421)
Geometry points Start = (53.5061,-114.421),

End = (54.6727,-115.504)

QgsCoordinateTransform.ReverseTransform =  (53.5061,-114.421)

QgsCoordinateTransform.ForwardTransform =  (53.5061,-114.421)


Basically there is no diference between ReverseTransform and ForwardTransform. 
I am expecting to get X=-2549670.6 and Y=678.9 or (-2549670.6,678.9) when I am 
doing forward transformation.


Any idea what is wrong?

Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Issues with QgsCoordinateTransform

2015-09-09 Per discussione Tudorache, Marian
Hi everyone,

I have this script and run on python console of QGIS 2.8
##
import processing, sys, os, math, LatLon, pyproj
from PyQt4 import QtCore
crsScr  = QgsCoordinateReferenceSystem(16, 
QgsCoordinateReferenceSystem.InternalCrsId)
crsDest = QgsCoordinateReferenceSystem(10, 
QgsCoordinateReferenceSystem.InternalCrsId)
xform = QgsCoordinateTransform(crsScr, crsDest)

coord_start = '53 30 21.88 N, 114 25 15.88 W'
coord_end = '54 40 21.88 N, 115 30 15.88 W'
start_Point = coord_start.split(',')
end_Point = coord_end.split(',')
#print "'"+str(start_Point[0]).strip()+"'", "'"+str(start_Point[1]).strip()+"'"

#start_Line = LatLon.string2latlon('53 30 21.88 N', '115 25 15.88 W', 'd% %m% 
%S% %H')
#print start_Line
start_Line = LatLon.string2latlon(str(start_Point[0]).strip(), 
str(start_Point[1]).strip(), 'd% %m% %S% %H')
end_Line = LatLon.string2latlon(str(end_Point[0]).strip(), 
str(end_Point[1]).strip(), 'd% %m% %S% %H')
print "QgsPoint = ",QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1]))


line_start = QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1]))
line_end = QgsPoint(float(end_Line.to_string()[0]), 
float(end_Line.to_string()[1]))
pointGeomStart = QgsGeometry.fromPoint(line_start)
pointGeomEnd = QgsGeometry.fromPoint(line_end)
print "Geometry points Start = {0}, End = {1}".format(pointGeomStart.asPoint(), 
pointGeomEnd.asPoint())
print "QgsCoordinateTransform.ReverseTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ReverseTransform)
print "QgsCoordinateTransform.ForwardTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ForwardTransform)
#

The InternalCrsIdfor=16 is: +proj=longlat +datum=GRS80 +no_defs
The InternalCrsIdfor=10 is: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 
+x_0=0 +y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs

I try to transform the coordinate '53 30 21.88 N, 114 25 15.88 W' and '54 40 
21.88 N, 115 30 15.88 W' from 16 to 10

This is the output
QgsPoint =  (53.5061,-114.421)
Geometry points Start = (53.5061,-114.421), End = (54.6727,-115.504)
QgsCoordinateTransform.ReverseTransform =  (53.5061,-114.421)
QgsCoordinateTransform.ForwardTransform =  (53.5061,-114.421)


Basically there is no diference between ReverseTransform and ForwardTransform. 
I am expecting to get X=-2549670.6 and Y=678.9 or (-2549670.6,678.9) when I am 
doing forward transformation.


Any idea what is wrong?

Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Issues with QgsCoordinateTransform - SOLVED

2015-09-09 Per discussione Tudorache, Marian
I think I figured out.
First mistake: replace datum with ellps so the InternalCrsIdfor=16 is: 
+proj=longlat +ellps=GRS80 +no_defs
Second Mistake:
Longitude that I use is 114 25 15.88 W'. Wrong. The longitude cannot be greater 
than 90 degree.
I changed the  longitude in range and it did work.

Any tip will be welcome.

Thanks,
Marian

-Original Message-
From: Tudorache, Marian
Sent: September-09-15 2:44 PM
To: 'qgis-user@lists.osgeo.org'
Subject: RE: Issues with QgsCoordinateTransform

Sorry the copy paste did not work well so I put the script uncleaned.
Here is the script again. The issue is the same: transformation from la/long to 
X / Y does not work.


 ##
import processing, sys, os, math, LatLon, pyproj from PyQt4 import QtCore 
crsScr  = QgsCoordinateReferenceSystem(16, 
QgsCoordinateReferenceSystem.InternalCrsId)
crsDest = QgsCoordinateReferenceSystem(10, 
QgsCoordinateReferenceSystem.InternalCrsId)
xform = QgsCoordinateTransform(crsScr, crsDest)

coord_start = '53 30 21.88 N, 114 25 15.88 W'
coord_end = '54 40 21.88 N, 115 30 15.88 W'
start_Point = coord_start.split(',')
end_Point = coord_end.split(',')
start_Line = LatLon.string2latlon(str(start_Point[0]).strip(), 
str(start_Point[1]).strip(), 'd% %m% %S% %H') end_Line = 
LatLon.string2latlon(str(end_Point[0]).strip(), str(end_Point[1]).strip(), 'd% 
%m% %S% %H') print "QgsPoint = ",QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1]))

line_start = QgsPoint(float(start_Line.to_string()[0]), 
float(start_Line.to_string()[1])) line_end = 
QgsPoint(float(end_Line.to_string()[0]), float(end_Line.to_string()[1]))

pointGeomStart = QgsGeometry.fromPoint(line_start) pointGeomEnd = 
QgsGeometry.fromPoint(line_end)

print "Geometry points Start = {0}, End = {1}".format(pointGeomStart.asPoint(), 
pointGeomEnd.asPoint())

print "QgsCoordinateTransform.ReverseTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ReverseTransform)
print "QgsCoordinateTransform.ForwardTransform = 
",xform.transform(pointGeomStart.asPoint(), 
QgsCoordinateTransform.ForwardTransform)
#

The InternalCrsIdfor=16 is: +proj=longlat +datum=GRS80 +no_defs The 
InternalCrsIdfor=10 is: +proj=sterea +lat_0=53.5 +lon_0=-76.0 +k=1 +x_0=0 
+y_0=0 +a=6381816.160744 +b=6381816.160744 +units=m +no_defs

I try to transform the coordinate '53 30 21.88 N, 114 25 15.88 W' and '54 40 
21.88 N, 115 30 15.88 W' from 16 to 10

This is the output
QgsPoint =  (53.5061,-114.421)
Geometry points Start = (53.5061,-114.421),

End = (54.6727,-115.504)

QgsCoordinateTransform.ReverseTransform =  (53.5061,-114.421)

QgsCoordinateTransform.ForwardTransform =  (53.5061,-114.421)


Basically there is no diference between ReverseTransform and ForwardTransform. 
I am expecting to get X=-2549670.6 and Y=678.9 or (-2549670.6,678.9) when I am 
doing forward transformation.


Any idea what is wrong?

Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Conversion from World to Geo coordinates

2015-08-12 Per discussione Tudorache, Marian
Hi Alex,

Thank you for your answer.
It seem to work. I was able to re-project the maps.

marian

-Original Message-
From: Alex Mandel [mailto:tech_...@wildintellect.com]
Sent: August-12-15 11:43 AM
To: Tudorache, Marian; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Conversion from World to Geo coordinates

On 08/11/2015 01:39 PM, Tudorache, Marian wrote:
 Hi everyone,

 I currently have some GIS data using the world format x and y where those 
 were obtained by approximate the Earth with a modified GRS80 datum where the 
 Semi-major axis = Semi-minor axis = 6381711.641389.
 I would like to know if there is a plugin in QGIS which can convert 
 automatically back to lat and long of any standard or custom datum.

 Thank you,
 Marian


You can define custom projections in the Settings. Then any tools such as 
reprojection/Save as can be used to convert it to any other projection.

-Alex


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Conversion from World to Geo coordinates

2015-08-11 Per discussione Tudorache, Marian
Hi everyone,

I currently have some GIS data using the world format x and y where those were 
obtained by approximate the Earth with a modified GRS80 datum where the 
Semi-major axis = Semi-minor axis = 6381711.641389.
I would like to know if there is a plugin in QGIS which can convert 
automatically back to lat and long of any standard or custom datum.

Thank you,
Marian




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Small bug with Create Layer / New Shape layer

2015-07-09 Per discussione Tudorache, Marian
Hi,

I am using QGIS 2.8 on Linux RedHat 7.
When I create a new layer using Create Layer / New Shape Layer the Save As 
Layer window open behind the QGIS main windows.
It took me a while to figure out this.
SO in order to save the Shape Layer I have to minimize or move the QGIS main 
window so I can access the Save As window.

Thank you,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Fixing Processing and Pluging Builder in QGIS 2.8 for Red Hat Linux 7

2015-07-03 Per discussione Tudorache, Marian
For whom may be concern,

A while ago I have sent an email that I got an error when I tried to install 
Plugin Builder plugin.
It was about the module QtWebKit.QWebView module.

I open the Python console from QGIS and I have done
from PyQt4. QtWebKit import QWebView
and it does work, therefore QWebView exists and it works.

Gary Sherman told me to remove from results_dialog_base.ui

customwidgets

 customwidget

  classQWebView/class

  extendsQWidget/extends

  headerQtWebKitWidgets/QWebView/header

 /customwidget

/customwidgets

I have done this but it is not the only ui file with the issue.
I have found the same issue on the followings files as well:

DlgHelpEdition.ui
DlgAlgorithmbase.ui
DlgGetScriptsAndModels.ui

I had to remove the same lines from the each above files to make those plugins 
workable.

I have some tests and it seems everything OK.

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Open ArcInfo Binary Coverage in QGIS

2015-06-29 Per discussione Tudorache, Marian
Hi,

I am trying to read some ArcInfo Binary coverage using OGR.
The code is:

import osgeo.ogr, osgeo.
import ogr

layer = iface.addVectorLayer(/sadb, arc.adf, ogr)

After the code is executed the system open a dialog window and it asks to 
select the vector layer to add and I do not want.
[cid:image001.png@01D0B268.39448880]http://media.getspatial.com/wordpress/qgis_dialog_addvector_arcinfo_layers.png

I am interested to add only arc.adf not the others using a python command line.

How can I suppress this window?

I tried various versions like:
layer = iface.addVectorLayer(/sadb/arc.adf, , ogr)
layer = iface.addVectorLayer((/sadb/arc.adf, arc.adf, ogr)
layer = iface.addVectorLayer(/sadb|arc.adf, arc.adf, ogr)

Non of them subpress the dialog Select vector layer to add...

Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Open ArcInfo Binary Coverage in QGIS

2015-06-29 Per discussione Tudorache, Marian
Hi everyone,

I figured out
The syntax is:

layer = iface.addVectorLayer(/sadb|layername= arc.adf, arc.adf, ogr)

Thanks,
Marian

From: Tudorache, Marian
Sent: June-29-15 12:41 PM
To: ottawa_us...@lists.osgeo.org; qgis-user@lists.osgeo.org
Subject: Open ArcInfo Binary Coverage in QGIS

Hi,

I am trying to read some ArcInfo Binary coverage using OGR.
The code is:

import osgeo.ogr, osgeo.
import ogr

layer = iface.addVectorLayer(/sadb, arc.adf, ogr)

After the code is executed the system open a dialog window and it asks to 
select the vector layer to add and I do not want.
[cid:image001.png@01D0B29A.45A3E120]http://media.getspatial.com/wordpress/qgis_dialog_addvector_arcinfo_layers.png

I am interested to add only arc.adf not the others using a python command line.

How can I suppress this window?

I tried various versions like:
layer = iface.addVectorLayer(/sadb/arc.adf, , ogr)
layer = iface.addVectorLayer((/sadb/arc.adf, arc.adf, ogr)
layer = iface.addVectorLayer(/sadb|arc.adf, arc.adf, ogr)

Non of them subpress the dialog Select vector layer to add...

Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

2015-06-26 Per discussione Tudorache, Marian
Hi Andreas,

Do you still follows this thread?
I have tested the oracle client on my machine and it does work.
I am able to connect to Oracle from a terminal windows using either isql or 
sqlplus.

One thing that I found and it is related to Red Hat. 
When I tested the if all dependencies are working for libsqora.so.11.1 running 
the command bellow
ldd /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1

I got libodbcinst.so.1 = not found

I have fixed this issue by creating a symbolic link from 
/usr/lib64/libodbcinst.so.1 to /usr/lib64/libodbcinst.so.2.
This fix made the unixODBC workable from a terminal windows and other 
applications which use ODBC connectivity but QGIS still does not have Oracle 
connectivity icon and it is not able to create an Oracle connection.

Is this a QGIS bug?

Thanks,
Marian

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Andreas Neumann
Sent: June-18-15 4:53 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

Hi Marian,

Do you already have an Oracle client on this machine? Note that QGIS on Linux 
does not provide an Oracle client like it does on the Windows version. You 
would have to install the Oracle client yourself and make sure it is in the 
LIBRARY Path and that ORACLE_HOME is defined and the name resolution 
(tnsnames.ora or similar mechanisms) work fine.

Have a look at the Oracle documentation on how to install the Oracle client on 
Linux. I think the instant client is enough - you don't need the full client.

Andreas

On 18.06.2015 22:13, Tudorache, Marian wrote:
 Hi,

 I have installed the latest QGIS 2.8 Wien on Linux Red Hat 7 and I do not see 
 the Oracle Connectivity icon in.
 I have MSSQL, SpatialLite, PostGIS, OWS, WCS, WFS, WMS.

 I sued to have it on Windows version of QGIS.

 Can someone help me how to install it?

 Thanks,
 Marian

 This electronic message, as well as any transmitted files included in the 
 electronic message, may contain privileged or confidential information and is 
 intended solely for the use of the individual(s) or entity to which it is 
 addressed. If you have received this electronic message in error please 
 notify the sender immediately and delete the electronic message. Any 
 unauthorized copying, disclosure or distribution of the electronic message is 
 strictly forbidden. NAV CANADA accepts no liability for any damage caused by 
 any virus and/or other malicious code transmitted by this electronic 
 communication.

 Le présent message électronique et tout fichier qui peut y être joint peuvent 
 contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
 exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
 reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
 immédiatement et supprimez le. Toute reproduction, divulgation ou 
 distribution du présent message électronique est strictement interdite. NAV 
 CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus 
 ou autre programme malveillant transmis par ce message électronique.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

Re: [Qgis-user] Not able to connect to Oracle via ODBC

2015-06-26 Per discussione Tudorache, Marian
Hi Stefan,

Thank you for your answer.
Initially the issue was somewhere between Linux Red Hat 7 and QGIS because the 
same error was when I tried to connect to Oracle using isql.

The reason fro this issue was a known Red hat issue.
Let me explain:
Oracle ODBC driver is libsqora.so.11.1. This file exists in my system under 
/usr/lib/oracle/11.2/client64/lib/.
I have run on a terminal ldd command like bellow.
ldd /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1

In one of the result line was: libodbcinst.so.1 = not found.

So I have created a symbolic link from /usr/lib64/libodbcinst.so.1 to 
/usr/lib64/libodbcinst.so.2.

This fix made my Oracle client workable from isql and sqlplus.

But QGIS still not able to add Oracle layer because the icon does not exists in 
QGIS Browser and ODBC still has the error:
Connection failed - Check settings and try again

Extended error information:
Unable to initialize ODBC connection to DSN for USER/PASS@CAAR,
[unixODBC][Driver Manager] Datasource name not found, and no default driver 
specified

So right now someone who knows the QGIS code should see why Oracle connectivity 
icon does not exist in QGIS 2.8.2 Linux Red Hat and why ODBC does not work when 
it tries to connect to Oracle.

Thanks,
Marian

From: Blumentrath, Stefan [mailto:stefan.blumentr...@nina.no]
Sent: June-26-15 3:20 AM
To: Tudorache, Marian; qgis-user@lists.osgeo.org; ottawa_us...@lists.osgeo.org
Subject: RE: Not able to connect to Oracle via ODBC

I had a similar issue with unixODBC and MS SQL.
If I am not mistaken, the «host parameter overrides the «Provider/DSN» 
parameter. It does so for MS SQL, at least.
For MS SQL it helped to leave the host parameter empty and only use 
Provider/DSN.

However, there does not seem to be a Provider/DSN parameter for neither Add 
Oracle Spatial Layer nor ODBC, ...

A Bug?

Cheers
Stefan

From: 
qgis-user-boun...@lists.osgeo.orgmailto:qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Tudorache, Marian
Sent: 25. juni 2015 23:04
To: qgis-user@lists.osgeo.orgmailto:qgis-user@lists.osgeo.org; 
ottawa_us...@lists.osgeo.orgmailto:ottawa_us...@lists.osgeo.org
Subject: [Qgis-user] Not able to connect to Oracle via ODBC

Hello,

What I am trying to do: Add a vector layer from an remote Oracle database.

Description:
I tried to add a vector layer using ODBC connectivity to an Oracle database on 
QGIS 2.8.2.
Add vector Layer
Choose Database
Type ODBC
Click New
I filled the form as:
Type ODBC
Name: myODBCConnection
Host: ssfdata
Database: CAAR
Port: 1521
Username: USER
Password: PASS

When I clicked Test Connection I got:
Connection failed - Check settings and try again

Extended error information:
Unable to initialize ODBC connection to DSN for USER/PASS@CAAR,
[unixODBC][Driver Manager] Datasource name not found, and no default driver 
specified

I opened a terminal window and I typed:
Isql -v caarODBC
I was able to connect to my database
++
| Connected|
|  |
| sql -statement |
| help [tablename] |
| quit   |
++
SQL

So the unixODBC driver works for the database but QGIS is not able to access 
via ODBC.

Is any special settings related qgis to make ODBC working?

Thanks,
marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l'usage 
exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l'expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

2015-06-26 Per discussione Tudorache, Marian
Hi Jürgen/Andreas,

I think you misunderstood my issue.
First let's be clear.
There is no issue with Oracle connectivity from Linux.
The oracle client runs properly and I am able to access oracle database using 
wither sqlplus or SQL developer interface.


The issue is when I am trying to add a vector layer using SDO data from an 
Oracle spatial database: there is not Oracle connectivity icon on QGIS under 
Linux Red Hat.
I only have connectivity to the fowling database types:
- MSSQL;
- OGDI Vectors;
- PostGIS;
- SpatiaLite;

As alternative way I have tried Add Vector Layer/Source Type Database.
On the database type the dropdown list gave those options:

- ODBC;
- ESRI Personal Geodatabase;
- MSSQL;
- OGDI Vectors;
- PostgreSQL;
- MySQL

So again no Oracle option.

But I said let's try ODBC to see if I can use it to pull Oracle spatial data. 
So this option does not work either.

I have tried to use GDAL/OGR's OCI driver so I had a look here: 
http://www.gdal.org/index.html I have installed but how can be used?

The only clear document is this: 
http://www.igismap.com/connect-qgis-oracle-spatial-quantum-gis/
But since I do not have Oracle spatial as the tutorial says I can't use it.

Do you know where I have learn how to connect to oracle using GDAL/OGR?

Thanks,
Marian





When I tested QGIS on Windows 7 there is an Oracle connectivity icon that I was 
able to use it without problem.
But our requirements were to use QGIS 2.8 on Linux Red Hat with Oracle spatial.

After I installed QGIS on red hat I observed there is not Oracle connectivity 
on QGIS as in the windows version.
I have sent an email about this issue a while ago.

Andreas thought the issue is because I do not have installed Oracle Client.

But the this wasn't the issue because I had oracle client installed on the 
Linux machine

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Jürgen E. Fischer
Sent: June-26-15 11:26 AM
To: qgis-user@lists.osgeo.org; ottawa_us...@lists.osgeo.org
Subject: Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

Hi Marian,

On Fri, 26. Jun 2015 at 09:55:47 -0400, Tudorache, Marian wrote:
 Do you still follows this thread?
 I have tested the oracle client on my machine and it does work.
 I am able to connect to Oracle from a terminal windows using either isql or 
 sqlplus.

Are you aware there is a oracle provider in QGIS.  You don't have to use the 
OGR provider to access oracle (same as with postgres and mssql).

I've never used Oracle via ODBC on Linux.  From qgis I use the native oracle 
provider and from the command line GDAL/OGR's OCI driver.


Jürgen

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

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Not able to connect to Oracle via ODBC

2015-06-25 Per discussione Tudorache, Marian
Hello,

What I am trying to do: Add a vector layer from an remote Oracle database.

Description:
I tried to add a vector layer using ODBC connectivity to an Oracle database on 
QGIS 2.8.2.
Add vector Layer
Choose Database
Type ODBC
Click New
I filled the form as:
Type ODBC
Name: myODBCConnection
Host: ssfdata
Database: CAAR
Port: 1521
Username: USER
Password: PASS

When I clicked Test Connection I got:
Connection failed - Check settings and try again

Extended error information:
Unable to initialize ODBC connection to DSN for USER/PASS@CAAR,
[unixODBC][Driver Manager] Datasource name not found, and no default driver 
specified

I opened a terminal window and I typed:
Isql -v caarODBC
I was able to connect to my database
++
| Connected|
|  |
| sql -statement |
| help [tablename] |
| quit   |
++
SQL

So the unixODBC driver works for the database but QGIS is not able to access 
via ODBC.

Is any special settings related qgis to make ODBC working?

Thanks,
marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Error loading plugin QspatialLite

2015-06-19 Per discussione Tudorache, Marian
Hi,

I have tried to load QSpatialLite plugin and I got an error.:
The plugin seems to be invalid or have unfulfilled dependencies. It has been 
installed, but can't be loaded.
The message says if I need this plugin contact the author or Qgis user group.
Later the message says: No module name pyspatialite.

Does someone has this experience?

Thanks,
Marian


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

2015-06-18 Per discussione Tudorache, Marian
Hi,

I have installed the latest QGIS 2.8 Wien on Linux Red Hat 7 and I do not see 
the Oracle Connectivity icon in.
I have MSSQL, SpatialLite, PostGIS, OWS, WCS, WFS, WMS.

I sued to have it on Windows version of QGIS.

Can someone help me how to install it?

Thanks,
Marian

This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

2015-06-18 Per discussione Tudorache, Marian
Hi Andreas,

Yes I have installed Oracle Client and SQL Developer.
I am able to create a connection via SQL Developer and it works fine.
That I knew as well so I was very surprised to see the Oracle connectivity icon 
is not there.

What else can I check?

Thanks,
marian

-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Andreas Neumann
Sent: June-18-15 4:53 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

Hi Marian,

Do you already have an Oracle client on this machine? Note that QGIS on Linux 
does not provide an Oracle client like it does on the Windows version. You 
would have to install the Oracle client yourself and make sure it is in the 
LIBRARY Path and that ORACLE_HOME is defined and the name resolution 
(tnsnames.ora or similar mechanisms) work fine.

Have a look at the Oracle documentation on how to install the Oracle client on 
Linux. I think the instant client is enough - you don't need the full client.

Andreas

On 18.06.2015 22:13, Tudorache, Marian wrote:
 Hi,

 I have installed the latest QGIS 2.8 Wien on Linux Red Hat 7 and I do not see 
 the Oracle Connectivity icon in.
 I have MSSQL, SpatialLite, PostGIS, OWS, WCS, WFS, WMS.

 I sued to have it on Windows version of QGIS.

 Can someone help me how to install it?

 Thanks,
 Marian

 This electronic message, as well as any transmitted files included in the 
 electronic message, may contain privileged or confidential information and is 
 intended solely for the use of the individual(s) or entity to which it is 
 addressed. If you have received this electronic message in error please 
 notify the sender immediately and delete the electronic message. Any 
 unauthorized copying, disclosure or distribution of the electronic message is 
 strictly forbidden. NAV CANADA accepts no liability for any damage caused by 
 any virus and/or other malicious code transmitted by this electronic 
 communication.

 Le présent message électronique et tout fichier qui peut y être joint peuvent 
 contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
 exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
 reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
 immédiatement et supprimez le. Toute reproduction, divulgation ou 
 distribution du présent message électronique est strictement interdite. NAV 
 CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus 
 ou autre programme malveillant transmis par ce message électronique.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

2015-06-18 Per discussione Tudorache, Marian

I have echoed ORACLE_HOME and I got /usr/lib/oracle/11.2/client64/lib.
I have echoed LD_LIBRARY_PATH and I got nothing.


-Original Message-
From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Andreas Neumann
Sent: June-18-15 4:53 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Missing Oracle connectivity on QGIS Browser

Hi Marian,

Do you already have an Oracle client on this machine? Note that QGIS on Linux 
does not provide an Oracle client like it does on the Windows version. You 
would have to install the Oracle client yourself and make sure it is in the 
LIBRARY Path and that ORACLE_HOME is defined and the name resolution 
(tnsnames.ora or similar mechanisms) work fine.

Have a look at the Oracle documentation on how to install the Oracle client on 
Linux. I think the instant client is enough - you don't need the full client.

Andreas

On 18.06.2015 22:13, Tudorache, Marian wrote:
 Hi,

 I have installed the latest QGIS 2.8 Wien on Linux Red Hat 7 and I do not see 
 the Oracle Connectivity icon in.
 I have MSSQL, SpatialLite, PostGIS, OWS, WCS, WFS, WMS.

 I sued to have it on Windows version of QGIS.

 Can someone help me how to install it?

 Thanks,
 Marian

 This electronic message, as well as any transmitted files included in the 
 electronic message, may contain privileged or confidential information and is 
 intended solely for the use of the individual(s) or entity to which it is 
 addressed. If you have received this electronic message in error please 
 notify the sender immediately and delete the electronic message. Any 
 unauthorized copying, disclosure or distribution of the electronic message is 
 strictly forbidden. NAV CANADA accepts no liability for any damage caused by 
 any virus and/or other malicious code transmitted by this electronic 
 communication.

 Le présent message électronique et tout fichier qui peut y être joint peuvent 
 contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
 exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
 reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
 immédiatement et supprimez le. Toute reproduction, divulgation ou 
 distribution du présent message électronique est strictement interdite. NAV 
 CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus 
 ou autre programme malveillant transmis par ce message électronique.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

Re: [Qgis-user] Issue with QGIS code responsabile of launching plugins and launching Python console

2015-06-17 Per discussione Tudorache, Marian
Hi again,
I have sent an email which was rejected because of the size. I removed the 
attachments and send it back.
Please let me know if you need that attachments.

Thank you,
Marian


From: Tudorache, Marian
Sent: June-17-15 1:38 PM
To: qgis-user@lists.osgeo.org
Cc: Dave Johansen (davejohan...@gmail.com); Kluew, Vlad
Subject: Issue with QGIS code responsabile of launching plugins and launching 
Python console

Hi everyone,


I just want to mention the community group that I had to do some changes to 5 
python scripts from QGIS.

Problem Definition:
When QGIS 2.8 Wien was launched on Red Hat 7 a Python Error popup window shows 
up.
I had attach the screenshot ErrorLaunch.png and Error.txt with the complete 
error message.
Hitting Close allows QGIS to start and it seems the main features of the 
application were affected except Python Console and Plugins.
When I tried to activate Python console I got another  error (see 
ErroLaunchPython.png). The same error was when I tried to launch any Plugin.


Initially I thought the issue is from an installation mistake but I was wrong. 
In reality was some problematic python code.

The script: ui_console_compile_apis.py had at the end an import statement like 
this: from Qsci.qscisciscintilla import QsciScintilla.

I checked with PyQt4 and I found that QsciScintilla is part of PyQt4.Qsci there 
is no qscisciscintilla class inside Qsci. So I replaced the importing statement 
with from PtQt4. Qsci import QsciScintilla.



The scripts: ui_DlgGetScriptsAndModels.py, ui_DlgHelpEdition.py, 
ui_DlgAlgorithmBase.py, ui_DlgResults.py had at the end an import statement 
like this: from QtWebKit.QtWebView import QWebView.

I checked with PyQt4 and I found that QWebView is part of PyQt4. QtWebKit. So I 
replaced the importing statement with PtQt4.QtWebKit import QWebView.



I recompiled those files and replace them in QGIS application and the errors 
were gone. Now I am able to use QGIS, Python and all plugins without any 
problem.



So I would like to advise me what is the procedure if I had to change QGIS 
source code.



NB.
The source that I used to install QGIS and I found those issues is: 
FEDORA-EPEL-2015-6639

qgis-2.8.2-1.el7https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6639/qgis-2.8.2-1.el7?_csrf_token=e4be1107678b48ddd258829378af126dc23700a0

Fedora EPEL 
7https://admin.fedoraproject.org/updates/EPEL-7?_csrf_token=e4be1107678b48ddd258829378af126dc23700a0

.














Thanks,

Marian














This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent 
contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage 
exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez 
re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur 
imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution 
du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume 
aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme 
malveillant transmis par ce message ?lectronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-16 Per discussione Tudorache, Marian
Hi Dave,

I was looking into this new python-OWSLib and I ended up with the same cyclic  
dependency around phonon-4.6.0-9.el7.x86_64.rpm and also there is dependency on 
python-requests that wasn’t before.
Is it OK to replace with phonon-4.7.1-1..ram0.99.x86_64.rpm?

By the way I am looking to get some assistance to install the application in 
Linux.
I am in Ottawa.

Thanks,
Marian

From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-15-15 1:20 PM
To: Tudorache, Marian
Cc: rich...@duif.net; Matthias Kuhn; Alex Mandel; Angelos Tzotsos; 
qgis-user@lists.osgeo.org
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Mon, Jun 15, 2015 at 10:07 AM, Tudorache, Marian 
marian.tudora...@navcanada.camailto:marian.tudora...@navcanada.ca wrote:
Hi again,

I forgot to mention what work around I did to solve the circular dependency.
I replaced the package phonon-4.6.0-9.el7.x86_64.rpm with 
phonon-4.7.1-1..ram0.99.x86_64.rpm.
Doing this I was able to install PyQt4-4.10.1-13.el7.x86_64.rpm

https://admin.fedoraproject.org/updates/python-OWSLib-0.9.0-1.el7
python-OWSLib has been submitted to the testing repo for EPEL 7 and should be 
available later today.

phonon 4.6.0 is the version that comes with RHEL/CentOS so I'm guessing that 
you have some 3rd party repos and/or packages installed and that is the real 
source of the issue that you're running into. If you can reproduce this issue 
with just the RHEL/CentOS and EPEL repos, then please let me know.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-16 Per discussione Tudorache, Marian
Thank you Dave,

I am looking forward for those tutorials.
When can you send me those links?

Thanks

From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-15-15 8:00 PM
To: Tudorache, Marian
Cc: rich...@duif.net; Matthias Kuhn; Alex Mandel; Angelos Tzotsos; 
qgis-user@lists.osgeo.org
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Mon, Jun 15, 2015 at 1:57 PM, Tudorache, Marian 
marian.tudora...@navcanada.camailto:marian.tudora...@navcanada.ca wrote:
Hi Dave,

Thank you for your answer.
I was looking in this repository: 
http://koji.fedoraproject.org/koji/packageinfo?packageID=4717.
There are several builds. Which one should I test when the new python-OWSLib 
will be available.

By the way where I can find some instruction of how to install it.
The way that I did (and I am not sure is right).
I downloaded from http://koji.fedoraproject.org/koji/buildinfo?buildID=644614 
the followings:
qgis-2.8.2-1.el7.x86_64.rpm;
qgis-devel-2.8.2-1.el7.x86_64.rpm;
qgis-grass-2.8.2-1.el7.x86_64.rpm;
qgis-python-2.8.2-1.el7.x86_64.rpm;
qgis-server-2.8.2-1.el7.x86_64.rpm;
qgis-debuginfo-2.8.2-1.el7.x86_64.rpm;

and I started with:
yum install qgis-2.8.2-1.el7.x86_64.rpm
I got a list of dependency then I started to search for an rpm which contain 
the dependency and so one and so for.
At some point I went into a cycle dependency which I thought I solve it but it 
did not work.

I will appreciate if you can advise me.

There are several helps/examples/tutorials online about how to install packages 
with yum, so I'll direct you to one of those.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-15 Per discussione Tudorache, Marian
Hi again,

I forgot to mention what work around I did to solve the circular dependency.
I replaced the package phonon-4.6.0-9.el7.x86_64.rpm with 
phonon-4.7.1-1..ram0.99.x86_64.rpm.
Doing this I was able to install PyQt4-4.10.1-13.el7.x86_64.rpm

Thanks,
Marian

From: Tudorache, Marian
Sent: June-15-15 12:51 PM
To: 'Dave Johansen'
Cc: rich...@duif.net; Matthias Kuhn; Alex Mandel; Angelos Tzotsos; 
qgis-user@lists.osgeo.org
Subject: RE: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

Thanks Dave,

I do not know if this helps but I think I found a circular dependency among 
some of the packages related to PyQt4.


1.   When I tried to install the package: PyQt4-4.10.1-13.el7.x86_64 I got 
an unsatisfied dependency on libphonon.so.4()(64bit)

2.   I have found libphonon.so.4()(64bit) on phonon-4.6.0-9.el7.x86_64.rpm.

3.   But phonon-4.6.0-9.el7.x86_64.rpm requires phonon-backend(x86-64) = 
4.4.

4.   I have found phonon-backend(x86-64) = 4.4 on 
phonon-backend-gstreamer-4.6.3-3.el7.x86_64.rpm.


5.   But phonon-backend-gstreamer-4.6.3-3.el7.x86_64.rpm requires 
libphonon.so.4()(64bit) and phonon(x86-64) = 4.6.0.


6.   Both libphonon.so.4()(64bit) and phonon(x86-64) = 4.6.0 exists in 
phonon-4.6.0-9.el7.x86_64.rpm

7.   So I am back at the step 3

Marian





From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-13-15 12:29 PM
To: Tudorache, Marian
Cc: rich...@duif.netmailto:rich...@duif.net; Matthias Kuhn; Alex Mandel; 
Angelos Tzotsos; qgis-user@lists.osgeo.orgmailto:qgis-user@lists.osgeo.org
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Fri, Jun 12, 2015 at 12:15 PM, Tudorache, Marian 
marian.tudora...@navcanada.camailto:marian.tudora...@navcanada.ca wrote:
Hi everyone,

I have tried to install QGIS 2.8.2 from the 
http://koji.fedoraproject.org/koji/taskinfo?taskID=9997800 and I got stuck with 
dependencies:

I started to look after rpm files where are those libraries and they are all 
over the place. I picked rpm.pbone.nethttp://rpm.pbone.net.
Initially everything was good until I reached some version conflicts like 
qt4-core. For this specific I have to choose among: 4.8.6-2, 4.8.5-8, 4.8.5-1 
etc.
Is any place where those dependencies are or should I continue googling foe 
each dependency?

https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6639/qgis-2.8.2-1.el7
There's a missing dependency in EPEL for python-OWSLib. I'll look into fixing 
that.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-15 Per discussione Tudorache, Marian
Thanks Dave,

I do not know if this helps but I think I found a circular dependency among 
some of the packages related to PyQt4.


1.   When I tried to install the package: PyQt4-4.10.1-13.el7.x86_64 I got 
an unsatisfied dependency on libphonon.so.4()(64bit)

2.   I have found libphonon.so.4()(64bit) on phonon-4.6.0-9.el7.x86_64.rpm.

3.   But phonon-4.6.0-9.el7.x86_64.rpm requires phonon-backend(x86-64) = 
4.4.

4.   I have found phonon-backend(x86-64) = 4.4 on 
phonon-backend-gstreamer-4.6.3-3.el7.x86_64.rpm.


5.   But phonon-backend-gstreamer-4.6.3-3.el7.x86_64.rpm requires 
libphonon.so.4()(64bit) and phonon(x86-64) = 4.6.0.


6.   Both libphonon.so.4()(64bit) and phonon(x86-64) = 4.6.0 exists in 
phonon-4.6.0-9.el7.x86_64.rpm

7.   So I am back at the step 3

Marian





From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-13-15 12:29 PM
To: Tudorache, Marian
Cc: rich...@duif.net; Matthias Kuhn; Alex Mandel; Angelos Tzotsos; 
qgis-user@lists.osgeo.org
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Fri, Jun 12, 2015 at 12:15 PM, Tudorache, Marian 
marian.tudora...@navcanada.camailto:marian.tudora...@navcanada.ca wrote:
Hi everyone,

I have tried to install QGIS 2.8.2 from the 
http://koji.fedoraproject.org/koji/taskinfo?taskID=9997800 and I got stuck with 
dependencies:

I started to look after rpm files where are those libraries and they are all 
over the place. I picked rpm.pbone.nethttp://rpm.pbone.net.
Initially everything was good until I reached some version conflicts like 
qt4-core. For this specific I have to choose among: 4.8.6-2, 4.8.5-8, 4.8.5-1 
etc.
Is any place where those dependencies are or should I continue googling foe 
each dependency?

https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6639/qgis-2.8.2-1.el7
There's a missing dependency in EPEL for python-OWSLib. I'll look into fixing 
that.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-15 Per discussione Tudorache, Marian
Hi Dave,

Thank you for your answer.
I was looking in this repository: 
http://koji.fedoraproject.org/koji/packageinfo?packageID=4717.
There are several builds. Which one should I test when the new python-OWSLib 
will be available.

By the way where I can find some instruction of how to install it.
The way that I did (and I am not sure is right).
I downloaded from http://koji.fedoraproject.org/koji/buildinfo?buildID=644614 
the followings:
qgis-2.8.2-1.el7.x86_64.rpm;
qgis-devel-2.8.2-1.el7.x86_64.rpm;
qgis-grass-2.8.2-1.el7.x86_64.rpm;
qgis-python-2.8.2-1.el7.x86_64.rpm;
qgis-server-2.8.2-1.el7.x86_64.rpm;
qgis-debuginfo-2.8.2-1.el7.x86_64.rpm;

and I started with:
yum install qgis-2.8.2-1.el7.x86_64.rpm
I got a list of dependency then I started to search for an rpm which contain 
the dependency and so one and so for.
At some point I went into a cycle dependency which I thought I solve it but it 
did not work.

I will appreciate if you can advise me.

Thank you,
Marian

From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-15-15 1:20 PM
To: Tudorache, Marian
Cc: rich...@duif.net; Matthias Kuhn; Alex Mandel; Angelos Tzotsos; 
qgis-user@lists.osgeo.org
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Mon, Jun 15, 2015 at 10:07 AM, Tudorache, Marian 
marian.tudora...@navcanada.camailto:marian.tudora...@navcanada.ca wrote:
Hi again,

I forgot to mention what work around I did to solve the circular dependency.
I replaced the package phonon-4.6.0-9.el7.x86_64.rpm with 
phonon-4.7.1-1..ram0.99.x86_64.rpm.
Doing this I was able to install PyQt4-4.10.1-13.el7.x86_64.rpm

https://admin.fedoraproject.org/updates/python-OWSLib-0.9.0-1.el7
python-OWSLib has been submitted to the testing repo for EPEL 7 and should be 
available later today.

phonon 4.6.0 is the version that comes with RHEL/CentOS so I'm guessing that 
you have some 3rd party repos and/or packages installed and that is the real 
source of the issue that you're running into. If you can reproduce this issue 
with just the RHEL/CentOS and EPEL repos, then please let me know.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

2015-06-12 Per discussione Tudorache, Marian
Hi everyone,

I have tried to install QGIS 2.8.2 from the 
http://koji.fedoraproject.org/koji/taskinfo?taskID=9997800 and I got stuck with 
dependencies:

I started to look after rpm files where are those libraries and they are all 
over the place. I picked rpm.pbone.net.
Initially everything was good until I reached some version conflicts like 
qt4-core. For this specific I have to choose among: 4.8.6-2, 4.8.5-8, 4.8.5-1 
etc.
Is any place where those dependencies are or should I continue googling foe 
each dependency?

Thanks,
Marian

From: Dave Johansen [mailto:davejohan...@gmail.com]
Sent: June-10-15 10:55 AM
To: rich...@duif.net
Cc: qgis-develo...@lists.osgeo.org; Matthias Kuhn; Tudorache, Marian; Alex 
Mandel; Angelos Tzotsos
Subject: Re: [Qgis-developer] QGIS 2.8.2 for RHEL/EPEL 7

On Wed, Jun 10, 2015 at 1:51 AM, Richard Duivenvoorde 
rdmaili...@duif.netmailto:rdmaili...@duif.net wrote:
On 10-06-15 06:58, Dave Johansen wrote:
 I just built QGIS 2.8.2 for RHEL/EPEL 7 (
 http://koji.fedoraproject.org/koji/taskinfo?taskID=9997800 ) and it is
 available in the testing repo (
 https://admin.fedoraproject.org/updates/qgis-2.8.2-1.el7 ). I built it
 without PyQwt because it doesn't support Qwt 6 (
 http://lists.osgeo.org/pipermail/qgis-developer/2014-December/036112.html ),
 so I'm sure that some functionality is disabled and/or won't work but
 the main application is available for testing.
Hi Dave et al,

Thanks, can you maybe also let us know how you would add this repo, so
we can maybe update the instructions?


To me it looks like the instructions here:

http://qgis.org/en/site/forusers/alldownloads.html#rhel-centos-scientific-linux

are not working anymore for recent versions of RHEL/CentSO, but please
correct me if I'm wrong.

The instructions to enable use of the EPEL repositories can be found here:
https://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F

I'm not sure if we have an official 'maintainer' of QGIS for the
RedHat/.rpm based distro's currently.

For the sake of the project I think it is good if we have working
instructions for rpm based distro's.

I'm currently the owner/packager for EPEL 6/7. That's obviously not a QGIS 
role but a Fedora one.

From Alex I understood that Angelos is maintaining a build server, which
maybe also able to build rpm's?
https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto

We should maybe also tell people if is too hard/impossible to install
QGIS or QGIS-server on a RHEL/CentOS version (as I understand on RHEL5.5
it's not doable because of a lack of certain Qt libs)..

I believe that we could build QGIS 1.8 on RHEL 5 without too much problem. I'm 
currently only really interested in RHEL 6 and 7, but if there was interest in 
supporting QGIS 1.8 on RHEL 5, then I would be glad to do that as well.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Issues to install QGIS on RedHat 6

2015-06-09 Per discussione Tudorache, Marian
Hi,

I have issue to install QGIS 2.8 on Linux RedHat 6.

First part: I installed ELGIS and EPEL using the instructions from: 
http://www.qgis.org/en/site/forusers/alldownloads.html#rhel-centos-scientific-linux

The following commands were successfully executed
sudo wget fedora.vitu.ch/EL/qgis.repo -P /etc/yum.repos.d/
sudo rpm --import http://fedora.vitu.ch/Fedora/RPM-GPG-Key-vitu

But the execution of the next one failed:
sudo yum update

I got this error:
http://fedora.vitu.ch/EL/6Workstation/x86_64/repodata/repomd.xml: [Errno 14] 
PYCURL ERROR 22 - The requested URL returned error: 404
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: qgis. 
Please verify its path and try again

This command failed as well.
sudo yum install qgis qgis-python qgis-grass qgis-mapserver

It seems the issue has been reported on Apr 14 2014 but no solution was 
release. It seems the location 
http://fedora.vitu.ch/EL/6Workstation/x86_64/repodata/does not exist anymore or 
was changed and instructions were not updated.

Does anyone know a solution?

Thanks,
Marian



This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user