GIS rule parsing fixed and unit tested.