jiawlu / OSM2GMNS

GNU General Public License v3.0
89 stars 41 forks source link

Add a function to bring in pre-existing zone boundaries for the centroid connector creation #18

Closed itsfangtang closed 9 months ago

itsfangtang commented 9 months ago

Hi Jiawei,

Typically, the zone-to-node mapping is specified in node.csv through the field of zone_id. However, there is a challenge when mapping TAZ-based information to the network. Please add a function to map TAZ centroid to node, and update zone_id field when users have TAZ boundary information, including boundary polygon, centroid latitude and longitude.

Dr. Zhou asked me prepare the phoenix network and TAZ files for your test. The attached TAZ.csv contains fields for zone_id, x_coord, y_coord, and geometry defined in WKT format. The geometry is typically represented using polygon geometry and a pair of x_coord and y_coord defines zone centroids.

TAZ.csv link.csv node.csv