Skip to content

API add_geojson_layer() does not project correctly #978

@johnjarmitage

Description

@johnjarmitage

JupyterGIS version

jgis: 0.9.2

Description

I am testing loading a shapefile converted to geojson via geopandas into jupyterGIS. From the API the shapefile is incorrectly projected, however when I load it from the graphical interface the projection is correct. I have an example notebook here:
https://github.com/johnjarmitage/CSS-jupytergis/blob/main/notebooks/france-sediments.ipynb

Here is an image of the correctly loaded shape file (blue) and API loaded shape file (black).

Image

It looks like the API is not picking up the correct coordinates, perhaps they are the original Lambert 93 coordinates of the dataframe and not the reprojected coordinates? But I don't see how this could happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions