merge 0.7. branch changes back into trunk
This commit is contained in:
parent
5e2e6a76ad
commit
f60fa76242
5 changed files with 34 additions and 5 deletions
|
@ -138,6 +138,7 @@ opts.AddVariables(
|
||||||
('BOOST_TOOLKIT','Specify boost toolkit, e.g., gcc41.','',False),
|
('BOOST_TOOLKIT','Specify boost toolkit, e.g., gcc41.','',False),
|
||||||
('BOOST_ABI', 'Specify boost ABI, e.g., d.','',False),
|
('BOOST_ABI', 'Specify boost ABI, e.g., d.','',False),
|
||||||
('BOOST_VERSION','Specify boost version, e.g., 1_35.','',False),
|
('BOOST_VERSION','Specify boost version, e.g., 1_35.','',False),
|
||||||
|
('BOOST_PYTHON_LIB','Specify library name or full path to boost_python lib (e.g. "boost_python-py26" or "/usr/lib/libboost_python.dylib")',''),
|
||||||
|
|
||||||
# Variables for required dependencies
|
# Variables for required dependencies
|
||||||
('FREETYPE_CONFIG', 'The path to the freetype-config executable.', 'freetype-config'),
|
('FREETYPE_CONFIG', 'The path to the freetype-config executable.', 'freetype-config'),
|
||||||
|
@ -358,7 +359,7 @@ def rollback_option(context,variable):
|
||||||
if item.key == variable:
|
if item.key == variable:
|
||||||
env[variable] = item.default
|
env[variable] = item.default
|
||||||
|
|
||||||
def FindBoost(context, prefixes):
|
def FindBoost(context, prefixes, thread_flag):
|
||||||
"""Routine to auto-find boost header dir, lib dir, and library naming structure.
|
"""Routine to auto-find boost header dir, lib dir, and library naming structure.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -669,7 +670,7 @@ if not preconfigured:
|
||||||
else:
|
else:
|
||||||
thread_flag = ''
|
thread_flag = ''
|
||||||
|
|
||||||
conf.FindBoost(BOOST_SEARCH_PREFIXES)
|
conf.FindBoost(BOOST_SEARCH_PREFIXES,thread_flag)
|
||||||
|
|
||||||
# get boost version from boost headers rather than previous approach
|
# get boost version from boost headers rather than previous approach
|
||||||
# of fetching from the user provided INCLUDE path
|
# of fetching from the user provided INCLUDE path
|
||||||
|
|
|
@ -30,7 +30,18 @@ install_prefix = env['DESTDIR'] + '/' + prefix
|
||||||
|
|
||||||
linkflags = ''
|
linkflags = ''
|
||||||
libraries = ['mapnik','png','jpeg']
|
libraries = ['mapnik','png','jpeg']
|
||||||
libraries.append('boost_python%s' % env['BOOST_APPEND'])
|
headers = [env['PYTHON_INCLUDES']] + env['CPPPATH']
|
||||||
|
|
||||||
|
if env['BOOST_PYTHON_LIB']:
|
||||||
|
if os.path.sep in env['BOOST_PYTHON_LIB']:
|
||||||
|
pylib_dir = os.path.dirname(env['BOOST_PYTHON_LIB'])
|
||||||
|
env.Prepend(LIBPATH = pylib_dir)
|
||||||
|
pylib_name = os.path.splitext(os.path.basename(env['BOOST_PYTHON_LIB']))[0].replace('lib','',1)
|
||||||
|
libraries.append(pylib_name)
|
||||||
|
else:
|
||||||
|
libraries.append(env['BOOST_PYTHON_LIB'].replace('lib','',1))
|
||||||
|
else:
|
||||||
|
libraries.append('boost_python%s' % env['BOOST_APPEND'])
|
||||||
|
|
||||||
if env['PLATFORM'] == 'Darwin':
|
if env['PLATFORM'] == 'Darwin':
|
||||||
libraries.append(env['ICU_LIB_NAME'])
|
libraries.append(env['ICU_LIB_NAME'])
|
||||||
|
@ -82,7 +93,7 @@ if env['PLATFORM'] == 'Darwin':
|
||||||
else:
|
else:
|
||||||
linkflags = '-lpython%s' % env['PYTHON_VERSION']
|
linkflags = '-lpython%s' % env['PYTHON_VERSION']
|
||||||
|
|
||||||
headers = [env['PYTHON_INCLUDES']] + env['CPPPATH']
|
|
||||||
|
|
||||||
paths = '''
|
paths = '''
|
||||||
"""Configuration paths of Mapnik fonts and input plugins (autogenerated by SCons)."""
|
"""Configuration paths of Mapnik fonts and input plugins (autogenerated by SCons)."""
|
||||||
|
|
|
@ -34,9 +34,13 @@
|
||||||
#include <mapnik/utils.hpp>
|
#include <mapnik/utils.hpp>
|
||||||
#include <mapnik/projection.hpp>
|
#include <mapnik/projection.hpp>
|
||||||
#include <mapnik/scale_denominator.hpp>
|
#include <mapnik/scale_denominator.hpp>
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
#include <mapnik/wall_clock_timer.hpp>
|
#include <mapnik/wall_clock_timer.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
//stl
|
//stl
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -70,9 +74,11 @@ namespace mapnik
|
||||||
|
|
||||||
void apply()
|
void apply()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
mapnik::wall_clock_progress_timer t(std::clog, "map rendering took: ");
|
mapnik::wall_clock_progress_timer t(std::clog, "map rendering took: ");
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
Processor & p = static_cast<Processor&>(*this);
|
Processor & p = static_cast<Processor&>(*this);
|
||||||
p.start_map_processing(m_);
|
p.start_map_processing(m_);
|
||||||
|
|
||||||
|
@ -106,9 +112,11 @@ namespace mapnik
|
||||||
void apply_to_layer(Layer const& lay, Processor & p,
|
void apply_to_layer(Layer const& lay, Processor & p,
|
||||||
projection const& proj0,double scale_denom)
|
projection const& proj0,double scale_denom)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
wall_clock_progress_timer timer(clog, "end layer rendering: ");
|
wall_clock_progress_timer timer(clog, "end layer rendering: ");
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
p.start_layer_processing(lay);
|
p.start_layer_processing(lay);
|
||||||
boost::shared_ptr<datasource> ds=lay.datasource();
|
boost::shared_ptr<datasource> ds=lay.datasource();
|
||||||
if (ds)
|
if (ds)
|
||||||
|
|
|
@ -20,9 +20,11 @@
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#ifndef MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
#ifndef MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
||||||
#define MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
#define MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
||||||
|
|
||||||
|
/*
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
@ -88,4 +90,6 @@ namespace mapnik {
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
*/
|
||||||
#endif // MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
#endif // MAPNIK_WALL_CLOCK_TIMER_INCLUDED
|
||||||
|
|
|
@ -26,9 +26,11 @@
|
||||||
#include <mapnik/global.hpp>
|
#include <mapnik/global.hpp>
|
||||||
#include <mapnik/ptree_helpers.hpp>
|
#include <mapnik/ptree_helpers.hpp>
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
#include <mapnik/wall_clock_timer.hpp>
|
#include <mapnik/wall_clock_timer.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
#include "connection_manager.hpp"
|
#include "connection_manager.hpp"
|
||||||
#include "postgis.hpp"
|
#include "postgis.hpp"
|
||||||
|
@ -450,9 +452,12 @@ boost::shared_ptr<IResultSet> postgis_datasource::get_resultset(boost::shared_pt
|
||||||
|
|
||||||
featureset_ptr postgis_datasource::features(const query& q) const
|
featureset_ptr postgis_datasource::features(const query& q) const
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
mapnik::wall_clock_progress_timer timer(clog, "end feature query: ");
|
mapnik::wall_clock_progress_timer timer(clog, "end feature query: ");
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
Envelope<double> const& box = q.get_bbox();
|
Envelope<double> const& box = q.get_bbox();
|
||||||
double scale_denom = q.scale_denominator();
|
double scale_denom = q.scale_denominator();
|
||||||
|
|
Loading…
Reference in a new issue