Yermo / geoPHPwithFeatures

Advanced geometry operations in PHP with Features Data
Other
5 stars 4 forks source link

Getting empty output on GEOJSON -> GPX #18

Closed amenk closed 6 years ago

amenk commented 6 years ago

I am getting an "empty" (no features in it) GPX output on the attached file.

654.geojson.txt

php geo_convert.php --input-path=../../654.geojson --input-format=geojson --output-path=../../654.gpx --output-format=gpx
amenk commented 6 years ago

Problem seems to be in 1a3e867733ef096b14f66b76652c04233c59829f

amenk commented 6 years ago

There should be a handling for cases where there is no meta data ... And the function may be written more elegant with a custom array sort uasort

Yermo commented 6 years ago

Want to make a pull request for it?