Hi list !<br><br>I've just submitted a new python plugin to the GeoWeb 2008 student contest. (see <a href="http://www.geoweb.org" target="_blank">http://www.geoweb.org</a> for details)<br>It is called OGR2Layers and enables QGIS user to export active OGR layers to an html OpenLayers map with KML(s) overlay(s).<br>
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 !<br><br>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.<br>
<br>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.<br>
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)<br>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.<br>
<br>
Go to <a href="http://www.ogr2layers.org" target="_blank">http://www.ogr2layers.org</a> to download<br>Any help and returns really appreciated !<br><br>Bye<br><br>PikO<br><br><br><br><br>