Hot answers tagged

23 votes
Accepted

Different layer styles at different scales in QGIS?

Yes, it is possible. What you need is rule-based Styling with a scale rule as shown in the image (sorry for german layout) It looks like this when you zoom in and out : keep in mind, that when you ...
LaughU's user avatar
  • 4,166
20 votes

On a map of the globe that is 1920x1080px, how big would each pixel be?

Assuming you are talking about a map of the world in Mercator Projection, Something like this: Then, You should know that not all pixels will represent the same area. There is a large amount of ...
Hasan Mustafa's user avatar
15 votes
Accepted

Putting scale bar labels below scale bar in QGIS?

I don't think there's an option yet which allows you to put the units below the scalebar. An alternative could be to: Modify your current scalebar and set its Font colour to match the background ...
Joseph's user avatar
  • 75.6k
14 votes
Accepted

How to get current scale of a Leaflet map?

You can get the current zoom level using getZoom(). Assuming that you're using the tile layer system as used by Google Maps, Bing, Open Street Map and Esri, you can use that to infer the scale - see ...
Stephen Lead's user avatar
  • 21.1k
14 votes
Accepted

Is it possible to set different scale dependent visibility for one layer classifications?

You need to use Rule based style to set the scale for primary, secondary and tertiary network, as you can see below (but with different data): You can double-click each styled label to get more ...
ahmadhanb's user avatar
  • 40.7k
12 votes
Accepted

What is WMTS' ScaleDenominator?

Standard linked by @user30184 (portal.opengeospatial.org/files/?artifact_id=35326) explicitly and precisely defines ScaleDenominator in section 6.1 "Tile matrix set – the geometry of the tiled ...
hugo's user avatar
  • 181
11 votes
Accepted

Is there any way to link the current map scale in the print layout to a text box?

Use a scale bar. After adding, right-click the scale bar, select Item properties and change Main properties - Style to Numeric and you can round the numbers by customizing the Units - Number format
user2856's user avatar
  • 65.4k
10 votes
Accepted

QGIS Print composer scale problems

EPSG:3857 doesn't conserve distances so this will depend on where on the earth you are mapping - I think the scale is calculated at the Equator. The easiest fix for this is to switch to an ...
Ian Turton's user avatar
  • 81.1k
10 votes
Accepted

Locking the scale while resizing the panels in QGIS

That's what the lock icon next to the scale does.
Emma's user avatar
  • 422
9 votes

Zoom map to a scale in Leaflet

First, a note about map scales. A map scale represented as a unitless factor (e.g. 1:50000) means that a map unit represents X map units (e.g. a meter in the map = 50 km in reality). This kind of ...
IvanSanchez's user avatar
  • 10.2k
9 votes

Is there any way to link the current map scale in the print layout to a text box?

Under text box is a button labelled "dynamic text" here you can choose different information that will be added into the text dynamically. It can also grab information from other items in ...
ThatMikaTho's user avatar
8 votes

How to change units and scale of a shapefile?

If you want to increase the size of a feature, you can use the Scale tool in ArcMap. It's an Editor tool but it's not on the toolbar by default, you'll need to add it using the Customize option for ...
Dan C's user avatar
  • 12.2k
7 votes

How to calculate pixels per meter ratio, according to Google or Bing map zoom level?

I have written this on Android and it works. Google map tiles are 256 device independent pixels. So this first line calculates a tile size in device dependent pixels. The second calculates the number ...
Howard Swope's user avatar
7 votes

How to get current scale of a Leaflet map?

If you want just the label: // add a scale at at your map. var scale = L.control.scale().addTo(map); // Get the label. var metres = scale._getRoundNum(map.containerPointToLatLng([0, map.getSize().y ...
nickves's user avatar
  • 11.5k
7 votes
Accepted

Data defined label position for more than one scale in one layer

I have to say that what you are requesting is complicated a little bit because you want the labeling to be visible at small scale clearly as well as at large scale (best fit). So, the idea here is how ...
ahmadhanb's user avatar
  • 40.7k
7 votes

Importing, moving, rotating and scaling jpg images onto OSM maps in QGIS

Since your images are without any georeferences, you can use this QGIS plugin named: Freehand raster georeferencer In QGIS, open the "Plugins" > "Manage and install plugin" dialog. Install the "...
userPyGeo's user avatar
  • 265
7 votes

QGIS 'Powers of Ten' - How to output a series of maps with x1, x10, x100 scale?

Preliminary remark: I created the maps here using EPSG:3857 (Web Mercator) for demonstration purpose only and because projection is not the issue of your question. For many tasks, however, this ...
Babel's user avatar
  • 70.6k
6 votes
Accepted

Printing to Scale only works for PDF format

A PDF file has a controlled page size that can be used by the reader app (Adobe Reader or similar) to output a set page size when printed. Image files such as TIFF, PNG, BMP etc., are not a page at ...
Midavalo's user avatar
  • 29.7k
6 votes
Accepted

Georeferencing scale error

Because of Pseudo Mercator? Pseudo Mercator is not a proper Coordinate System to measure areas. Depending where you are on Planet Earth, there can be huge differences in area-size compared to other ...
AndreasK's user avatar
  • 1,235
6 votes
Accepted

Group scale-based visibility QGIS 3

Currently there is no option to set scale-based visibility for a group / subgroup. As a workaround, you can select (highlight) the layers in the group (holding Shift key, if you are on Windows), then ...
Kazuhito's user avatar
  • 30.7k
6 votes

Scale bar for Iceland map not accurate

As Ian commented, don't use 3857 that far north if you want an accurate map. Appropriate CRS for Iceland can be found at https://epsg.io/?q=Iceland%20kind%3APROJCRS List of recommended CRS for ...
underdark's user avatar
  • 84k
6 votes

Scale feature in QGIS

You can use QAD Plugin which has a scale option, and you can enter a scale factor to scale your feature. If you are familiar with AutoCAD, this plugin works almost same, and it is very powerful. For ...
ahmadhanb's user avatar
  • 40.7k
6 votes
Accepted

Finding scale of map in QGIS

The solution You have defined a wrong CRS. To solve the problem: Right-click your layer, set CRS back to EPSG:4326. Now it is in the correct place: Always load a basemap in the background to check if ...
Babel's user avatar
  • 70.6k
6 votes
Accepted

Calculating Leaflet scale ratio for the particular zoom level?

Is there any way we can calculate the scale ratio using L.CRS.scale? Using L.CRS.scale for that kind of calculation is cumbersome and most probably unreliable in the end. The result of L.CRS.scale() ...
IvanSanchez's user avatar
  • 10.2k
6 votes
Accepted

Scaling linestrings gives incorrected final scale

If you don't use origin parameter, a geometry is scaled from its bounding box center. Therefore, use an appropriate center coordinate for origin. For example: green['geometry'].scale(2, 2, origin=(...
Kadir Şahbaz's user avatar
5 votes
Accepted

How to check my EPSG and units in R when it is not defined in proj4string?

The proj string does not contain an EPSG code. You can use EPSG:4269 or +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs. Some softwares try to guess the EPSG code from the string, and ...
AndreJ's user avatar
  • 76.6k
5 votes

Map scale based on altitude

Map resolution is in no way related to the altitude, ESRI defines resolution as The detail with which a map depicts the location and shape of geographic features. The larger the map scale, the ...
Hasan Mustafa's user avatar
5 votes

QGIS Print composer scale problems

Generally speaking the UTM grids are a good place to start if measurements or scales are involved. In your particular case (Switzerland) this would be UTM 32N and I'd recommend the ED50 (European ...
Phil G's user avatar
  • 713
5 votes
Accepted

Scale difference between WGS84 WebMercator and Lambert projection

Map scales are never constant: they vary with location and even can change with orientation. The nominal WebMercator scale applies only at the Equator. Inherent distortion in the Mercator ...
whuber's user avatar
  • 69.7k
5 votes
Accepted

How to translate John Snow data sets to map coordinates

Perhaps evaluate the shapefile from http://donboyes.com/2011/10/14/john-snow-and-serendipity it has 578 points. I don't think trying to relate the HistData Snow Deaths to Robin Wilson's (@robintw) ...
user2856's user avatar
  • 65.4k

Only top scored, non community-wiki answers of a minimum length are eligible