Skip to content

Instantly share code, notes, and snippets.

@YenTheFirst
Last active December 14, 2015 02:59
Show Gist options
  • Save YenTheFirst/5018096 to your computer and use it in GitHub Desktop.
Save YenTheFirst/5018096 to your computer and use it in GitHub Desktop.
simple test case for size differences between python-mapnik and node-mapnik
<?xml version="1.0" encoding="utf-8"?>
<!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" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Parameters>
<Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter>
<Parameter name="center">0,0,2</Parameter>
<Parameter name="format">png</Parameter>
<Parameter name="minzoom">0</Parameter>
<Parameter name="maxzoom">22</Parameter>
</Parameters>
<Style name="simpletesttable" filter-mode="first" >
</Style>
<Style name="simpletesttable-substyle3" filter-mode="first" >
<Rule>
<PolygonSymbolizer fill="#008000" />
</Rule>
</Style>
<Style name="simpletesttable-substyle2" filter-mode="first" >
<Rule>
<PolygonSymbolizer fill="#0000ff" />
</Rule>
</Style>
<Style name="simpletesttable-substyle1" filter-mode="first" >
<Rule>
<PolygonSymbolizer fill="#ff0000" />
</Rule>
</Style>
<Layer name="simpletesttable"
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>simpletesttable-substyle1</StyleName>
<StyleName>simpletesttable-substyle2</StyleName>
<StyleName>simpletesttable-substyle3</StyleName>
<StyleName>simpletesttable</StyleName>
<Datasource>
<Parameter name="type"><![CDATA[postgis]]></Parameter>
<Parameter name="table"><![CDATA[simple_test_table]]></Parameter>
<Parameter name="key_field"><![CDATA[]]></Parameter>
<Parameter name="geometry_field"><![CDATA[the_geom]]></Parameter>
<Parameter name="extent_cache"><![CDATA[auto]]></Parameter>
<Parameter name="extent"><![CDATA[-81.9247844810013,24.5442845630757,-80.031012594429,27.8599594476958]]></Parameter>
<Parameter name="dbname"><![CDATA[test_db]]></Parameter>
<Parameter name="simplify_geometries"><![CDATA[true]]></Parameter>
<Parameter name="host"><![CDATA[db_host]]></Parameter>
<Parameter name="user"><![CDATA[username]]></Parameter>
<Parameter name="password"><![CDATA[password]]></Parameter>
</Datasource>
</Layer>
</Map>
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment