[OSM-talk] GPX upload via API (was: Re: gpx batch upload in java)

Guilhem Bonnefille guilhem.bonnefille at gmail.com
Thu Aug 16 08:57:06 BST 2007


On 7/25/07, Christof Dallermassl <cdaller.hw at gmx.at> wrote:
> I just added a java class that allows to upload one or more gpx files in
>   batch mode. Check out at
> http://svn.openstreetmap.org/applications/utils/gps-tracks/jgpxupload/

Reading at the code, I do not understand the 3 following lines:
            String urlGpxName =
URLEncoder.encode(gpxName.replaceAll("\\.","_"), "UTF-8");
            String urlDesc =
URLEncoder.encode(description.replaceAll("\\.","_"), "UTF-8");
            String urlTags =
URLEncoder.encode(tags.replaceAll("\\.","_"), "UTF-8");
more precisly, what's the goal of the call ".replaceAll("\\.","_")"?
I understand that this replace all dots by an underscore. Am I right?
What's for?

Thanks for any tips.
-- 
Guilhem BONNEFILLE
-=- #UIN: 15146515 JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
-=- mailto:guilhem.bonnefille at gmail.com
-=- http://nathguil.free.fr/




More information about the talk mailing list