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

RGI 7.0 shapefile geometries are stored as 3D polygons #43

Open
fmaussion opened this issue Oct 10, 2023 · 0 comments
Open

RGI 7.0 shapefile geometries are stored as 3D polygons #43

fmaussion opened this issue Oct 10, 2023 · 0 comments
Labels
important something users should be aware of RGI 7.0 refers to RGI 7.0
Milestone

Comments

@fmaussion
Copy link
Contributor

RGI version
RGI v7.0

Describe the issue
GLIMS provides the geometries as 3D polygons, and this is then carried over to the RGI files. Many shapefile readers do not have any problem with 3D geometries, but some do.

Expected outcome
RGI files should not have a z dimension.

Suggested solution
The files can be converted with python with:

import geopandas as gpd
df = gpd.read_file('RGI2000-v7.0-G-12_caucasus_middle_east')
df['geometry'] = gpd.GeoSeries.from_wkb(df.to_wkb(output_dimension=2).geometry)
df.to_file('RGI2000-v7.0-G-12_caucasus_middle_east_noz/RGI2000-v7.0-G-12_caucasus_middle_east.shp')

I'll run this on all of RGI 7.0 and share the files somewhere. This will be solved in RGI 7.1.

@fmaussion fmaussion added the RGI 7.0 refers to RGI 7.0 label Oct 10, 2023
@fmaussion fmaussion added the important something users should be aware of label Oct 26, 2023
@fmaussion fmaussion added this to the 7.1 milestone Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important something users should be aware of RGI 7.0 refers to RGI 7.0
Projects
None yet
Development

No branches or pull requests

1 participant