Search in sources :

Example 1 with InternalFiles

use of uk.me.parabola.imgfmt.app.trergn.InternalFiles in project mkgmap by openstreetmap.

the class Map method topLevelSubdivision.

/**
 * Create the top level division. It must be empty afaik and cover
 * the whole area of the map.
 *
 * @param area The whole map area.
 * @param zoom The zoom level that you want the top level to be
 * at.  Its going to be at least level 1.
 * @return The top level division.
 */
public Subdivision topLevelSubdivision(Area area, Zoom zoom) {
    // May not always be necessary/desired
    zoom.setInherited(true);
    InternalFiles ifiles = this;
    Subdivision sub = Subdivision.topLevelSubdivision(ifiles, area, zoom);
    rgnFile.startDivision(sub);
    return sub;
}
Also used : InternalFiles(uk.me.parabola.imgfmt.app.trergn.InternalFiles) Subdivision(uk.me.parabola.imgfmt.app.trergn.Subdivision)

Aggregations

InternalFiles (uk.me.parabola.imgfmt.app.trergn.InternalFiles)1 Subdivision (uk.me.parabola.imgfmt.app.trergn.Subdivision)1