Fwd: [Qgis-developer] Writing a data provider in Python
Gary Sherman
sherman at mrcc.com
Fri Mar 16 11:48:49 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Begin forwarded message:
> On Mar 15, 2007, at 6:43 AM, Barry Rowlingson wrote:
>
>> I'm working with the 0.9 version and I've been writing python
>> plugins happily. One thing I wanted to do was to be able to read
>> excel spreadsheets into QGis.
>>
>> I looked at the delimited text C++ plugin and so I understand the
>> fundamentals of a vector data provider, but I can't see how to add
>> a new one to the registry. It seems that the registry populates
>> itself at startup time, and there's no 'add provider' method of
>> QgsProviderRegistry.
>>
>> So am I right in thinking that data providers have to be in C++ at
>> the moment?
>
>
Actually it only scans files with a .dll (Windows) or .so (Linux/Os
X/*nix) extension at startup, looking for the required signatures.
The plugin registry was modified to accommodate loading Python
plugins. The data provider registry will need to be modified as well.
- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Micro Resources: http://mrcc.com
*Geospatial Hosting
*Web Site Hosting
"We work virtually everywhere"
- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFF+rxh1zKuzV6goTgRAuUjAJ9W3AFl2HDfAt5KkD4+hfcgWE/8SQCgjo1c
qD/8VB1XAI9FNgoCkaV6RAU=
=oVqf
-----END PGP SIGNATURE-----
More information about the Qgis-developer
mailing list