浏览代码

Earth units not available in simple XY location (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33372 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年之前
父节点
当前提交
1c5af2e27f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ps/ps.map/get_scalebar.c

+ 4 - 0
ps/ps.map/get_scalebar.c

@@ -76,6 +76,10 @@ int read_scalebar(void)
 		sb.units = SB_UNITS_AUTO;
 		continue;
 	    }
+	    else if (G_projection() == PROJECTION_XY) {
+		error(key, data,
+		  "Earth units not available in simple XY location");
+	    }
 	    else if (strcmp(data, "meters") == 0) {
 		sb.units = SB_UNITS_METERS;
 		continue;