Skip to content

Change papersize city background #100

@JulesL2

Description

@JulesL2

I have been looking at this TODO:

# TODO(upgrade): Change the paper size. For now, just copy the full data and let the plot hide the rest

I did create 2 functions to check if surfaces or roads were inside bounds or outside and I did the comparison on Berlin marathon (see the PR that mention this issue):

Without these functions:

  • change_papersize function's cost is 0
  • Drawing cost is 1.7s
  • Total cost: 1.7s
  • Size of the A4 poster for Berlin : 8.4MB

With these functions

  • change_papersize function's cost is 3.8s
  • Drawing cost is 1.1s
  • Total cost: 4.9s
  • Size of the A4 poster for Berlin : 6.4MB

Conclusion:

We got a 25% decrease in poster size but a major rise in time spent to get the poster (3s)

Remark:

90% of the cost if the change papersize comes from roads, we could imagine enhancing the pretreatment when creating the roads to reduce this cost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions