Add Undefined status to invalid Polygon
This commit is contained in:
committed by
Jack Christensen
parent
e09987f1d6
commit
6166c99b77
@@ -54,6 +54,7 @@ func parseFloat64(src []float64) (*Polygon, error) {
|
|||||||
return p, nil
|
return p, nil
|
||||||
}
|
}
|
||||||
if len(src)%2 != 0 {
|
if len(src)%2 != 0 {
|
||||||
|
p.Status = Undefined
|
||||||
return p, errors.Errorf("invalid length for polygon: %v", len(src))
|
return p, errors.Errorf("invalid length for polygon: %v", len(src))
|
||||||
}
|
}
|
||||||
p.Status = Present
|
p.Status = Present
|
||||||
|
|||||||
Reference in New Issue
Block a user