Skip to content
Snippets Groups Projects
Commit 7b8efca7 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: change scale + add output

parent 9c4950df
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ int main(int argc, char * argv[])
origin[1] = 44.;//UL lat
vectorDataRendering->SetOrigin(origin);
ImageType::SpacingType spacing;
spacing[0] = 0.001;
spacing[1] = -0.001;
spacing[0] = 0.0005;
spacing[1] = -0.0005;
vectorDataRendering->SetSpacing(spacing);
......
......@@ -230,6 +230,7 @@ namespace otb
// std::cout << "Envelope: " << lyr.envelope() << std::endl;
std::cout << "Envelope: " << envelope << std::endl;
std::cout << "Map scale: " << m_Map.scale_denominator() << std::endl;
mapnik::Image32 buf(m_Map.getWidth(),m_Map.getHeight());
mapnik::agg_renderer<mapnik::Image32> ren(m_Map,buf);
ren.apply();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment