cadasta / cadasta-qgis-plugin Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] QGIS plugin to create, edit, upload and download Cadasta projects
License: GNU General Public License v3.0
[DEPRECATED] QGIS plugin to create, edit, upload and download Cadasta projects
License: GNU General Public License v3.0
We need help dialog or at least about dialog to point the user what's the plugin about and how to use it. No need to have a help in the wizard, since it should be self-explanatory.
Oliver's question:
When I download a project, I can change data in the tables and the geometry. But I can never upload the changes to the platform. The menu item “Update project” is always greyed out; I’ve tried that with different user permissions.
Oliver's question:
The project update wizard is a bit confusing. The wizard starts, then I can update the project details; then the data downloads, I can edit the data and then upload the edited data. But the wizard window needs to open the whole time. I would expect that you download a project edit data in QGIS and then when you're done you upload your changes.
It seems that it is different with mockup
see : #23
We need to apply git flow to this repository also. To do:
I don't have permission to do those task, perhaps you can help @cchristelis
Oliver's question :
When downloading a project, would it be possible to implement a search, so it's easier to find the right project? (It's probably out of scope, wanted to bring it up anyway in case it's an easy fix.)
Because api doesn't provide filter (except permission filter), but we can get it based on organization or from it's user
First solution:
secondly:
get all available projects, then there is inputs that will filter it (based organization, username or project name or maybe other fields
When I download a project for editing, party attributes don't show up in the parties table. There is a field attributes
but it's empty. I used my Leipzig Project for testing.
I would expect that all attributes for a party are present; with each attribute in its own separate field.
This kind of import of PyQT using from qgis.PyQt.
seems to be broken on some machines.
I think we will have to rollback to from PyQt4.
A string replacement from from qgis.PyQt.
to from PyQt4.
will do the trick
We need to document how we setup the development environment for this project. See some references in:
Oliver's question:
Related to this is the project download option. You can download a project but only look at it, but there's no way to update anything. Also, is there a way to download and join relationship and party attributes?
Users need to be logged in to the Cadasta to get access to their data.
Build a class, that uses the Network mixin to initiate a session to cadasta.
When we remove a contact from the middle or beginning of the contact table, an error occurs.
Fix bug and write tests to catch this error when removing an entry from the top, bottom and middle of the list.
We need to setup travis as our CI
Oliver's question
When I download a project for an update, the parties get joined to the location. I don't see the relationship in the table.
The cadasta projects have a mix of data. We need to handle point, polygon and multipolygon. In shp export cadasta uses 3 shp files to handle this. We need to handle this in QGIS as well.
Travis must check if PEP8 is ok.
You can copy/paste this file :
https://github.com/inasafe/inasafe/blob/develop/safe/test/test_pep8.py
Here are the list of needed utitlities method to make the plugin works:
Make sure all the methods have unit test.
We need to create some icon or logo for:
Entering my password in the username and my username in the password does NOT test successfully either so I think there is more wrong than just needing to switch the controls around....
I did verify my credentials work on the web site.
Can you also confirm which format the URL is expected to be (an example in the tooltip would be great....
In order to move quicker to QGIS3 in a few weeks, please use from qgis.PyQt.QtCore/QtGui
instead of using from PyQt4.QtCore/QtGui
.
We should have self repository to upload the plugin so that user / tester can test it regularly / easily.
References:
We need to setup translation framework. I suggest to use Transifex for the translation tools. You can use this https://github.com/inasafe/inasafe/wiki/Internationalisation as reference.
It might be a bad idea to put an alpha version of the plugin on a public repo.
Make a private repository like: http://nightly.inasafe.org
instead of using our own internal fake iface
, we should use the one provided by QGIS.
from qgis.testing.mocked import get_iface
You may need to run pip install mock
.
We should host our plugins at plugins.kartoza.com.
License should be GPL V2 or greater I think. License should also be show in the about dialog as well as mention that the work is copyright 2016 to Cadasta.
Note:
Reference : https://github.com/inasafe/inasafe/wiki/Preparing-a-release
We can adapt the script to release:
Please see the attached document which provides their logo and schemes. We should include their logo onto each dialog. Take a look at how we did this in InaSAFE for an example of the user experience we might provide:
Cadasta guidelines are here:
https://drive.google.com/open?id=0B_TBxlUZZaVXUjB6cTUxanBzUkU
Oliver's question:
When I have a data set with multiple geometry types only one type shows up in QGIS. I wan’t able to work out the logic behind it. I had a project with polygons and a point, only the polygon shows up. Then I had a project with polygons, a point and a line; only lines were showing up. (Here’s the project for the last case: https://platform-staging.cadasta.org/organizations/olivers/projects/leipzig; I can give you access if you need.)
Oliver's question:
Could you provide information about system requirements in the README? Which QGIS version is required? Any dependencies to install? I installed the plugin on QGIS 2.8 and got errors, but everything worked fine with 2.14.
it seems it is related with : #84
check it in 2.8 and try to fix it
For easier development, I suggest we use similar approach to manage the .ui file like in InaSAFE project. In InaSAFE project, we do like this:
get_ui_class
method from here https://github.com/inasafe/inasafe/blob/develop/safe/utilities/resources.py#L82By doing this, we can avoid the needs to compile the ui file everytime we change the ui file and less file to be submited to the repository.
As a user, when I click the "contact" option on the main menu of the plugin, nothing shows up.
The project that I am using has contact information and so I would expect the name and email of the contact to show up.
Workaround: Clicking "update project" brings in the contact info.
We need to have Transifex project to do the translation easier. Low priority though.
Oliver's question:
The attributes are shown as JSON in the attribute table. Will that be changed, so each field in the JSON is a separate field in the attribute table?
Yes, we can parse it. Although for geojson, the correct way is bring all of attributes json to just in properties. So it is separate properties.
After finishing upload, perhaps we can remove the notes under the progress bar since it gives different information with the one above the progress bar.
Perhaps we can also make the text or progress bar bigger to make it more readable and less wasting space.
Is it possible to not choose any field for the non-required one? If so, there should be an option to choose no column
and set by default.
Trying to upload a project with the user and password in unit test. I got this error.
Perhaps, we can make the error message prettier.
We need to access the qgis network interface to make our call through potential firewalls etc.
Create an abstraction layer of a mixin class that has simple wrappers around the QgsNetworkAccess class.
Oliver's question:
After downloading a project the party attributes (the ones which are defined in a questionnaire are not available in the table.
Oliver's question:
There are two fields in the spatial unit attribute table, which are not needed (I believe): relationship_layer_id, party_layer_id)
Please see https://github.com/inasafe/inasafe/wiki/human-interface-guidelines
save -> Save
All labels should have an initial capital and then lower case thereafter...
Oliver's question:
When creating a new project from existing data, I can’t select party type (among others) if they are in a separate table. I have to talk to our programs team if that’s a valid use case at all, there’s a chance that people just have shape files with all information in it. So, there’s nothing to do for you at this point.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.