Skip to content

The purpose of this utility is to reduce the load on rendering components, such as [Leaflet](https://leafletjs.com/), when they render multiple files simultaneously.

Notifications You must be signed in to change notification settings

BalSla/gpxcompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPX compressor

The purpose of this utility is to reduce the load on rendering components, such as Leaflet, when they render multiple files simultaneously.

To do

  • Change date in GPX to today (by default) using data
  • Build output file name and path basing on date provided in parametes plus root folder
  • Add root folder to config file
  • Read root folder from config file
  • Add to this file description how to register executable file in MacOS

Compressing

gpxcomopressor -input <name> -output <new_name>  -epsilon <epsilon_value>

Where: input - gpx name output - compressed gpx (output) epsilon - compression accuracy (50m accuracy - approximately 0.0000045 )

Batch compressing

find YOUR_FOLDER -type f -name "*.gpx" -exec sh -c 'go run . "$0" NEW_FOLDER/c_$(basename "$0") 0.0000045' {} \;

Credits

gpxcompressor is based on:

https://github.com/tkrajina/gpxgo

License

gpxcompressor is licensed under the Apache License, Version 2.0

About

The purpose of this utility is to reduce the load on rendering components, such as [Leaflet](https://leafletjs.com/), when they render multiple files simultaneously.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages