New answers tagged scale
Have you looked at the Scale Property (Map Options) class? Gets or sets the map's scale. Optional but recommended for scale-dependent layers or reference scales set. Can be determined based on PrintParameter Map/Layers. Takes precedence over Extent. Output map is drawn at requested scale centered on the center of extent.
First, would the Map.SnapToLevels property help? Otherwise, more generally, look at the Map.Resolution property, the ground size of map pixels. You could force it to a value thusly: "Setting the Map.MaximumResolution and the Map.MinimumResolution to the same value essentially locks the Map to a specific scale; meaning that you can only Pan around". Maybe ...
The scale will inevitably effect the extent for any given area and that will be limited by the size of your paper (so an A4 sheet @ 1:50,000 scale will be approximately a half of the possible extent of an A3 sheet). Contrariwise, setting the map extent for a given area of paper will also inevitable dictate the scale. You cannot adjust one without ...
What is the source of your map data? You should look for the projection it uses (maybe something like a UTM Zone number with WGS 84, NAD 83, or similar specified). Once you know that, open the layer properties (right-click on the layer in the QGIS Layers window, click Properties) and click the Specify button in the "Coordinate reference system" section. Use ...
Top 50 recent answers are included