Merge pull request #2602 from mapycz/standalone-tests

Standalone visual tests
This commit is contained in:
Dane Springmeyer 2014-12-09 19:18:29 -05:00
commit f0ba989596
184 changed files with 745 additions and 379 deletions

View file

@ -196,6 +196,12 @@ std::shared_ptr<mapnik::parameter> create_parameter(mapnik::value_unicode_string
return std::make_shared<mapnik::parameter>(key_utf8,value); return std::make_shared<mapnik::parameter>(key_utf8,value);
} }
bool contains(mapnik::parameters const& p, std::string const& key)
{
parameters::const_iterator pos = p.find(key);
return pos != p.end();
}
// needed for Python_Unicode to std::string (utf8) conversion // needed for Python_Unicode to std::string (utf8) conversion
std::shared_ptr<mapnik::parameter> create_parameter_from_string(mapnik::value_unicode_string const& key, mapnik::value_unicode_string const& ustr) std::shared_ptr<mapnik::parameter> create_parameter_from_string(mapnik::value_unicode_string const& key, mapnik::value_unicode_string const& ustr)
@ -233,6 +239,7 @@ void export_parameters()
.def("__getitem__",get_params_by_key2) .def("__getitem__",get_params_by_key2)
.def("__getitem__",get_params_by_index) .def("__getitem__",get_params_by_index)
.def("__len__",get_params_size) .def("__len__",get_params_size)
.def("__contains__",contains)
.def("append",add_parameter) .def("append",add_parameter)
.def("iteritems",iterator<parameters>()) .def("iteritems",iterator<parameters>())
; ;

View file

@ -4,6 +4,9 @@
background-image-opacity=".5" background-image-opacity=".5"
background-image-comp-op="soft-light" background-image-comp-op="soft-light"
> >
<Parameters>
<Parameter name="sizes">512, 512</Parameter>
</Parameters>
<Style name="ellipse"> <Style name="ellipse">
<Rule> <Rule>
<BuildingSymbolizer fill="white" fill-opacity=".5" /> <BuildingSymbolizer fill="white" fill-opacity=".5" />
@ -17,5 +20,4 @@
<Parameter name="file">../data/marker-multi-policy.csv</Parameter> <Parameter name="file">../data/marker-multi-policy.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>
</Map> </Map>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">300, 300</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">200, 400</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,4 +1,7 @@
<Map> <Map>
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="line"> <Style name="line">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map> <Map>
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries"> <Style name="countries">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map> <Map>
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries"> <Style name="countries">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map> <Map>
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries"> <Style name="countries">
<Rule> <Rule>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map> <Map>
<Parameters>
<Parameter name="sizes">256,256</Parameter>
<Parameter name="status">off</Parameter>
</Parameters>
<Style name="countries"> <Style name="countries">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#808080" background-color="#808080"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="My Style" comp-op="src-over"> <Style name="My Style" comp-op="src-over">
<Rule> <Rule>

View file

@ -6,6 +6,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -6,6 +6,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -6,6 +6,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -6,6 +6,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -6,6 +6,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -9,6 +9,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -12,6 +12,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -9,6 +9,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -9,6 +9,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">500, 500</Parameter>
</Parameters>
<FontSet name="book"> <FontSet name="book">
<Font face-name="DejaVu Sans Book"/> <Font face-name="DejaVu Sans Book"/>
</FontSet> </FontSet>
@ -9,6 +12,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.5, -0.5, 0.5, 0.5</Parameter>
<Parameter name="inline"> <Parameter name="inline">
lat,long,horizontal_alignment,vertical_alignment,dy,text lat,long,horizontal_alignment,vertical_alignment,dy,text
0.25,-0.35,left,top,0 0.25,-0.35,left,top,0

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
<Parameter name="status">off</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -1,4 +1,7 @@
<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">512, 512</Parameter>
</Parameters>
<FontSet name="book-fonts"> <FontSet name="book-fonts">
<Font face-name="DejaVu Sans Book"/> <Font face-name="DejaVu Sans Book"/>
</FontSet> </FontSet>
@ -23,6 +26,7 @@
<StyleName>frame</StyleName> <StyleName>frame</StyleName>
<Datasource> <Datasource>
<Parameter name="type">ogr</Parameter> <Parameter name="type">ogr</Parameter>
<Parameter name="extent">-15,-15,15,15</Parameter>
<Parameter name="layer_by_index">0</Parameter> <Parameter name="layer_by_index">0</Parameter>
<Parameter name="inline"><![CDATA[ <Parameter name="inline"><![CDATA[
{ {

View file

@ -1,4 +1,7 @@
<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="frame" filter-mode="first"> <Style name="frame" filter-mode="first">
<Rule> <Rule>
@ -26,6 +29,7 @@
<StyleName>frame</StyleName> <StyleName>frame</StyleName>
<Datasource> <Datasource>
<Parameter name="type">ogr</Parameter> <Parameter name="type">ogr</Parameter>
<Parameter name="extent">-10,-10,10,10</Parameter>
<Parameter name="layer_by_index">0</Parameter> <Parameter name="layer_by_index">0</Parameter>
<Parameter name="inline"><![CDATA[ <Parameter name="inline"><![CDATA[
{ {

View file

@ -1,4 +1,7 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="white"> <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="white">
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="test"> <Style name="test">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">500,500</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>polygon</StyleName> <StyleName>polygon</StyleName>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">500,500</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>polygon</StyleName> <StyleName>polygon</StyleName>

View file

@ -1,4 +1,7 @@
<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">200,200</Parameter>
</Parameters>
<Style name="polygon"> <Style name="polygon">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">200,200</Parameter>
</Parameters>
<Style name="polygon"> <Style name="polygon">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">200,200</Parameter>
</Parameters>
<Style name="polygon"> <Style name="polygon">
<Rule> <Rule>

View file

@ -2,6 +2,9 @@
<!-- Without unlock-image --> <!-- Without unlock-image -->
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0"> <Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>points</StyleName> <StyleName>points</StyleName>

View file

@ -2,6 +2,9 @@
<!-- Without unlock-image --> <!-- Without unlock-image -->
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0"> <Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Layer name="obstacle" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="obstacle" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>obstacle</StyleName> <StyleName>obstacle</StyleName>

View file

@ -2,6 +2,9 @@
<!-- Without unlock-image --> <!-- Without unlock-image -->
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0"> <Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0">
<Parameters>
<Parameter name="sizes">512,256</Parameter>
</Parameters>
<Layer name="obstacle" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="obstacle" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>obstacle</StyleName> <StyleName>obstacle</StyleName>

View file

@ -2,6 +2,9 @@
<!-- Without unlock-image --> <!-- Without unlock-image -->
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0"> <Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Layer name="alpha" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="alpha" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>alpha</StyleName> <StyleName>alpha</StyleName>

View file

@ -2,6 +2,9 @@
<!-- Without unlock-image --> <!-- Without unlock-image -->
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0"> <Map background-color="green" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="2.0.0">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<!-- the aim here is to test the "repeat-key" parameter. it is <!-- the aim here is to test the "repeat-key" parameter. it is
supposed to stop collidable / placeable items from being supposed to stop collidable / placeable items from being

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">450,450</Parameter>
</Parameters>
<Style name="raster"> <Style name="raster">
<Rule> <Rule>

View file

@ -1,12 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 200</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
<Parameter name="extent">-1,-1,1,1</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -2,13 +2,16 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84" <Map background-color="white" srs="+proj=latlong +datum=WGS84"
font-directory="../fonts/KhmerOS/"> font-directory="../fonts/KhmerOS/">
<Parameters>
<Parameter name="sizes">800, 200</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="file">../data/points.csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter> <Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> <Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries-mask" filter-mode="first" comp-op="difference"> <Style name="countries-mask" filter-mode="first" comp-op="difference">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> <Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries-over" filter-mode="first"> <Style name="countries-over" filter-mode="first">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]> <!DOCTYPE Map[]>
<Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> <Map background-color="#b8dee6" buffer-size="256" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="countries-over" filter-mode="first"> <Style name="countries-over" filter-mode="first">
<Rule> <Rule>

View file

@ -1,11 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">200, 200</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -2,11 +2,15 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84" <Map background-color="white" srs="+proj=latlong +datum=WGS84"
font-directory="../fonts/KhmerOS/"> font-directory="../fonts/KhmerOS/">
<Parameters>
<Parameter name="sizes">800, 200</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">900, 250</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-5.192, 50.189, -5.174, 50.195</Parameter>
<Parameter name="file">../data/line-offset.csv</Parameter> <Parameter name="file">../data/line-offset.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,4 +1,7 @@
<Map srs="+init=epsg:3857" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> <Map srs="+init=epsg:3857" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="polygon" filter-mode="first" > <Style name="polygon" filter-mode="first" >
<Rule> <Rule>
<LineSymbolizer stroke-width="50" stroke-opacity="0.01" /> <LineSymbolizer stroke-width="50" stroke-opacity="0.01" />

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Map background-color="white"> <Map background-color="white">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style"> <Style name="style">
<Rule> <Rule>

View file

@ -4,6 +4,9 @@
background-image-opacity=".5" background-image-opacity=".5"
background-image-comp-op="soft-light" background-image-comp-op="soft-light"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>

View file

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">900, 250</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-5.192, 50.189, -5.174, 50.195</Parameter>
<Parameter name="file">../data/line-offset.csv</Parameter> <Parameter name="file">../data/line-offset.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Map background-color="white"> <Map background-color="white">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style"> <Style name="style">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- Upright test --> <!-- Upright test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- dy and multi lines test --> <!-- dy and multi lines test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -3,6 +3,10 @@
<!-- complex script on line test --> <!-- complex script on line test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84" <Map background-color="white" srs="+proj=latlong +datum=WGS84"
font-directory="../fonts/KhmerOS/"> font-directory="../fonts/KhmerOS/">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- dy and multi lines test --> <!-- dy and multi lines test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-1.2, -1.2, 1.2, 1.2</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- Upright test --> <!-- Upright test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- Upright test --> <!-- Upright test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800</Parameter>
<Parameter name="bbox">-1.2, -1.2, 1.2, 1.2</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -2,6 +2,10 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<!-- Upright test --> <!-- Upright test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 800</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName> <StyleName>lines</StyleName>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">800, 800; 600, 600; 400, 400; 200, 200</Parameter>
<Parameter name="bbox">-0.05, -0.01, 0.95, 0.01</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>

View file

@ -1,11 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">800, 100; 600, 100; 400, 100; 300, 100; 250, 100; 150, 100; 100, 100</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -3,6 +3,9 @@
background-image-opacity=".8" background-image-opacity=".8"
background-image-comp-op="screen" background-image-comp-op="screen"
background-image="../data/pattern.png"> background-image="../data/pattern.png">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="ellipse"> <Style name="ellipse">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map> <Map>
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="line"> <Style name="line">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="poly"> <Style name="poly">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="white"> <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="white">
<Parameters>
<Parameter name="sizes">600, 400</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"> <Layer name="layer" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>

View file

@ -1,4 +1,7 @@
<Map maximum-extent="0,0,190,180"> <Map maximum-extent="0,0,190,180">
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="each"> <Style name="each">
<Rule> <Rule>
<Filter>[i] = 1</Filter> <Filter>[i] = 1</Filter>

View file

@ -1,5 +1,8 @@
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+init=epsg:4326" minimum-version="0.7.2"> <Map background-color="white" srs="+init=epsg:4326" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">600,400; 400,600; 257,256</Parameter>
</Parameters>
<Style name="1"> <Style name="1">
<Rule> <Rule>
<LineSymbolizer stroke-width=".2" stroke="grey"/> <LineSymbolizer stroke-width=".2" stroke="grey"/>

View file

@ -1,4 +1,7 @@
<Map> <Map>
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="line" filter-mode="first" > <Style name="line" filter-mode="first" >
<Rule> <Rule>
<LineSymbolizer stroke="#000000" /> <LineSymbolizer stroke="#000000" />

View file

@ -1,4 +1,7 @@
<Map> <Map>
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="line" filter-mode="first" > <Style name="line" filter-mode="first" >
<Rule> <Rule>
<LineSymbolizer stroke="red"/> <LineSymbolizer stroke="red"/>
@ -21,6 +24,7 @@
<StyleName>point-placement</StyleName> <StyleName>point-placement</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-10, 0, 15, 20</Parameter>
<Parameter name="file">../data/marker-on-line.csv</Parameter> <Parameter name="file">../data/marker-on-line.csv</Parameter>
<Parameter name="separator">|</Parameter> <Parameter name="separator">|</Parameter>
</Datasource> </Datasource>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map> <Map>
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="lines"> <Style name="lines">
<Rule> <Rule>
<LineSymbolizer stroke="#000000" /> <LineSymbolizer stroke="#000000" />
@ -17,6 +20,7 @@
<StyleName>markers</StyleName> <StyleName>markers</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-1, -1, 11, 4</Parameter>
<Parameter name="inline"> <Parameter name="inline">
wkt, placement wkt, placement
"LINESTRING(0 0)", "vertex-first" "LINESTRING(0 0)", "vertex-first"

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map> <Map>
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="lines"> <Style name="lines">
<Rule> <Rule>
<LineSymbolizer stroke="#000000" /> <LineSymbolizer stroke="#000000" />
@ -17,6 +20,7 @@
<StyleName>markers</StyleName> <StyleName>markers</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-1, -1, 11, 4</Parameter>
<Parameter name="inline"> <Parameter name="inline">
wkt, placement wkt, placement
"LINESTRING(0 0)", "vertex-last" "LINESTRING(0 0)", "vertex-last"

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>alpha</StyleName> <StyleName>alpha</StyleName>
<Datasource> <Datasource>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>alpha</StyleName> <StyleName>alpha</StyleName>
<Datasource> <Datasource>

View file

@ -1,4 +1,7 @@
<Map> <Map>
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="line" filter-mode="first" > <Style name="line" filter-mode="first" >
<Rule> <Rule>
<LineSymbolizer stroke="#000000" /> <LineSymbolizer stroke="#000000" />
@ -15,6 +18,7 @@
<StyleName>point-placement</StyleName> <StyleName>point-placement</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-10, 0, 15, 20</Parameter>
<Parameter name="file">../data/marker-on-line.csv</Parameter> <Parameter name="file">../data/marker-on-line.csv</Parameter>
<Parameter name="separator">|</Parameter> <Parameter name="separator">|</Parameter>
</Datasource> </Datasource>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,128</Parameter>
</Parameters>
<Style name="point"> <Style name="point">
<Rule> <Rule>
@ -14,6 +17,7 @@
<StyleName>point</StyleName> <StyleName>point</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-1,-0.5,1,0.5</Parameter>
<Parameter name="inline"> <Parameter name="inline">
lat,lon,offset lat,lon,offset
0,-0.35,10 0,-0.35,10

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -3,6 +3,9 @@
background-image-opacity="0.8" background-image-opacity="0.8"
background-image-comp-op="screen" background-image-comp-op="screen"
background-image="../data/pattern.png"> background-image="../data/pattern.png">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="markers"> <Style name="markers">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"> <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style"> <Style name="style">
<Rule> <Rule>
<PolygonSymbolizer fill="white"/> <PolygonSymbolizer fill="white"/>

View file

@ -1,4 +1,7 @@
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-image="../../data/images/checker.jpg"> <Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-image="../../data/images/checker.jpg">
<Parameters>
<Parameter name="sizes">600,400; 400,600; 257,256</Parameter>
</Parameters>
<Style name="ellipse" <Style name="ellipse"
direct-image-filters="scale-hsla(0,1,0,1,0,1,0,.5)" direct-image-filters="scale-hsla(0,1,0,1,0,1,0,.5)"

View file

@ -1,4 +1,7 @@
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-image="../../data/images/checker.jpg"> <Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-image="../../data/images/checker.jpg">
<Parameters>
<Parameter name="sizes">600,400; 400,600; 257,256</Parameter>
</Parameters>
<Style name="ellipse"> <Style name="ellipse">
<Rule> <Rule>

View file

@ -1,11 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84"> <Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Parameters>
<Parameter name="sizes">800, 200</Parameter>
</Parameters>
<Layer name="layer" srs="+proj=latlong +datum=WGS84"> <Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
<Parameter name="file">../data/points.csv</Parameter> <Parameter name="file">../data/points.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">500, 500</Parameter>
</Parameters>
<FontSet name="book"> <FontSet name="book">
<Font face-name="DejaVu Sans Book"/> <Font face-name="DejaVu Sans Book"/>
</FontSet> </FontSet>
@ -9,6 +12,7 @@
<StyleName>My Style</StyleName> <StyleName>My Style</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-0.5, -0.5, 0.5, 0.5</Parameter>
<Parameter name="inline"> <Parameter name="inline">
lat,long,overlap,placement lat,long,overlap,placement
0.33,-0.36,noexpr-true,noexpr-false 0.33,-0.36,noexpr-true,noexpr-false

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#eee" background-color="#eee"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">256,256</Parameter>
</Parameters>
<Style name="bug"> <Style name="bug">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map <Map
background-color="#000" background-color="#000"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">300,300</Parameter>
</Parameters>
<Style name="polygon"> <Style name="polygon">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map srs="+init=epsg:3857" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> <Map srs="+init=epsg:3857" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="carto_tests" filter-mode="first" > <Style name="carto_tests" filter-mode="first" >
<Rule> <Rule>
<LineSymbolizer stroke="[stroke]" /> <LineSymbolizer stroke="[stroke]" />

View file

@ -1,5 +1,8 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
> >
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style" image-filters="color-to-alpha(#00BDFF)"> <Style name="style" image-filters="color-to-alpha(#00BDFF)">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
background-color="steelblue" background-color="steelblue"
> >
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style" image-filters="color-to-alpha(#BCDAF5)"> <Style name="style" image-filters="color-to-alpha(#BCDAF5)">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
background-color="steelblue" background-color="steelblue"
> >
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="style" image-filters="color-to-alpha(black)"> <Style name="style" image-filters="color-to-alpha(black)">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2"> <Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="DISCRETE RAINBOW" direct-image-filters="color-to-alpha(white)" image-filters="color-to-alpha(yellow),color-to-alpha(blue)"> <Style name="DISCRETE RAINBOW" direct-image-filters="color-to-alpha(white)" image-filters="color-to-alpha(yellow),color-to-alpha(blue)">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2"> <Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="DISCRETE RAINBOW" image-filters="color-to-alpha(black)"> <Style name="DISCRETE RAINBOW" image-filters="color-to-alpha(black)">
<Rule> <Rule>

View file

@ -1,4 +1,7 @@
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2"> <Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<!-- blue yellow orange indigo green red transparent black white --> <!-- blue yellow orange indigo green red transparent black white -->

View file

@ -1,4 +1,7 @@
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2"> <Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="two-value"> <Style name="two-value">
<Rule> <Rule>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">750,250</Parameter>
</Parameters>
<Style name="line"> <Style name="line">
<Rule> <Rule>
@ -36,6 +39,7 @@
<StyleName>text</StyleName> <StyleName>text</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-12, -4, 12, 4</Parameter>
<Parameter name="file">../data/repeat-labels.csv</Parameter> <Parameter name="file">../data/repeat-labels.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">750,250</Parameter>
</Parameters>
<Style name="line"> <Style name="line">
<Rule> <Rule>
@ -36,6 +39,7 @@
<StyleName>text</StyleName> <StyleName>text</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-12, -4, 12, 4</Parameter>
<Parameter name="file">../data/repeat-labels.csv</Parameter> <Parameter name="file">../data/repeat-labels.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

View file

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> <Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">750,250</Parameter>
</Parameters>
<Style name="line"> <Style name="line">
<Rule> <Rule>
@ -36,6 +39,7 @@
<StyleName>text</StyleName> <StyleName>text</StyleName>
<Datasource> <Datasource>
<Parameter name="type">csv</Parameter> <Parameter name="type">csv</Parameter>
<Parameter name="extent">-12, -4, 12, 4</Parameter>
<Parameter name="file">../data/repeat-labels.csv</Parameter> <Parameter name="file">../data/repeat-labels.csv</Parameter>
</Datasource> </Datasource>
</Layer> </Layer>

Some files were not shown because too many files have changed in this diff Show more