jsor/geokit

Geometry interface + GeoJSON

kdubuc opened this issue · 1 comments

What do you think of this Interface :

interface Geometry {
    public static function input($input) : Geometry;
    public function toGeoJson() : array;
}

We could standardize normalize method, and provide a toGeoJson() converter (good for api).

jsor commented

This is out of the scope of geokit. You might be interested in the packages of https://github.com/geo-io. The Geometry packages provides something similar you're proposing.