Comments (7)
I can disable "autocomplete" button and report validation warning if provided table's:
- mode column is not in "motorized, walking, bicycling".
- number of classes and classes did not match merged landcover.
- labels did not match those in merged landcover, excepted if the user imported a external merged landcover that doesn't contain labels (case of auto generated "no_label_1 ... no_label_n").
The user can still manually modify the processed table or copy and paste from a spreadsheet.
Do you need a milestone for this ?
from accessmod.
Ok for 1 and 2.
For 3 the labels in the imported table can indeed be different from the one in the merged landcover layer.
This is something conditional to be fixed before the release of the new version. Thanks
from accessmod.
I've replaced the button disabling function by a new way of merging by class comparison, together with a validation process message list (bellow external table in UI), so the user can still use a badly formatted table. Without this, there is too much case, where external table will not properly merge with the one extracted from merged land cover. I've tested with all the tables you provided to me, and it's working.
So, the function return a message list if something went wrong. Feel free to modify it.
if(noDataCheck) info <- c(info,"Empty field found")
if(!validMode) info <- c(info,paste("Some modes of transportation do not match currently allowed ones:",paste(names(config$listTranspMod),collapse=','),". Unknown mode(s) will be changed to default value."))
if(!labelMatch) info <- c(info, "Some labels do not match those stored in the travel scenario to be processed and will overwrite them.")
if(!classMatch) info <- c(info, "Some classes do not match those stored in merged land cover and will not be imported.")
from accessmod.
I was actually thinking not to allow for a partial import but why not after all.
I will suggest some changes for the warning texts in the google spreadsheet.
Just one question, what do you mean by "default value" in the first message? does that correspond to the "MOTORIZED" mode?
Thanks
from accessmod.
Yes,
Default is MOTORIZED, but as I extract all the value from a list in config, I don't get a default value to write in the message. We can say that's the first item of the list (currently its "WALKING"): like this I can retrieve value by position.
That sounds correct for you ?
from accessmod.
If you mean that by default the value would be "WALKING" then that's fine with me.
The message would then read as follow then if I understand correctly: Some modes of transportation do not match currently allowed ones:",paste(names(config$listTranspMod),collapse=','),". Unknown mode(s) will be changed to "WALKING".
You can close this issue if this is indeed the case.
Thanks
from accessmod.
The change which has been made in the new version (249) is setting the unknown modes to "MOTORIZED" and not "WALKING" as per my previous message => many thanks in advance for adjusting this in both the system and the text (also reported in the google spreadsheet).
from accessmod.
Related Issues (20)
- MRAN migration
- Changes of tags in the Data module are not persistant and not reflected in Analysis module HOT 2
- Road shapefile name with space generates error HOT 1
- heavy .ige files created when exporting and archive, with impossibility to use the related .img file in QGIS HOT 6
- "Clean artefacts" should be switched on by default HOT 4
- Geographic coverage - two facilities falling in the same cell should result in two catchments in the output HOT 2
- For the "Cost allocation layer" option, a field from the facility attribute table should inform the allocation raster values HOT 15
- CI with github actions HOT 1
- AccessMod does not recognize docker HOT 6
- Issues with opening any version of AM (ci and 5.7.17) HOT 2
- ci image HOT 1
- Import of shape files with spaces in the name HOT 4
- Referral analysis - Change the way the "Limit the spatial analysis to the closest pair time-wise" line gets inactivated when running the "Permute groups" setting HOT 10
- DEM not exportable from project HOT 3
- CRS of merged landcover layer is not recognized when exported HOT 10
- Typo in the Demo roads layer
- Shiny server error HOT 7
- Error when importing raster files HOT 4
- Refactor Spatial Dependencies in AccessMod
- VirtualBox is not compatible with the am64 hardware on MacOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accessmod.