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

automating Qgis2Web #957

Open
ridasti opened this issue Apr 20, 2021 · 3 comments
Open

automating Qgis2Web #957

ridasti opened this issue Apr 20, 2021 · 3 comments

Comments

@ridasti
Copy link

ridasti commented Apr 20, 2021

Hello!

I exported a project with Qgis2web on an FTP server. I need this web map to update when the Qgis project updates. Can somebody help me please ?

@boesiii
Copy link
Contributor

boesiii commented May 10, 2021

It is not possible with the plugin but you could easily script something.

  1. Use a batch file and OGR2OGR to convert your source data to geojson. Make sure to use the same coordinate system.
  2. Use a python script to copy the geojson files to the same location on your FTP site.

As long as you don't change attributes and labels it shouldn't be a problem.
Let me know if you need more help.

@andreaordonselli
Copy link
Collaborator

andreaordonselli commented Mar 10, 2023

Good morning,
can you explain how to create a batch file to convert one or more shp to json?
Thank you

@boesiii
Copy link
Contributor

boesiii commented Jan 10, 2024

The code for the batch file is below

ogr2ogr -f GeoJSON output.geojson input.shp

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

No branches or pull requests

3 participants