-
Notifications
You must be signed in to change notification settings - Fork 57
[WIP] Add GeoJSON plugin to view files in GIS viewer #725
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
base: main
Are you sure you want to change the base?
Conversation
Integration tests report: appsharing.space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for starting this @kaushiksrini, great progress already.
I have given a preliminary review to give you some context of what you might be missing. I hope it helps, don't hesitate to follow up with questions in cas you would have.
@@ -0,0 +1,89 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looks like you followed how we initialize model for stl/step
files on JupyterCAD, but in the case of JupyterGIS, the model properties are fairly different, most importantly layers
& sources
instead of objects
, for context https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/doc.ts
return this._objectChanged; | ||
} | ||
|
||
get objects(): Array<any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be get layers()
and it should respect vectorlayer schema - https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/schema/project/layers/vectorlayer.json
Similarly there should be getters for sources
& layerTree
too and the sources getter shall respect https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/schema/geojsonsource.json - note that you can either give it the parameter path
or directly write the content of geojson in data
Description
Note: Still a work in progress. I am not able to get the geojson to render in the viewer - any ideas on what I am missing?
Checklist
Resolves #XXX
.Failing lint checks can be resolved with:
pre-commit run --all-files
jlpm run lint
📚 Documentation preview: https://jupytergis--725.org.readthedocs.build/en/725/
💡 JupyterLite preview: https://jupytergis--725.org.readthedocs.build/en/725/lite