Skip to content

Instantly share code, notes, and snippets.

@damienlabat
Created December 2, 2013 15:34
Show Gist options
  • Select an option

  • Save damienlabat/7751238 to your computer and use it in GitHub Desktop.

Select an option

Save damienlabat/7751238 to your computer and use it in GitHub Desktop.
pour le rendu BD Carthage avec Mapnik
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
%entities;
]>
<Map background-color="transparent" srs="&srs900913;">
<Style name="Poly_bluestyle">
<Rule>
<PolygonSymbolizer fill="#428BCA" />
<LineSymbolizer stroke="#428BCA" stroke-width="0" />
</Rule>
</Style>
<Style name="Line_bluestyle">
<Rule>
<Filter>[ordre]=1</Filter>
&minscale_zoom10;
<LineSymbolizer stroke="#428BCA" stroke-width="3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=1</Filter>
&maxscale_zoom11;
&minscale_zoom11;
<LineSymbolizer stroke="#428BCA" stroke-width="3.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=1</Filter>
&maxscale_zoom12;
&minscale_zoom12;
<LineSymbolizer stroke="#428BCA" stroke-width="3.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=1</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="3.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=1</Filter>
&maxscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="4" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&minscale_zoom10;
<LineSymbolizer stroke="#428BCA" stroke-width="2.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom11;
&minscale_zoom11;
<LineSymbolizer stroke="#428BCA" stroke-width="2.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom12;
&minscale_zoom12;
<LineSymbolizer stroke="#428BCA" stroke-width="3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="3.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="3.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="3.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=2</Filter>
&maxscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="4" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&minscale_zoom10;
<LineSymbolizer stroke="#428BCA" stroke-width="2" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom11;
&minscale_zoom11;
<LineSymbolizer stroke="#428BCA" stroke-width="2.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom12;
&minscale_zoom12;
<LineSymbolizer stroke="#428BCA" stroke-width="2.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="2.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="3.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="3.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom17;
&minscale_zoom17;
<LineSymbolizer stroke="#428BCA" stroke-width="3.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=3</Filter>
&maxscale_zoom18;
<LineSymbolizer stroke="#428BCA" stroke-width="4" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&minscale_zoom10;
<LineSymbolizer stroke="#428BCA" stroke-width="1.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom11;
&minscale_zoom11;
<LineSymbolizer stroke="#428BCA" stroke-width="1.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom12;
&minscale_zoom12;
<LineSymbolizer stroke="#428BCA" stroke-width="2" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="2.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="2.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="2.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom17;
&minscale_zoom17;
<LineSymbolizer stroke="#428BCA" stroke-width="3.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=4</Filter>
&maxscale_zoom18;
<LineSymbolizer stroke="#428BCA" stroke-width="3.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&minscale_zoom11;
<LineSymbolizer stroke="#428BCA" stroke-width="1.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom12;
&minscale_zoom12;
<LineSymbolizer stroke="#428BCA" stroke-width="1.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="1.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="2" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="2.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="2.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom17;
&minscale_zoom17;
<LineSymbolizer stroke="#428BCA" stroke-width="2.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=5</Filter>
&maxscale_zoom18;
<LineSymbolizer stroke="#428BCA" stroke-width="3" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom13;
&minscale_zoom13;
<LineSymbolizer stroke="#428BCA" stroke-width="1.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke="#428BCA" stroke-width="1.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="1.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="2" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom17;
&minscale_zoom17;
<LineSymbolizer stroke="#428BCA" stroke-width="2.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=6</Filter>
&maxscale_zoom18;
<LineSymbolizer stroke="#428BCA" stroke-width="2.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=7</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke="#428BCA" stroke-width="1.25" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=7</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<LineSymbolizer stroke="#428BCA" stroke-width="1.5" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=7</Filter>
&maxscale_zoom17;
&minscale_zoom17;
<LineSymbolizer stroke="#428BCA" stroke-width="1.75" stroke-linecap="round"/>
</Rule>
<Rule>
<Filter>[ordre]=7</Filter>
&maxscale_zoom18;
<LineSymbolizer stroke="#428BCA" stroke-width="2" stroke-linecap="round"/>
</Rule>
</Style>
<Layer name="hydro" srs="+proj=lcc +lat_1=44 +lat_2=49.00000000001 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,-0,-0,-0,0 +units=m +no_defs">
<StyleName>Line_bluestyle</StyleName>
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">shp/COURS_D_EAU.shp</Parameter>
</Datasource>
</Layer>
<Layer name="hydroS" srs="+proj=lcc +lat_1=44 +lat_2=49.00000000001 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,-0,-0,-0,0 +units=m +no_defs">
<StyleName>Poly_bluestyle</StyleName>
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">shp/HYDROGRAPHIE_SURFACIQUE.shp</Parameter>
</Datasource>
</Layer>
</Map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment