Rework polygon selector to produce GeoJSON format