uk.me.parabola.mkgmap.general
Interface MapDataSource

All Known Subinterfaces:
LoadableMapDataSource, OverviewMap
All Known Implementing Classes:
ElementTestDataSource, MapArea, MapDetails, MapperBasedMapDataSource, Osm5CoastDataSource, Osm5MapDataSource, OsmBinCoastDataSource, OsmBinMapDataSource, OsmMapDataSource, OverviewMapDataSource, PolishMapDataSource

public interface MapDataSource

A source of map data. This base interface is used internally within the program.

Author:
Steve Ratcliffe

Method Summary
 Area getBounds()
          Get the area that this map covers.
 java.util.List<MapLine> getLines()
          Get the list of lines that need to be rendered to the map.
 java.util.List<Overview> getOverviews()
          Get a list of every feature that is used in the map.
 java.util.List<MapPoint> getPoints()
          Get the list of points that need to be rendered on the map.
 RoadNetwork getRoadNetwork()
          Get the high level view of the road network.
 java.util.List<MapShape> getShapes()
          Get the list of shapes that need to be rendered to the map.
 

Method Detail

getBounds

Area getBounds()
Get the area that this map covers.

Returns:
The area the map covers.

getPoints

java.util.List<MapPoint> getPoints()
Get the list of points that need to be rendered on the map.

Returns:
A list of MapPoint objects.

getLines

java.util.List<MapLine> getLines()
Get the list of lines that need to be rendered to the map. Includes lines that are part of roads.

Returns:
A list of MapLine objects.

getShapes

java.util.List<MapShape> getShapes()
Get the list of shapes that need to be rendered to the map.

Returns:
A list of MapShape objects.

getRoadNetwork

RoadNetwork getRoadNetwork()
Get the high level view of the road network. This is used to write the net and nod sections. Note that information from the net section is needed to write the RGN section if routing is wanted.

Returns:
A RoadNetwork object with all the connections between roads. If this returns null, then the NET and NOD sections should not be written.

getOverviews

java.util.List<Overview> getOverviews()
Get a list of every feature that is used in the map. As features are created a list is kept of each separate feature that is used. This goes into the .img file and is important for points and polygons although it doesn't seem to matter if lines are represented or not on my Legend Cx anyway.

Returns:
A list of all the types of point, polygon and polyline that are used in the map.