logo separator

[mkgmap-dev] Feature request: accept osm data from stdin

From Greg Troxel gdt at ir.bbn.com on Tue Nov 2 12:11:41 GMT 2010

Marko Mäkelä <marko.makela at iki.fi> writes:

> On Tue, Nov 02, 2010 at 10:22:33AM +0100, Lambertus wrote:
>>Would it be possible that Mkgmap supports reading the OSM data from 
>>stdin? Splitter is capable of doing so and it would eliminate the need 
>>for a temporary file if Mkgmap could do so too.
>
> If you are using a unix-like system, --input-file=/dev/stdin or 
> /dev/fd/0 could be a feasible workaround. It generally works for 
> programs that do not attempt to seek (or rewind) the input file.

True, but it would be nice for mkgmap to read from stdin anyway, since
the notion of stdin being available as a file is non-portable - I'm
pretty sure POSIX does not specify it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20101102/3a93ad5a/attachment.bin 


More information about the mkgmap-dev mailing list