Skip to content

Commit

Permalink
/vsi7z/: add .mpk and .mpkx extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 8, 2023
1 parent 03ca068 commit dde947d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/user/virtual_file_systems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ To point to a file inside a 7z file, the filename must be of the form
is the relative path to the file inside the archive.`

Default extensions recognized by this virtual file system are:
``7z``, ``lpk`` (Esri ArcGIS Layer Package) and ``lpkx``.
``7z``, ``lpk`` (Esri ArcGIS Layer Package), ``lpkx``, ``mpk`` (Esri ArcGIS Map Package) and ``mpkx``.

An alternate syntax is available so as to enable chaining and not being
dependent on those extensions, e.g.: :file:`/vsi7z/{/path/to/the/archive}/path/inside/the/archive`.
Expand Down
2 changes: 1 addition & 1 deletion port/cpl_vsil_libarchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class VSILibArchiveFilesystemHandler final : public VSIArchiveFilesystemHandler
}
virtual std::vector<CPLString> GetExtensions() override
{
return {".7z", ".lpk", ".lpkx"};
return {".7z", ".lpk", ".lpkx", ".mpk", ".mpkx"};
}
virtual VSIArchiveReader *
CreateReader(const char *pszArchiveFileName) override;
Expand Down

0 comments on commit dde947d

Please sign in to comment.