Home Forums Urban Modeling and Simulation Moved: distances, plot size, land use colors Reply To: Moved: distances, plot size, land use colors

#9564
Reinhard Koenig
Keymaster

Dear Luisa,

concerning your question 1:

In the DistanceMatrix resp. the Distances data tree you find all distances from each plot to each other plot. Please, look at the example code at the top of the C#_Attractivity component. If you need the distances from a plot with index = 0 to all other plots you can use:

Distances.Branch(0)[i]

In a for loop with i as an iterator. Looks like this if your print the distances:

You can set the attractivity of places further away than 150m to 0.

There is another method to distribute functions (e.g. 10 commercial usages) that are closest to the population without overlapping their catchment area. Please ask the group with Artem, how to do this.

I’ll look into your other questions later.

Best regards

Reinhard