[Qgis-developer] OGR2Layers python plugin
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).
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
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
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
Go to http://www.ogr2layers.org to download
Any help and returns really appreciated !
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer