Add in postgis case for patch envelopes