Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Check if a geojson file exists #89

Closed joubu closed 10 months ago

joubu commented 8 years ago

The current code use the omnivore plugin to display gpx data. It works great but generate an ajax request to the server for each gpx files. Once the gpx data are retrieved, the parse.gpx (or whatever) function will generate a geojson structure to display the polygon. If you have a lot of gpx files, this method could be a high time-consuming process.

xbgmsharp commented 8 years ago

Thanks for the commit. It does require a lot of third party tool. NodeJS and GPSBabel, A lot of user use Windows, it ill be difficult. We need a more straight forward and easy approach. We could convert the GPX file directly to GeoJSON on upload. It would avoid the user to run the NodeJS app. If the user still have issue, we could provide an alternative to optimize/reduce the data via GPSBabel.

xbgmsharp commented 8 years ago

What about: