Search in sources :

Example 6 with AdminLevel

use of org.activityinfo.geoadmin.model.AdminLevel in project activityinfo by bedatadriven.

the class LocationImportForm method guessLevelColumns.

public void guessLevelColumns(GeoAdminClient client) {
    for (AdminLevel level : levelCombos.keySet()) {
        List<AdminEntity> entities = client.getAdminEntities(level);
        setLevelAttribute(level, new ColumnGuesser().forEntities(entities).findBest(source));
    }
}
Also used : AdminEntity(org.activityinfo.geoadmin.model.AdminEntity) AdminLevel(org.activityinfo.geoadmin.model.AdminLevel) ColumnGuesser(org.activityinfo.geoadmin.ColumnGuesser)

Aggregations

AdminLevel (org.activityinfo.geoadmin.model.AdminLevel)6 AdminEntity (org.activityinfo.geoadmin.model.AdminEntity)5 Envelope (com.vividsolutions.jts.geom.Envelope)1 Point (com.vividsolutions.jts.geom.Point)1 GZIPOutputStream (java.util.zip.GZIPOutputStream)1 ColumnGuesser (org.activityinfo.geoadmin.ColumnGuesser)1 Extents (org.activityinfo.model.type.geo.Extents)1