Skip to content

Adding a GeoJSON from Python API embeds it in the project file #1111

@mfisher87

Description

@mfisher87

JupyterGIS version

main

Description

When we add the same layer via the UI, we reference it by path instead. We should be consistent, which requires us to have some stronger framework for when we embed vs when we reference. E.g. it's probably safe to embed drawn features, as the human interaction limits the size of the resulting data. But IMO we should not embed when we generate layers from processing operations, as processing can multiply the size of the input data. QGIS, for example, gives you the choice between a "temporary scratch" layer (with warnings) or writing to a file.

Related: https://jupyter.zulipchat.com/#narrow/channel/471314-geojupyter/topic/When.20should.20we.20embed.20data.20in.20the.20project.20file.3F.20Alternative.3F/near/572846823
Related: https://jupyter.zulipchat.com/#narrow/channel/471314-geojupyter/topic/Issues.20on.20the.20jupytergis.20notebook.20examples/near/572604564

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions