We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. GemGIS should be capable of reading MPK files.
See: https://docs.fileformat.com/gis/mpk/#:~:text=Create%20MPK%20File%20Using%20ArcGIS,-MPK%20files%20can&text=The%20%E2%80%9CShare%20As%E2%80%9D%20option%20in,view%20the%20map%20and%20data.
Describe the solution you'd like
os.rename()
.mpk
.zip
import os file_in = 'file.mpk' file_out = file_in.split('.mpk')[0] os.rename(file_in, file_out+'.zip')
and
import py7zr with py7zr.SevenZipFile(file_out+'.zip', 'r') as archive: archive.extractall(path=file_out)
os.walk()
files = [os.path.join(path, name) for path, subdirs, files in os.walk(file_out) for name in files if name.endswith(".shp")]
gdfs = {file.rsplit('\\')[-1]: gpd.read_file(file) for file in files}
Describe alternatives you've considered Renaming the file manually and open the shapefiles manually
Additional context No other package was found so far that can do this
The text was updated successfully, but these errors were encountered:
Added in #299
Sorry, something went wrong.
AlexanderJuestel
No branches or pull requests
Is your feature request related to a problem? Please describe.
GemGIS should be capable of reading MPK files.
See: https://docs.fileformat.com/gis/mpk/#:~:text=Create%20MPK%20File%20Using%20ArcGIS,-MPK%20files%20can&text=The%20%E2%80%9CShare%20As%E2%80%9D%20option%20in,view%20the%20map%20and%20data.
Describe the solution you'd like
os.rename()
to rename.mpk
to.zip
and
archive.extractall()` to extract all filesos.walk()
to go through all directories and list all shapefilesDescribe alternatives you've considered
Renaming the file manually and open the shapefiles manually
Additional context
No other package was found so far that can do this
The text was updated successfully, but these errors were encountered: