-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in Weights #59
Comments
From schmi...@gmail.com on March 12, 2010 00:54:00 We probably need to implement something similar to what mark is working on with GeoDa, a tree structure to |
From schmi...@gmail.com on March 23, 2010 23:14:47 |
From schmi...@gmail.com on March 26, 2010 01:21:15 All unit tests still pass, but we may want to evaluate the Polygon API and make sure it works as expected in most |
Original author: schmi...@gmail.com (March 12, 2010 00:45:54)
Reported by David via Email,
Check this out...
Run the following lines in python on the attached shapefile... then look at it in a GIS... something is fishy.
import pysal
phx_shp = '38060.shp'
ws = []
shp = pysal.open(phx_shp, 'r')
ws.append(pysal.weights.ContiguityWeights.queen(phx_shp))
ws.append(pysal.weights.ContiguityWeights.rook(phx_shp))
ws[0].type='queen'
ws[1].type='rook'
print ws[0][363]
print ws[0][442]
print ws[0][477]
print ws[1][363]
print ws[1][442]
print ws[1][477]
All the troublemakers have something in common... but they're not islands.
-David
Original issue: http://code.google.com/p/pysal/issues/detail?id=59
The text was updated successfully, but these errors were encountered: