|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.reader.MapperBasedMapDataSource
uk.me.parabola.mkgmap.reader.polish.PolishMapDataSource
public class PolishMapDataSource
Read an data file in Polish format. This is the format used by a number of other garmin map making programs notably cGPSmapper.
As the input format is designed for garmin maps, it is fairly easy to read into mkgmap. Not every feature of the format is read yet, but it shouldn't be too difficult to add them in as needed.
Now will place elements at the level specified in the file and not at the automatic level that is used in eg. the OSM reader.
Field Summary |
---|
Fields inherited from class uk.me.parabola.mkgmap.reader.MapperBasedMapDataSource |
---|
mapper |
Constructor Summary | |
---|---|
PolishMapDataSource()
|
Method Summary | |
---|---|
java.lang.String[] |
copyrightMessages()
Get the copyright message. |
boolean |
isFileSupported(java.lang.String name)
Determines if the file (or other resource) is supported by this map data source. |
void |
load(java.lang.String name)
Load the .osm file and produce the intermediate format. |
LevelInfo[] |
mapLevels()
Get the map levels for this map. |
static java.lang.String |
unescape(java.lang.String s)
Deal with the polish map escape codes of the form ~[0x##]. |
Methods inherited from class uk.me.parabola.mkgmap.reader.MapperBasedMapDataSource |
---|
addBackground, addBackground, addBoundaryLine, config, getBounds, getConfig, getLines, getMapper, getOverviews, getPoints, getRoadNetwork, getShapes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.me.parabola.mkgmap.general.MapDataSource |
---|
getBounds, getLines, getOverviews, getPoints, getRoadNetwork, getShapes |
Methods inherited from interface uk.me.parabola.util.Configurable |
---|
config |
Constructor Detail |
---|
public PolishMapDataSource()
Method Detail |
---|
public boolean isFileSupported(java.lang.String name)
LoadableMapDataSource
isFileSupported
in interface LoadableMapDataSource
name
- The file (or other resource) to check.
public void load(java.lang.String name) throws java.io.FileNotFoundException, FormatException
load
in interface LoadableMapDataSource
name
- The filename to read.
java.io.FileNotFoundException
- If the file does not exist.
FormatException
- For any kind of malformed input.public LevelInfo[] mapLevels()
LoadableMapDataSource
Note that it does not include the top empty level as we will always generate that in the main program automatically.
mapLevels
in interface LoadableMapDataSource
public java.lang.String[] copyrightMessages()
copyrightMessages
in interface LoadableMapDataSource
public static java.lang.String unescape(java.lang.String s)
s
- The original string that may contain codes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |