make_hex_pattern_network

pankus.taurus.NetworkGenerator.make_hex_pattern_network(self, size, delta=0.0001, **kwargs)

Creates hexagonal pattern network. HEXAGONS binded together by edge (like square pattern but with hexagons) Creates also corresponding origins - destinations points. origins - destinations are set in way their total sum is 1 for origins and destinations. Points for abstract network are generated in WSG84 coordinate system starting at point (0,0). On this level we use globe WSG84 as a Carthesian coordinates system. Don’t use it for

Parameters:
  • size – How many lines to create on side. 1 by 1 lines create just a hexagon with point inside.
  • delta – Network relative (to earth WSG84) size.
Returns:

Effect

  • A network in a shape of honeycomb is created
  • Newly created network has specific properties
  • All of network data is written into network_properties and network_geometry tables

Network shape

Shape of network generated by executing function

make_hex_pattern_network(6)
hex network in size 6