Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaforce committed Jan 23, 2025
1 parent ca4690d commit 4642d79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
1 change: 1 addition & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ github.com/gobuffalo/packd v0.1.0 h1:4sGKOD8yaYJ+dek1FDkwcxCHA40M4kfKgFHx8N2kwbU
github.com/gobuffalo/packr/v2 v2.2.0 h1:Ir9W9XIm9j7bhhkKE9cokvtTl1vBm62A/fene/ZCj6A=
github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754 h1:tpom+2CJmpzAWj5/VEHync2rJGi+epHNIeRSWjzGA+4=
github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ=
github.com/golang/lint v0.0.0-20170918230701-e5d664eb928e h1:ior8LN6127GsA53E9mD9nH/oP/LVbJplmLH5V8o+/Uk=
Expand Down
19 changes: 0 additions & 19 deletions server/pkg/layer/encoding/geojson.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ func (*GeoJSONEncoder) MimeType() string {
return "application/json"
}

func (e *GeoJSONEncoder) polygonToFloat(p property.Polygon) [][][]float64 {
var res [][][]float64
for _, c := range p {
t := e.coordsToFloat(c)
res = append(res, t)
}
return res
}

func (e *GeoJSONEncoder) polygonToRings(p property.Polygon) []orb.Ring {
var res []orb.Ring
for _, c := range p {
Expand All @@ -43,16 +34,6 @@ func (e *GeoJSONEncoder) polygonToRings(p property.Polygon) []orb.Ring {
return res
}

func (e *GeoJSONEncoder) coordsToFloat(c property.Coordinates) [][]float64 {
var res [][]float64
for _, l := range c {
t := []float64{}
t = append(t, []float64{l.Lng, l.Lat, l.Height}...)
res = append(res, t)
}
return res
}

func (e *GeoJSONEncoder) coordsToPoint(c property.Coordinates) []orb.Point {
res := []orb.Point{}
for _, l := range c {
Expand Down

0 comments on commit 4642d79

Please sign in to comment.