[Qgis-developer] OGR2Layers python plugin

Nicolas B. piklas at gmail.com
Thu May 22 03:22:17 EDT 2008


Hi list !

I've just submitted a new python plugin to the GeoWeb 2008 student contest.
(see http://www.geoweb.org for details)
It is called OGR2Layers and enables QGIS user to export active OGR layers to
an html OpenLayers map with KML(s) overlay(s).
It's really cool for "small" layers as javascript can't load too big KML
yet. But big generated KML can be load in Google Earth !

It's still in early stage of development and the OGR to KML conversion is
done using a QgsCoordinateTransform and a "hard-coded" ogr2ogr commands
loop.I already had some bug tickets from friends about the KML generation
(only header written, so the OL map crashes), but that works on windows XP (
with latest FWTools installed and its path added in the user variables ). I
didn't try it on Linux yet.

I really had to speed for the contest deadline so the plugin won't work on
every plateform yet, i think. This is just "speed programming" around an
useful idea to generate web maps, but it could be really improved by the
community.
I'm really thinking about generating KML from python  (writting the features
geometries in it), instead of calling OGR (from qgis root dir or from
fwtools)
This way the plugin would be more robust and cross-plateform. If it turn out
to be usefull, i'm also thinking about improve the OpenLayers configuration
tab.

Go to http://www.ogr2layers.org to download
Any help and returns really appreciated !

Bye

PikO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080522/69baf9fe/attachment.html


More information about the Qgis-developer mailing list