kopia lustrzana https://github.com/hholzgra/ocitysmap
Bug fix: CSV file should be generated *after* applying the grid
* The CSV file should be generated after calling apply_grid() method which updates the grid location of each label. Signed-off-by: David MENTRE <dmentre@linux-france.org>stable
rodzic
d5e84891af
commit
eb8f41d3d9
|
@ -80,10 +80,6 @@ class SinglePageRenderer(Renderer):
|
|||
LOG.warning("Designated area leads to an empty index")
|
||||
self.street_index = None
|
||||
|
||||
# Dump the CSV street index
|
||||
if self.street_index:
|
||||
self.street_index.write_to_csv(rc.title, '%s.csv' % file_prefix)
|
||||
|
||||
self._grid_legend_margin_pt = \
|
||||
min(Renderer.GRID_LEGEND_MARGIN_RATIO * self.paper_width_pt,
|
||||
Renderer.GRID_LEGEND_MARGIN_RATIO * self.paper_height_pt)
|
||||
|
@ -156,6 +152,10 @@ class SinglePageRenderer(Renderer):
|
|||
if self.grid and self.street_index:
|
||||
self.street_index.apply_grid(self.grid)
|
||||
|
||||
# Dump the CSV street index
|
||||
if self.street_index:
|
||||
self.street_index.write_to_csv(rc.title, '%s.csv' % file_prefix)
|
||||
|
||||
# Commit the internal rendering stack of the map
|
||||
self._map_canvas.render()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue