Skip to content

Commit 9d3ff79

Browse files
committed
Add support for LPKX layer package import
1 parent d25211b commit 9d3ff79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

databasin/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ def get_temporary_file(self, uuid):
222222
raise
223223

224224
def import_lpk(self, lpk_file, xml=None):
225-
if lpk_file.endswith('.lpk'):
225+
if lpk_file.endswith('.lpk') or lpk_file.endswith('.lpkx'):
226226
f = open(lpk_file, 'rb')
227227
else:
228-
raise ValueError('File must be an ArcGIS Layer Package with a .lpk extension')
228+
raise ValueError('File must be an ArcGIS Layer Package with a .lpk or .lpkx extension')
229229

230230
filename = os.path.basename(lpk_file)
231231

0 commit comments

Comments
 (0)