[Qgis-user] Pywin32 Version in QGIS 2.8.1

2015-05-10 Thread Gang Yang
Hi!

 

I would like to know the pywin32 version, which the QGIS 2.8.1 setup
installs on a pc. I know the extension is normally installed at:

C:\Program Files (x86)\QGIS Wien\apps\Python27\Lib\site-packages\win32com

 

For my purpose I need a version of Pywin32 Build 217. The one QGIS installs
seems older.

 

Two related questions:

1.   Is it possible to configure QGIS to use a newer version, if I use
the pywin32 in Plugin/Python console? For example to append the path to
sys.path?

2.   Is a newer version of pywin32 included in Release 2.8.2?

 

Thank you for any help!

 

Gang 

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

[Qgis-user] Python for .NET in QGIS

2014-10-17 Thread Gang Yang
Hello!

 

I installed Python for .NET and have no problem to make my standalone Python
console (version 2.7) .NET-aware: the .NET DLLs can be called from the
console without problem.

 

I thought this could be done also for QGIS Python console on the same pc:

1.   I copied the two files of Python for .NET: clr.pyd and
Python.runtime.dll to the qgis folder:

C:\Program Files\QGIS Chugiak\apps\Python27

to assure these two files to be included in the sys.path;

2.   In QGIS Python console I typed:

Import clr



Here I got the error: 

 

Traceback (most recent call last):

  File input, line 1, in module

  File C:/PROGRA~1/QGISCH~1/apps/qgis/./python\qgis\utils.py, line 454, in
_import

mod = _builtin_import(name, globals, locals, fromlist, level)

SystemError: dynamic module not initialized properly

 

 

My question: Is this the correct way to make pyqgis to .NET-aware? Or the
qgis python is something special so that it is not possible to do this? 

 

Thank you in advance.

 

Gang

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

[Qgis-user] Spatialite-Layer with Z-coordinate

2014-10-01 Thread Gang Yang
Hello!

 

I'm using QGIS 2.4.0. Is it possible to create a Spatialite layer  with
Z-coordinate, for example a point layer with x, y and z value? According to
Spatialite documentation this 2.5D-Layer seems to be supported, but I found
no possibilities to create  such  geometry layer type in QGIS.

 

I would be happy to hear any suggestions or workaround from you. Thank you.

 

Gang

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

[Qgis-user] Interprocess communication

2014-02-06 Thread Gang Yang
Hi,

 

I'm new to QGIS and now using QGIS 2.0.1 on Windows PC (Windows 8).

 

I have a question about QGIS communication with other application on the
same machine, concretely, I would like to send some data to qgis from
another program and let qgis, for example, zoom to the corresponding object.
I've searched in the documentation and in internet. But I've found no proper
answer. I hope someone can point me to a right direction. 

 

Thank you in advance and best regards

 

Gang

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