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

Is the qguis library ready for use? Documentation and functionality inquir #49

Open
jocarrd opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@jocarrd
Copy link

jocarrd commented Nov 21, 2024

Hello qguis Team,

I was looking for a library that could create qguis maps like this one but directly by passing the data as a parameter to render them on my website.
What is the current status of this library? Can it be used? Is there any documentation available?
regards

image

@boardend
Copy link
Collaborator

boardend commented Dec 3, 2024

Hi @jocarrd, thanks for your interest in qgis-js and sorry for the late reply.

The current state is a working prototype with a very small API surface. I hope it will progress next year, but there is no fixed schedule at the moment.

If you have a QGIS project that renders the graphic in this way, you should be able to make it dynamic like this:

  • Boot qgis-js
  • Upload all static parts of your project to the runtime (see the FS handle)
  • Fetch and preprocess the dynamic data with JS
  • Write it as a GeoJSON to the runtime FS
  • Load the project (which uses the GeoJSON) via the API
  • Render an image via the API

Probably it is a good idea to compile qgis-js on your machine witch the dev or debug build type to get better error messages while prototyping. (The release build type is used for the npm library, which doesn’t give you useful stack traces / error messages)

Let me know if this works for you.

@boardend boardend added the question Further information is requested label Dec 3, 2024
@boardend boardend self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants