Added code to rivernetworknode for polygons