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

Throw error for invalid coordinates #140

Open
elizawe opened this issue Feb 2, 2016 · 10 comments
Open

Throw error for invalid coordinates #140

elizawe opened this issue Feb 2, 2016 · 10 comments
Assignees

Comments

@elizawe
Copy link
Contributor

elizawe commented Feb 2, 2016

When given correctly formatted but invalid coordinates, Palladio tries to graph the data–placing it on the edge of the map–but will not zoom to fit them or notify the user that they are invalid.

screen shot 2016-02-02 at 2 42 22 pm

@esjewett
Copy link
Member

esjewett commented Feb 5, 2016

This is great. Do you have a Palladio save file with one of these sorts of coordinates that you can attach here? Thanks!

@elizawe
Copy link
Contributor Author

elizawe commented Feb 5, 2016

You can take the SF Civic Art sample data from Breve and load it into Palladio as an example.

@esjewett
Copy link
Member

esjewett commented Feb 5, 2016

@elizawe Thanks - will do!

@esjewett
Copy link
Member

I'm adding a validation to the data loading function. It will flag if a dimension is set to be a Coordinates dimension but has latitude values < -90 or > 90.

screen shot 2016-02-23 at 11 07 08 am

screen shot 2016-02-23 at 11 07 00 am

@esjewett
Copy link
Member

I think we should also add an indicator somewhere for "number of records not displayed". Not sure if that should be in the map view itself, or as a separate dimension. Thoughts?

@cncoleman
Copy link
Member

Definitely. How would this work as a separate dimension?

@esjewett
Copy link
Member

@cncoleman I've been planning to make a generated dimension for "non-mappable coordinate" that would have value "Not mapped" or some equivalent for coordinates that are blank or are invalid. Then this dimension could be used in a facet filter or as the grouping on the timeline in order to give the same sort of "Stacked bar chart of mapped vs non-mapped values" you had in the MRofL project.

@esjewett
Copy link
Member

@cncoleman Alternative, we could just display a count indicator in the map legend or something like that.

@cncoleman
Copy link
Member

Let's go with the generated dimension. It solves the problem in an elegant way that is consistent with the application logic (as you pointed out!).

@cncoleman
Copy link
Member

But for this issue that Eliza brings up, it seems that we might want to add another consideration: swapping the order of coordinates. I know we have discussed in the past being more flexible about assigning coordinates. We've talked about assigning latitude and longitude separately (2 dimensions). Here are the options:

  1. Require LatLon (as we do). Recognize coordinate format. Also check that the first value is not greater than 90_. That gives a bit of error checking, but forces a single data format.
  2. Give greater flexibility in applying data formats: A. Lat and lon can be in one column as either latlon or lonlat. We guess based on the 90_ rule for lat. If we cannot tell, we force the user to specify; B. We let the user apply lat and lon to separate dimensions as data format.
  3. We require latlon, throw an error if lat is out of range, and allow reversing of values in the column.

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

3 participants