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

Create downloadable QGIS project on the fly #157

Closed
gubuntu opened this issue Mar 15, 2017 · 4 comments · Fixed by #322
Closed

Create downloadable QGIS project on the fly #157

gubuntu opened this issue Mar 15, 2017 · 4 comments · Fixed by #322
Assignees
Milestone

Comments

@gubuntu
Copy link

gubuntu commented Mar 15, 2017

Create downloadable QGIS project on the fly that references GeoNode layers including setting the mime type to pop up in QGIS after downloading. This is similar to the .qlr file download for maps, but instead of providing the user with a QGIS .qlr, we will instead generate a QGIS project file (.qgs) which they can open locally on their computer. QGIS Backend only.

Zip the file for download

Will use https://github.com/kartoza/otf-project

@Gustry
Copy link
Collaborator

Gustry commented Aug 10, 2017

@gubuntu What is the priority of this?

I guess it shouldn't be too complex, as we may only update paths using the existing QGIS project. Only a string replacement in the XML in the Django view. Let's check.

boney-bun added a commit to boney-bun/geonode that referenced this issue Aug 30, 2017
push to be reviewed and discussed as there still a few works to be done

fix kartoza#157
@Gustry
Copy link
Collaborator

Gustry commented Sep 8, 2017

Done in OTF-plugin to generate QLR and QGS usign remote layers.

I wouldn't zip it. It's only a small XML file, the size will not change a lot (users doesn't care about a few kb more when they use geonode I guess), and it's easier for the user to not unzip it.

boney-bun added a commit to boney-bun/geonode that referenced this issue Sep 8, 2017
boney-bun added a commit that referenced this issue Sep 11, 2017
* add download QGS layer file
* add Links in post save signal

note: these code depend on kartoza/otf-project#11

fix #157
@gubuntu gubuntu reopened this Sep 23, 2017
@timlinux
Copy link

The File extension must be .qgs not .qgs.xml. or the file won't open in QGIS
The download link text should be "QGIS Project file" not "QGS Layer file"
The layer name in the project file should match the layer name in GeoNode i.e. Nepal Earthquake on buildings, not "tmpn9rmqv"

@gubuntu
Copy link
Author

gubuntu commented Oct 20, 2017

passed on testing, except for #360. But let's deliver what we have.

@gubuntu gubuntu closed this as completed Oct 20, 2017
@gubuntu gubuntu removed the testing label Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants