Skip to content

How to load local shapefile into a JupyterGIS project? #312

Answered by mfisher87
matthewfeickert asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, we don't support opening a local shapefile as a layer, but we will! GeoJSON is supported at the moment, though, so I'd recommend converting your shapefile to geojson and then opening it:

ogr2ogr -f GeoJSON output.json input.shp

(Yes, the positional args are out of order, I don't know why 🤕

I think you can pass in the zip file directly instead of uncompressing it first, give it a shot :)

You can also do this entirely in QGIS.

GeoJSON is the only local vector file format that JupyterGIS currently supports.

The reason the method you attempted wasn't working is because .qgz or .qgs files are QGIS project files, not data files, equivalent to JupyterGIS' .jgis files. QGIS project fil…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@mfisher87
Comment options

@matthewfeickert
Comment options

@matthewfeickert
Comment options

@mfisher87
Comment options

@matthewfeickert
Comment options

Answer selected by mfisher87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants