Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

gzipped gpx files failure #477

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

gzipped gpx files failure #477

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: jerome.multrier[at]gmail.com
[Submitted to the original trac issue database at 12.23pm, Tuesday, 22nd May 2007]

gpx.gz are not recognized.
I received lots of failure e-mails like :

Hi,

It looks like your GPX file

  2007_04_11T18_10_06Z.gpx.gz

failed to import. Here's the error:

  malformed XML: missing tag start
Line: 50
Position: 17682
Last 80 unconsumed characters:
<4/)� )�MQTE,	Pwh�k8N|{�~,rH�/?}��|~x��/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:346:in `pull'
/usr/local/lib/ruby/1.8/rexml/parsers/sax2parser.rb:92:in `parse'
/var/www/rails/lib/daemons/../../config/../lib/osm.rb:124:in `points'
/var/www/rails/lib/daemons/gpx_import.rb:42
/var/www/rails/lib/daemons/gpx_import.rb:22:in `each'
/var/www/rails/lib/daemons/gpx_import.rb:22
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/application.rb:158:in `start_load'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/application.rb:235:in `start'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/controller.rb:69:in `run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons.rb:136:in `run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/cmdline.rb:105:in `call'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/cmdline.rb:105:in `catch_exceptions'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons.rb:135:in `run'
lib/daemons/gpx_import_ctl:15
@openstreetmap-trac
Copy link
Author

Author: stefan.baebler+osm[at]gmail.com
[Added to the original trac issue at 5.19am, Wednesday, 23rd May 2007]

Same here, with a plain zip file (made with winzip). Unzipped GPX got parsed nicely. There are still many old zipped GPX files waiting to be imported.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 10.43am, Thursday, 24th May 2007]

That patch also make the daemon use FileUtils to remove files instead of shelling out to rm...

@openstreetmap-trac
Copy link
Author

Author: steve[at]fractalus.com
[Added to the original trac issue at 11.21am, Thursday, 24th May 2007]

applied patch and deployed, closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant