mapnik/tests/data/good_maps/sqlite.xml

54 lines
2 KiB
XML
Raw Normal View History

2011-02-05 03:21:22 +00:00
<Map srs="+init=epsg:4326" background-color="rgb(255,255,255)" minimum-version="0.7.2">
<Style name="world_borders_style1">
<Rule>
<!-- glow underneath continents -->
<LineSymbolizer stroke="green" stroke-width="1.5"/>
</Rule>
</Style>
<!-- layer created by ogr like: ogr2ogr -t_srs EPSG:4326 -f SQLite ../sqlite/world.sqlite world_merc.shp -->
<!-- here we read with the ogr plugin -->
<Layer name="world_borders1" srs="+init=epsg:4326">
<StyleName>world_borders_style1</StyleName>
<Datasource>
<Parameter name="type">ogr</Parameter>
<Parameter name="file">../sqlite/world.sqlite</Parameter>
<Parameter name="layer">world_merc</Parameter>
</Datasource>
</Layer>
<Style name="world_borders_style2">
<Rule>
<PolygonSymbolizer fill="yellow" gamma="0.5"/>
</Rule>
</Style>
<!-- here we read with native sqlite plugin -->
<Layer name="world_borders2" srs="+init=epsg:4326">
<StyleName>world_borders_style2</StyleName>
<Datasource>
<Parameter name="type">sqlite</Parameter>
<Parameter name="file">../sqlite/world.sqlite</Parameter>
<Parameter name="table">world_merc</Parameter>
</Datasource>
</Layer>
<Style name="point_style">
<Rule>
<PointSymbolizer file="../svg/point_sm.svg"/>
<TextSymbolizer size="12" dy="-5" face-name="DejaVu Sans Book" halo-fill="rgba(255,255,255,.5)" halo-radius=".5">[name]</TextSymbolizer>
</Rule>
</Style>
<!-- file created by QGIS read with native sqlite plugin -->
<Layer name="point" srs="+init=epsg:4326">
<StyleName>point_style</StyleName>
<Datasource>
<Parameter name="type">sqlite</Parameter>
<Parameter name="file">../sqlite/qgis_spatiallite.sqlite</Parameter>
<Parameter name="table">point</Parameter>
<Parameter name="wkb_format">spatialite</Parameter>
</Datasource>
</Layer>
</Map>