We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following program exhibits the buggy behaviour:
package main import ( "fmt" "github.com/peterstace/simplefeatures/geom" ) func main() { tx("POLYGON Z EMPTY") tx("MULTILINESTRING Z EMPTY") tx("MULTIPOINT Z EMPTY") tx("GEOMETRYCOLLECTION Z EMPTY") } func must(err error) { if err != nil { panic(err) } } func tx(wkt string) { g, err := geom.UnmarshalWKT(wkt) must(err) t, err := g.TransformXY(func(in geom.XY) geom.XY { return in }) must(err) fmt.Println(t.AsText()) }
Outputs:
POLYGON Z EMPTY MULTILINESTRING EMPTY MULTIPOINT EMPTY GEOMETRYCOLLECTION Z EMPTY
The correct output should be:
POLYGON Z EMPTY MULTILINESTRING Z EMPTY MULTIPOINT Z EMPTY GEOMETRYCOLLECTION Z EMPTY
The text was updated successfully, but these errors were encountered:
peterstace
No branches or pull requests
The following program exhibits the buggy behaviour:
Outputs:
The correct output should be:
The text was updated successfully, but these errors were encountered: