public String locType() {
        String l = get(LATITUDE, null);
        String x = get(GRID_X, null);
        String def = l != null ? LOC_TYPE_GEO : (x != null ? LOC_TYPE_GRID : LOC_TYPE_NONE);
        return get(LOC_TYPE, def);
    }
@Test
    public void defaultLocationType() {
        print(cfg);
        assertEquals("not none", BasicElementConfig.LOC_TYPE_NONE, cfg.locType());
    }