fixed parameters order in image reader
This commit is contained in:
parent
0dbaeafbe9
commit
4529e83562
2 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,6 @@ raster_src = Split(
|
|||
libraries = []
|
||||
if env['PLATFORM'] == 'Darwin':
|
||||
libraries.append('mapnik')
|
||||
if env['BIDI'] : libraries.append('fribidi')
|
||||
|
||||
raster_inputdriver = env.SharedLibrary('raster', source=raster_src, SHLIBPREFIX='', SHLIBSUFFIX='.input', LIBS=libraries)
|
||||
|
||||
|
|
|
@ -54,11 +54,14 @@ feature_ptr raster_featureset<LookupPolicy>::next()
|
|||
feature_ptr feature(new Feature(++id_));
|
||||
try
|
||||
{
|
||||
std::auto_ptr<ImageReader> reader(mapnik::get_image_reader(curIter_->format(),curIter_->file()));
|
||||
std::auto_ptr<ImageReader> reader(mapnik::get_image_reader(curIter_->file(),curIter_->format()));
|
||||
|
||||
std::cout << "READER = " << curIter_->format() << " " << curIter_->file() << "\n";
|
||||
if (reader.get())
|
||||
{
|
||||
int image_width=reader->width();
|
||||
int image_height=reader->height();
|
||||
|
||||
if (image_width>0 && image_height>0)
|
||||
{
|
||||
CoordTransform t(image_width,image_height,curIter_->envelope(),0,0);
|
||||
|
|
Loading…
Add table
Reference in a new issue