GeoDS / Region2vec

16 stars 3 forks source link

What is the difference of Spatial_matrix.csv and Spatial_matrix_rook.csv? #1

Open rabbit200 opened 1 year ago

rabbit200 commented 1 year ago

Congratulations on the publication of your paper. It is really a great job and is very enlightening to me.

After debugging your code, I have some trouble understanding the difference of the Spatial_matrix.csv and Spatial_matrix_rook.csv .

I guess Spatial_matrix.csv means 0/1 adjacent matrix generated by (OD) flow, while Spatial_matrix_rook.csv means geographic 0/1 adjacency matrix generated by Rook-type contiguity relationship.

Am I right ?

Looking forward to your reply, thank you sincerely !

gissong commented 1 year ago

Thanks for your interest! Yes, you are right! The two files are used to describe different spatial adjacency relationships between nodes.

rabbit200 commented 1 year ago

Thanks for your interest! Yes, you are right! The two files are used to describe different spatial adjacency relationships between nodes.

Thank you so much !

whereishercat commented 1 year ago

Thanks for your interest! Yes, you are right! The two files are used to describe different spatial adjacency relationships between nodes.

Hi! As you described in readme file, Spatial_matrix.csv is the adjacency matrix generated based on the geographic adjacency relationship.

There are various geographic adjacency relationships in TIGER/Line Shapefiles, common edge(Rook), common corner(Queen), and so on.

I'm wondering which type of geographic adjacency relationship for constructing Spatial_matrix.csv

gissong commented 1 year ago

Yes, good point! You can use either spatial relation to construct the spatial_matrix.csv file. It depends on whether you want to include geographic neighbors that include common vertices in addition to common edges/boundaries. Read more about "Contiguity-Based Spatial Weights" from GeoDa: https://geodacenter.github.io/workbook/4a_contig_weights/lab4a.html

On Wed, Nov 30, 2022 at 12:41 AM whereishercat @.***> wrote:

Thanks for your interest! Yes, you are right! The two files are used to describe different spatial adjacency relationships between nodes.

Hi! As you described in readme file, Spatial_matrix.csv is the adjacency matrix generated based on the geographic adjacency relationship.

There are various geographic adjacency relationships in TIGER/Line Shapefiles, common edge(Rook), common corner(Queen), and so on.

I'm wondering which type of geographic adjacency relationship for constructing Spatial_matrix.csv

— Reply to this email directly, view it on GitHub https://github.com/GeoDS/Region2vec/issues/1#issuecomment-1331707848, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGCWIPXF7KGZATJPHXAIFLWK3ZJNANCNFSM6AAAAAASK7OX4U . You are receiving this because you commented.Message ID: @.***>

whereishercat commented 1 year ago

Yes, good point! You can use either spatial relation to construct the spatial_matrix.csv file. It depends on whether you want to include geographic neighbors that include common vertices in addition to common edges/boundaries. Read more about "Contiguity-Based Spatial Weights" from GeoDa: https://geodacenter.github.io/workbook/4a_contig_weights/lab4a.html On Wed, Nov 30, 2022 at 12:41 AM whereishercat @.> wrote: Thanks for your interest! Yes, you are right! The two files are used to describe different spatial adjacency relationships between nodes. Hi! As you described in readme file, Spatial_matrix.csv is the adjacency matrix generated based on the geographic adjacency relationship. There are various geographic adjacency relationships in TIGER/Line Shapefiles, common edge(Rook), common corner(Queen), and so on. I'm wondering which type of geographic adjacency relationship for constructing Spatial_matrix.csv — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGCWIPXF7KGZATJPHXAIFLWK3ZJNANCNFSM6AAAAAASK7OX4U . You are receiving this because you commented.Message ID: @.>

Thank you for your answer!