[gdal-dev] Add a style to a Geojson Layer

Wael Tarhouni waelinsat at gmail.com
Thu Mar 28 07:23:03 PDT 2013


Anybody here?

2013/3/28 Wael Tarhouni <waelinsat at gmail.com>

> Hi all;
>
> I'm trying to add a style to a geojson layer which is composed by a simple
> multipolygon but it can't be applied...
>
> This is the code:
>
>
> *{ "type": "MultiPolygon",
>   "coordinates": [
>     [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0,
> 2.0]]],
>     [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0,
> 0.0]],
>      [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2,
> 0.2]]]
>     ],
>
>     "style":{
>         //all SVG styles allowed
>         "fill":"red",
>         "stroke-width":"3",
>         "fill-opacity":0.6
>     }
>
>
>   }*
>
> regards;
> --
> Wael Tarhouni
> Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT
>
> (+216) 22 239 551
>



-- 
Wael Tarhouni
Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT

(+216) 22 239 551
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130328/c9282974/attachment.html>


More information about the gdal-dev mailing list