`geo/geojson` 包中的编译错误: 无法实现 index.GeoJSON (缺少 BoundingBox 方法)
GitHub.com/blevesearch/geo/geojson
../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:100:9: cannot use rv (variable of type *Point) as index.GeoJSON value in return statement: *Point does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:129:46: cannot use p (variable of type *Point) as index.GeoJSON value in argument to checkPointIntersectsShape: *Point does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:155:9: cannot use rv (variable of type *MultiPoint) as index.GeoJSON value in return statement: *MultiPoint does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:206:49: cannot use p (variable of type *MultiPoint) as index.GeoJSON value in argument to checkPointIntersectsShape: *MultiPoint does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:241:17: cannot use &Point{…} (value of type *Point) as index.GeoJSON value in assignment: *Point does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:258:9: cannot use rv (variable of type *LineString) as index.GeoJSON value in return statement: *LineString does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:297:64: cannot use ls (variable of type *LineString) as index.GeoJSON value in argument to checkLineStringsIntersectsShape: *LineString does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:322:9: cannot use rv (variable of type *MultiLineString) as index.GeoJSON value in return statement: *MultiLineString does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/GitHub.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:366:48: cannot use p (variable of type *MultiLineString) as index.GeoJSON value in argument to checkLineStringsIntersectsShape: *MultiLineString does not implement index.GeoJSON (missing method BoundingBox) ../../go/pkg/mod/ZZTERM15ZZ.com/blevesearch/[email protected]/geojson/geojson_shapes_impl.go:389:16: cannot use &LineString{…} (value of type *LineString) as index.GeoJSON value
内容来源: blevesearch/bleve