Calculate polygon extent