OGR2Layers is a free and easy to use python plugin for Quantum GIS open source software. Only a few clicks let you export your vectorial GIS data layer to a OpenLayers HTML map, that you can easily include in your website !

OGR2Layers Plugin User Guide

OGR2Layers is easy to use but requires the QGIS and OpenLayers knowledges basics. Please follow the listed steps bellow to use it and easily produce OpenLayers HTML maps !

1 - Load OGR supported data layers (See OGR supported formats)
2 - Be really carefull of OGR layer's size !! The heavier the OGR layers are, the slower the Internet OpenLayers Map will be ! (Tested outputs up to 500Kb KML, points are much faster)
3 - Click on OGR2Layers Plugin icon on QGIS plugins toolbar. If it does not appear, please activate it from the QGIS plugin manager.
4 - Check if the loaded layers are active in the QGIS Layer manager. Only active layers will be used.
5 - Click on the "Browse" button and choose an output directory where KML / HTML files will be created.
6 - Click on the OpenLayers tab (configuration form for OpenLayers)
7 - Enter a title for the OpenLayers Map (optional)
8 - Choose a default Map Size for the OpenLayers Map
9 - Choose a default WMS Base Layer for the OpenLayers Map (OpenStreetMap, OpenLayers or Demis)
10 - Modify the default Map Extent if needed (optional)
11 - Click on "OK" button and wait while KML and HTML are being generated ( look at the progress bar !).
12 - Go to the chosen output directory and double click on index.html to see the result !.
13 - You're Done ! Please see Tips and Tricks bellow to learn more.

If you get troubles with OGR2Layers use, please go to the Contact section and send us an email.

OGR2Layers Tips and Tricks:

OGR2Layers produces KML and simple OpenLayers Javascript. This way you can:
1 - Quickly convert small OGR layers to OpenLayers, and load it to your website if you want. ! )
2 - Easily modify the generated map to adapt it to your website ( See OpenLayers doc ! )
3 - Generate KML files from big OGR layers and see the result directly in Google Earth ! )