From 5964beef274e8217c83e6782aee7152328aa6ddb Mon Sep 17 00:00:00 2001 From: ThomasG77 Date: Mon, 12 Dec 2011 13:41:25 -0800 Subject: [PATCH] Updated GEOS (markdown) --- GEOS.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/GEOS.md b/GEOS.md index 94da9f5..fbf0a52 100644 --- a/GEOS.md +++ b/GEOS.md @@ -3,10 +3,9 @@ - - - #!html +```html

WARNING: experimental !

+``` Mapnik's PluginArchitecture supports the use of different input formats. @@ -17,9 +16,10 @@ One such plugin supports writing inline [WKT](http://en.wikipedia.org/wiki/Well- Check if you have the GEOS library installed: - +```sh $ geos-config --version 3.2.0 +``` If not, install it from [here](http://trac.osgeo.org/geos/) or use your package system on your distro. @@ -55,23 +55,23 @@ To check if the geos plugin built and was installed correctly, try the usual Pyt Instantiate a datasource like: - #!python +```python lyr = Layer('WKT Rectangle') lyr.datasource = Geos(wkt='POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))') +``` ### XML If you are using XML mapfiles to style your data, then using a datasource looks like: - - #!xml +```xml RectangleStyle POLYGON((0 0, 10 0, 10 10, 0 10, 0 0)) - +``` ### C++ @@ -79,8 +79,7 @@ Plugin datasource initialization example code can be found on PluginArchitecture A datasource may be created as follows: - - #!C +```c { parameters p; p["type"]="geos"; @@ -92,4 +91,5 @@ A datasource may be created as follows: Layer lyr("WKT Rectangle"); lyr.add_style("RectangleStyle"); m.addLayer(lyr); - } \ No newline at end of file + } +``` \ No newline at end of file