3
votes
Accepted
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())
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 +...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
coordinate-system × 7751qgis × 1863
arcgis-desktop × 966
python × 511
raster × 439
gdal × 438
r × 403
coordinates × 371
shapefile × 330
arcmap × 325
proj × 319
wgs84 × 317
postgis × 278
epsg × 267
latitude-longitude × 229
utm × 219
arcpy × 191
convert × 180
datum × 167
georeferencing × 166
openlayers-2 × 156
openlayers × 147
gdalwarp × 138
geoserver × 133
geotiff-tiff × 129