Package uk.me.parabola.imgfmt.app.trergn

The TRE and RGN files

See:
          Description

Interface Summary
InternalFiles Interface to pass around the internal files in the map without passing the whole thing.
 

Class Summary
ExtTypeAttributes  
MapObject An object that appears in a map.
MapValues Class to calculate the values that occur at offset 9a in the TRE header.
Overview This is for polyline, polygon and point overviews.
Point Represents a particular point object on a map.
PointOverview Points have both a type and a subtype.
Polygon A Polygon on a garmin map is pretty much treated like a line.
PolygonOverview Polygons just have a type (no subtype).
Polyline Represents a multi-segment line.
PolylineOverview Polylines have a type and no subtype.
RGNFile The region file.
RGNFileReader The region file.
RGNHeader The header for the RGN file.
SubdivData Used to initialise a subdivision when we are reading it from a file, rather than creating it out of thin air.
Subdivision The map is divided into areas, depending on the zoom level.
TREFile This is the file that contains the overview of the map.
TREFileReader This is the file that contains the overview of the map.
TREHeader  
Zoom A zoom level (or map level) determines the amount of detail that is shown as you zoom in and out.
 

Package uk.me.parabola.imgfmt.app.trergn Description

The TRE and RGN files

These files are so inter dependant that it only makes sense to put them into the same package.

The TRE file

This file describes the structure of the map. It contains the zoom levels that exist in the map and how the map is divided up.

There are in effect several copies of the map at different levels of detail. Each level is divided up into several areas known as subdivisions. These subdivisions form a tree, with more detailed ones being children of the higher (less detailed) levels.

The RGN file

This file contains the detailed location and path of all the map objects. Pointers from the TRE file indicate the start of the definition of a map object and information from the TRE section needs to be used to work out where the location of the map object is.