You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for geoPHP. I am another Google map API dev that is converting to Leaflet. Alas, Leaflet lacks native support for KML/KMZ.
Once a day several KMZ files are produced and hosted on a federal FTP server. I need to display this data on a map in the browser. I manually converted one KMZ file to KML and then wrote a short PHP script to convert the KML to geoJSON using geoPHP. That conversion failed for the reason that coordinates.../coordinates is one looong csv string. Not a line break in sight.
It has been my experience that this way of presenting coordinates is quite common.
I modified the pentagon.kml file that comes with geoPHP so coordinates.../coordinates is one long csv string. Then I made a short script to demonstrate the error message.
Error message: PHP Fatal error: Uncaught exception 'Exception' with message 'Cannot construct a LineString with a single point' in /home/mapping1/usr/geophp/lib/geometry/LineString.class.php:18
The text was updated successfully, but these errors were encountered:
First, thank you for geoPHP. I am another Google map API dev that is converting to Leaflet. Alas, Leaflet lacks native support for KML/KMZ.
Once a day several KMZ files are produced and hosted on a federal FTP server. I need to display this data on a map in the browser. I manually converted one KMZ file to KML and then wrote a short PHP script to convert the KML to geoJSON using geoPHP. That conversion failed for the reason that coordinates.../coordinates is one looong csv string. Not a line break in sight.
It has been my experience that this way of presenting coordinates is quite common.
I modified the pentagon.kml file that comes with geoPHP so coordinates.../coordinates is one long csv string. Then I made a short script to demonstrate the error message.
File: https://mappingsupport.com/p/bug_report/pentagon_fail.kml
Script: https://mappingsupport.com/p/bug_report/simple_geophp_test.php
Error message: PHP Fatal error: Uncaught exception 'Exception' with message 'Cannot construct a LineString with a single point' in /home/mapping1/usr/geophp/lib/geometry/LineString.class.php:18
The text was updated successfully, but these errors were encountered: