add json export
This commit is contained in:
parent
b4dd0edd44
commit
98b7b7312c
2 changed files with 49 additions and 5 deletions
|
|
@ -708,6 +708,15 @@ public final class OsmTrack
|
|||
|
||||
public List<String> iternity;
|
||||
|
||||
public void writeJson( String filename ) throws Exception
|
||||
{
|
||||
BufferedWriter bw = new BufferedWriter( new FileWriter( filename ) );
|
||||
|
||||
bw.write( formatAsGeoJson() );
|
||||
bw.close();
|
||||
}
|
||||
|
||||
|
||||
public String formatAsGeoJson()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder( 8192 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue