Skip to content

Invalid MULTIPOLYGON no longer gives an error #130

@gellyfisher

Description

@gellyfisher

I would expect to get an error in the following MULTIPOLYGON because there is no closing bracket at the end. However since 0.9.1 this doesn't happen anymore. Is this intended ?

package main

import (
	"fmt"

	"github.com/paulmach/orb/encoding/wkt"
)

func main() {
	ret := "MULTIPOLYGON(((0 1,3 0,4 3,0 4,0 1)), ((3 4,6 3,5 5,3 4)), ((0 0,-1 -2,-3 -2,-2 -1,0 0))"
	_, err := wkt.UnmarshalMultiPolygon(ret)
	fmt.Printf("error: %s", err)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions