I'm developing a script to POST a .GDB to a geoprocessing service. Part of my workflow involves opening it while building the POST request:
files = {'file': (open(C:\\Temp.gdb, 'r'))} r = requests.post(uploadsUrl, files=files, data=data) I'm able to execute the first line with a personal geodatabase (.mdb) but receive an error when opening a GDB:
IOError: [Errno 13] Permission denied: 'C:\\Temp.gdb' Is it possible to use the open() command on a file geodatabase? I could read through all feature classes and POST them individually to the REST API, but moving the GDB would be much easier.
أكثر...
files = {'file': (open(C:\\Temp.gdb, 'r'))} r = requests.post(uploadsUrl, files=files, data=data) I'm able to execute the first line with a personal geodatabase (.mdb) but receive an error when opening a GDB:
IOError: [Errno 13] Permission denied: 'C:\\Temp.gdb' Is it possible to use the open() command on a file geodatabase? I could read through all feature classes and POST them individually to the REST API, but moving the GDB would be much easier.
أكثر...