fix spherical mercator proj4 string in tests to always include +over (to avoid proj4 trying to wrap) and +wktext (to ensure apps like ogr/gdal retain +over during conversion through wkt representation)
This commit is contained in:
parent
49fd1f93d1
commit
52ac7d8d3a
6 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
#include <boost/config/warning_disable.hpp>
|
||||
//#include <boost/config/warning_disable.hpp>
|
||||
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
namespace fs = boost::filesystem;
|
||||
|
@ -6,8 +6,8 @@ using fs::path;
|
|||
namespace sys = boost::system;
|
||||
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <fstream>
|
||||
//#include <boost/bind.hpp>
|
||||
//#include <fstream>
|
||||
#include <iostream>
|
||||
#include <mapnik/font_engine_freetype.hpp>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Map srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" background-color="steelblue" minimum-version="0.7.2">
|
||||
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="steelblue" minimum-version="0.7.2">
|
||||
<Style name="style">
|
||||
|
||||
<!-- Asia - default dark color behind light polygon
|
||||
|
@ -37,7 +37,7 @@
|
|||
<PolygonSymbolizer fill="rgb(212,9,14)"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer name="world" srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs">
|
||||
<Layer name="world" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<StyleName>style</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file">../../data/shp/world_merc</Parameter>
|
||||
|
|
|
@ -16,7 +16,7 @@ nik2img.py tests/data/good_maps/bounds_clipping.xml t.png -d 256 256 -e -2003750
|
|||
-->
|
||||
|
||||
<Map
|
||||
srs="+init=epsg:900913"
|
||||
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
|
||||
minimum-version="2.0.0"
|
||||
buffer-size="128"
|
||||
maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Map srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" background-color="steelblue" minimum-version="0.7.2">
|
||||
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="steelblue" minimum-version="0.7.2">
|
||||
|
||||
<Style name="labels">
|
||||
<Rule title="foo">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Include xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<Layer name="world_borders" srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs">
|
||||
<Layer name="world_borders" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<StyleName>world_borders_style</StyleName>
|
||||
<StyleName>point_style</StyleName>
|
||||
<Datasource>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<Include xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<Layer name="world_borders" minzoom="&zoom02min;" maxzoom="&zoom00max;" srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs">
|
||||
<Layer name="world_borders" minzoom="&zoom02min;" maxzoom="&zoom00max;" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<StyleName>world_borders_style</StyleName>
|
||||
<StyleName>point_style</StyleName>
|
||||
<Datasource>
|
||||
|
|
Loading…
Reference in a new issue