-
-
Notifications
You must be signed in to change notification settings - Fork 225
Closed
Labels
Description
Here is:
for sg := range g.Geometries() {
s := WKT(sg)
geometries = append(geometries, s)
}
should be:
for _, sg := range g.Geometries() {
s := WKT(sg)
geometries = append(geometries, s)
}
Essentially, I think you have a bit of a design problem. By the way you have defined your tegola.Geometry interface, everything fulfills it, even number seven. And your code (e.g.: here) is quite lenient producing empty wkt. Perhaps you want to add a token aspect of the geometry to the interface, like: PointCount() or Area() or Intersection(thought that would be more involved)