Closed gertcuykens closed 5 years ago
For me it would make sense to be able to cast a geojson feature orb.Geometry to a geojson.Geometry?
orb.Geometry
geojson.Geometry
var f *geojson.Feature g := f.Geometry.(geojson.Geometry)
geojson.Geometry does not implement orb.Geometry missing
func (g Geometry) Bound() orb.Bound { // todo return orb.Bound{} } func (g Geometry) Dimensions() int { return 2 } func (g Geometry) GeoJSONType() string { return g.Type } // Still don't understand why this private thing XD? func (g Geometry) private() {}
Never mind understanding why now from geojson readme that the cast need to be orb specific and there is no case for g := f.Geometry.(geojson.Geometry) to be useful
g := f.Geometry.(geojson.Geometry)
point := f.Geometry.(orb.Point)
For me it would make sense to be able to cast a geojson feature
orb.Geometry
to ageojson.Geometry
?geojson.Geometry
does not implementorb.Geometry
missing