GeoDaCenter / geoda

GeoDa: An introduction to spatial data analysis
http://geodacenter.github.io
GNU General Public License v3.0
705 stars 156 forks source link

Weights: contiguity weights for points #248

Closed jkoschinsky closed 8 years ago

jkoschinsky commented 8 years ago

When you open the weights creation dialog for points, the contiguity weights options (queen and rook) are enabled. GeoDa used to convert points to Thiessen polygons on the backend and then create the contiguity weights (like in GeoDaSpace).

However, when you try to do the same thing now (e.g. with baltimore shapefile), you get this error message:

screen shot 2015-11-11 at 11 57 57 am

jkoschinsky commented 8 years ago

GeoDa 1.7.85 (OSX Yosemite, 10.10.5 and Win 7 Professional (64-bit)).

Worked in Windows for baltimore sample data (queen weights) but afterwards when you clicked on "create weights" nothing happened. In Mac OSX, it didn't work and generated this error message (tired both rook and queen):

screen shot 2016-03-02 at 10 53 56 pm
lixun910 commented 8 years ago

I doubt it's the international path issue? since I have it work on my side.

On Wed, Mar 2, 2016 at 10:56 PM, jkoschinsky notifications@github.com wrote:

Worked in Windows for baltimore sample data (queen weights) but afterwards when you clicked on "create weights" nothing happened. In Mac OSX, it didn't work and generated this error message (tired both rook and queen):

[image: screen shot 2016-03-02 at 10 53 56 pm] https://cloud.githubusercontent.com/assets/13679743/13485938/b425f224-e0c9-11e5-9aae-8c3505b9cd47.png

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191595058.

jkoschinsky commented 8 years ago

ok, i just put balt.shp on desktop and it does work now, so it must be related to the path, you're right.

But the path where it didn't work was this, with no international characters.

/Users/Julia/Julia/GeoDa\ Center/Data/Baltimore/baltimore/baltim.shp

What's the difference?

On 2 March 2016 at 22:59, Xun Li notifications@github.com wrote:

I doubt it's the international path issue? since I have it work on my side.

On Wed, Mar 2, 2016 at 10:56 PM, jkoschinsky notifications@github.com wrote:

Worked in Windows for baltimore sample data (queen weights) but afterwards when you clicked on "create weights" nothing happened. In Mac OSX, it didn't work and generated this error message (tired both rook and queen):

[image: screen shot 2016-03-02 at 10 53 56 pm] < https://cloud.githubusercontent.com/assets/13679743/13485938/b425f224-e0c9-11e5-9aae-8c3505b9cd47.png

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191595058.

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191595678.


Julia Koschinsky, Ph.D. Research Director Associate Research Professor Arizona State University School of Geographical Sciences and Urban Planning GeoDa Center for Geospatial Analysis and Computation julia.koschinsky@asu.edu

http://geodacenter.asu.edu http://www.facebook.com/geodacenter http://twitter.com/GeoDaCenter

lixun910 commented 8 years ago

I can see the space in the path. I will check the save weights code, since it's from an old piece of code.

Xun Li, Ph.D

Research Scientist GeoDa Center for Geospatial Analysis and Computation School of Geographical Sciences and Urban Planning Arizona State University http://www.public.asu.edu/~xunli/cv.html

On Wed, Mar 2, 2016 at 11:06 PM, jkoschinsky notifications@github.com wrote:

ok, i just put balt.shp on desktop and it does work now, so it must be related to the path, you're right.

But the path where it didn't work was this, with no international characters.

/Users/Julia/Julia/GeoDa\ Center/Data/Baltimore/baltimore/baltim.shp

What's the difference?

On 2 March 2016 at 22:59, Xun Li notifications@github.com wrote:

I doubt it's the international path issue? since I have it work on my side.

On Wed, Mar 2, 2016 at 10:56 PM, jkoschinsky notifications@github.com wrote:

Worked in Windows for baltimore sample data (queen weights) but afterwards when you clicked on "create weights" nothing happened. In Mac OSX, it didn't work and generated this error message (tired both rook and queen):

[image: screen shot 2016-03-02 at 10 53 56 pm] <

https://cloud.githubusercontent.com/assets/13679743/13485938/b425f224-e0c9-11e5-9aae-8c3505b9cd47.png

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191595058.

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191595678.


Julia Koschinsky, Ph.D. Research Director Associate Research Professor Arizona State University School of Geographical Sciences and Urban Planning GeoDa Center for Geospatial Analysis and Computation julia.koschinsky@asu.edu

http://geodacenter.asu.edu http://www.facebook.com/geodacenter http://twitter.com/GeoDaCenter

— Reply to this email directly or view it on GitHub https://github.com/lixun910/geoda/issues/248#issuecomment-191596897.

lixun910 commented 8 years ago

I've tested on my side: the space in the path works; the international characters in the path works as well.

From your path, /Users/Julia/Julia/..., I guess you copied the directory "Julia" from another HD? if it is, there might be a permission (of writing) issue, which might cause the GeoDa failed to write a weights file to the path you specified.

Can you view the location using Finder to see if there's a icon like this? image

jkoschinsky commented 8 years ago

Yes, you're right, for some weird reason the folder was locked. Once I unlocked it, both contiguity and distance weights work, so I'll close this.