Global Positioning System Reference
In-Depth Information
File name
Process step
Ratio
Time
File size
germany.osm.bz2
download
1h 15 min
1,207,301,173
germany.osm
uncompress
8%
2h 30 min
14,875,159,473
germany.clean.osm
clean
73%
1h 52 min
10,910,796,283
germany.clean.osm.bz2
recompress
89%
3h 54 min
1,081,087,220
9h 31 min
28,074,344,149
Table7.4. Preprocessing Germany for a map compilation.
template for a completely different task like the LinkCompiler introduced
in Section 8.3.2 .
The batch file OSM.compiler/deliveries/processDelivery.bat wraps up
the preprocessing stage. You should interactively test different regular
expressions on a smaller file and remove information not needed for the final
product to reduce the size. 9 The implicitly-called batch file OSM.compiler
/tools/tools.bat is used to configure all tools for a compilation. The next
development cycle to improve the compilation for early error detection adds
log files for every command line and another process would search through
these files to look for error messages.
Another thing is obvious: there are now two versions of the OSMparser
for different OSM file types. Hence, the map compiler needs a versioning
system. In practice, the OSMparser.java file can be placed in its tools
folder, and the batch files should compile the file on the fly (with the
javac command line). The compiler should be labeled for every production
run, since products usually have to be supported for at least one decade.
(The challenges of forward and backward compatibility are great.) The
OSM files should not be checked into the versioning system. Instead, they
should be renamed with the time of delivery (or download) and archived
for a potential re-production.
7.10
Rendering OpenStreetMaps with Kosmos
After processing the file Germany, clipping RGB-NW , and splitting it into
layers, the result is similar to the data downloaded with JOSM. The sample
compiler was created to give an idea of map processing and to show ways
to process much bigger bounding boxes than JOSM can download.
Before extending RGB-NW to RGB have a look at the result file that was
manually split, cleaned, and merged back to one file of about 500 KB:
../products/RGB-NW/osm/RGB-NW2010.osm
9 In the next chapter, the Germany file will be reduced significantly.
 
Search WWH ::




Custom Search