[josm-dev] Save file dialog
Dirk Stöcker
openstreetmap at dstoecker.de
Tue Jul 8 12:03:04 BST 2008
On Mon, 7 Jul 2008, Frederik Ramm wrote:
>> I need to add osm/gpx file extension seperation (first three files).
>
> Why?
>
> Currently, you *can* save any OSM layer as a GPX file. It seems to me
> that your code would disable this feature, woudln't it?
No. It wouldn't.
Currently when you save a GPX layer and enter "test", then josm makes
test.osm from this and later complains about invalid extension. The patch
now adds "osm" for OSM and "gpx" for GPX files. As this is only the
default extension, adding gpx for saving an OSM file is still possible.
The result will be a GPX file? What's the purpose of this?
This is actually what the bug report really is about - saving GPX, not
OSM.
Additionally I introduced a title line, so the dialog now tells you,
whether you save GPX or OSM (Because until I researched for this bug I
did not know, that selecting a different layer affects saving). And the
bug clearly tells me I'm not the only one.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list