Define neighbours based on railway lines/roads instead of contiguity of polygons?

23 views
Skip to first unread message

Balu Pawde

unread,
Jun 24, 2022, 10:23:11 AM6/24/22
to Openspace List
​I want to define neighbours based on the railway routes/roads instead of contiguity of polygons. I tried to import a shp file containing railway data in Geoda ​but it gives an error saying that line data is not supported. Can you help me out with this?

Julia Koschinsky

unread,
Jul 6, 2022, 8:14:42 AM7/6/22
to openspa...@googlegroups.com, Balu Pawde
Hi Balu,

You can't do this in GeoDa bc it doesn't support line files but the steps to generate a gal or gwt spatial weights file based on railway routes would be:

Let's say you have rail stops that are part of a route (point file) for destinations, and for origins, centroids of building parcels or some other unit.

You can use GTFS feeds/sth like OpenTrip Planner to calculate travel times between your points of origin and destination. This will get you a matrix eg of origins in rows to destinations in columns (or an NxN matrix if you use e.g. block or tract centroids for origins and destinations).

Next step would be to convert this matrix to a gwt  weights file that you can then load into GeoDa.

If you don't need travel times but just distance, you could use the steps above with street network distance instead.

Best,
Julia

Julia Koschinsky, Ph.D.
Executive Director and Senior Research Associate
Center for Spatial Data Science
University of Chicago



From: openspa...@googlegroups.com <openspa...@googlegroups.com> on behalf of Balu Pawde <balup...@gmail.com>
Sent: Friday, June 24, 2022 7:48 AM
To: Openspace List <openspa...@googlegroups.com>
Subject: [Openspace] Define neighbours based on railway lines/roads instead of contiguity of polygons?
 
​I want to define neighbours based on the railway routes/roads instead of contiguity of polygons. I tried to import a shp file containing railway data in Geoda ​but it gives an error saying that line data is not supported. Can you help me out with this?

--
You received this message because you are subscribed to the Google Groups "Openspace List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openspace-lis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openspace-list/6e934db6-c7ec-497a-8cac-4784ae4b2c20n%40googlegroups.com.

Nicolas Cadieux

unread,
Jul 20, 2022, 6:59:17 PM7/20/22
to openspa...@googlegroups.com, Balu Pawde
Hi,

Dis you find a solution for this?  If not, if have a python solution for you.  The problem is that I am on vacation.  I could publish the algorithm online in about a month. 


Le 6 juill. 2022 à 09:14, Julia Koschinsky <jkosc...@uchicago.edu> a écrit :


Reply all
Reply to author
Forward
0 new messages