Description Usage Arguments Details Value See Also
Write the internal representation of polylines and polygons to files. Either ascii (for portability, but needs to be 'compiled' for use by maps) or directly to binary.
1 2 | map.export.ascii(ww, outfile, scale=pi/180, ndec=10)
map.export.bin(ww,outfile, scale=pi/180)
|
ww |
A list with components |
outfile |
Name of file(s) to write to. The extensions are added (see details). |
scale |
Rescaling of the data. Usually, data is writen in radians. |
ndec |
Number of decimals to write in the ascii file. |
The ascii version is written to five files with extensions '.line', '.linestats', '.gon', '.gonstats', '.name'. These files correspond to those in e.g. the source code of the 'maps' package. They are portable, but need compilation to binary before being usable. The maps package contains C code to do this at install time.
The binary code is in three files with extensions '.L', '.G', '.N'. This corresponds to the files in an installed library. It is not completely portable (e.g. endianness and compiler types influence the binary content.
No return data. The data is written to files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.