3 votes

Get layer's unit of measurement as string in PyQGIS

You can get it with the following code : QgsUnitTypes.encodeUnit(self.cmbLyrSelect.currentLayer().crs().mapUnits())
user avatar
  • 11.8k
1 vote

Custom projection in Centimetre (based on EPSG:28350)

the one that works is this proj4 def (changed units to cm) +proj=utm +zone=50 +south +ellps=GRS80 +units=cm +no_defs based on epsg:28350 proj4 def +proj=utm +zone=50 +south +ellps=GRS80 +units=m +...
user avatar
  • 511

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