Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-366

sis-gdal module should not write native file in the temporary directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.8
    • Component/s: Storage
    • Labels:
      None
    • Environment:

      Linux, MacOS

      Description

      The sis-gdal module uses Java Native Interface (JNI) for accessing the Proj.4 library. Currently, the JNI are pre-compiled in storage/sis-gdal/src/main/resources/native/<OS>/libproj-binding.so files where <OS> is linux or darwin. The file size is about 14 kb. Since we can not load a library from a JAR file, we have to copy it as a regular file somewhere. Current implementation copies it in the temporary directory.

      Problem is that some environments do not give execution permission in the temporary directory. Consequently we should save the libproj-binding.so files somewhere else. Some possibilities are:

      1. Platform-specific directory like <user directory>/Library on MacOS.
      2. A sub-directory of $SIS_DATA.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                desruisseaux Martin Desruisseaux
                Reporter:
                desruisseaux Martin Desruisseaux
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: