(String s)
| 951 | } |
| 952 | |
| 953 | double s2d(String s) { |
| 954 | if (s==null) return 0.0; |
| 955 | if (s.startsWith("\\")) |
| 956 | s = s.substring(1); |
| 957 | Double d; |
| 958 | try {d = Double.valueOf(s);} |
| 959 | catch (NumberFormatException e) {d = null;} |
| 960 | if (d!=null) |
| 961 | return(d.doubleValue()); |
| 962 | else |
| 963 | return(0.0); |
| 964 | } |
| 965 | |
| 966 | void getSpatialScale(FileInfo fi, String scale) { |
| 967 | double xscale=0, yscale=0; |
no test coverage detected