Skip to content

WKT for collection doesn't do much #227

@remster

Description

@remster

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions