How does RivEX+ generate random points?





In the image below you see a network where each polyline is labelled with its ID and polyline length. The network is composed of 7 polylines and has a total length of 1120m.



RivEX+ constructs a virtual line in memory (using a data structure called a dictionary). The above example is visualised below, each polyline contributes a distance along the virtual line. Their individual contribution ( or position along the virtual line) is determined by there position in the FeatureClass table (i.e. the order they were digitized)



RivEX+ then generates a random number between zero and the total length.  For example a distance of 500m along the virtual line would place it on polyline 4. Polylines 1, 2 & 3 account for the first 495m of the 500m.



This step is repeated for as many times as it is required.






RivEX Logo