Skip to content
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

Origin/Destination fields not getting populated from data table #4

Open
danaja opened this issue Nov 13, 2014 · 4 comments
Open

Origin/Destination fields not getting populated from data table #4

danaja opened this issue Nov 13, 2014 · 4 comments

Comments

@danaja
Copy link

danaja commented Nov 13, 2014

On Oursins screen the Origin/Destination drop downs don't get populated. The value drop down does. I've loaded a table with the following structure and have a shape file layer with the relevant coordinates for the points. The Geographical ID field of the "Extract coordinates from Layer" section doesn't get populated either. I'm using QGIS 2.4.

"Origin","Destination","Flow"
1610,2107,7
1610,2347,10
1610,4078,0

@danaja
Copy link
Author

danaja commented Nov 13, 2014

Went through the code and realized that those fields were accepting only string fields. I'm actually using a spatial grid which is why the locations are indices. Got it to work by adding a leading character

@LCacheux68224
Copy link
Owner

Ok, I always use string fields for IDs, but I can add the possibility to use numeric fields (integer) too if need.

@magerlin
Copy link

magerlin commented Dec 1, 2015

As a transport planner I really like your plugin but it would be VERY nice to be able to use numeric fields as IDs since the data sources I use can vary and adding extra columns just to change data type makes your data messy in my opinion.

@Bericender
Copy link

I still get no valid datas found as an error message.

I have set it up as

Flow table odmatrix
Origin: origin_loc
Destination: destination_loc
Value: value

layer: loc_known
GeoID: id

Table info (odmatrix):
origin_id integer (i.e. 4327)
origin_loc text (i.e. 'POINT 38.0789 -5.78263)
destination_id integer (i.e. 4392)
destination_loc text (i.e. 'POINT 38.0289 -5.78563)
value integer (i.e. 10)

Table info (loc_known):
id text (i.e. '4327')
location geometry (Point, 4326)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants