# Remove wkb and geometry fields from propertiesunset($properties['wkb']);unset($properties['SHAPE']);
See:https://github.com/bmcbride/PHP-Database-GeoJSON/blob/master/mysql_geojson.php
I will get to using standard geometry format, BUT for now I have all my coordinates in this format:
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]
and simply want to store those coordinates in a text field...and pull that field through the json_encode process to creata valid GeoJSON format to display the Polygon onto a Leaflet map.How do I remove the quotes prior/after???
"coordinates": "[[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] "
--
---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"unitID":"001","milesSq":"111.000000","acres":"222.000000"},"geometry":[{"type":"Polygon","coordinates":"[[[-109.048595341028587, 40.834756771179649], [-108.966734749488324, 40.562222787215255], [-109.048595341028587, 40.834756771179649]]]"}]}]}
--
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/CuAMElIyDO0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.