Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20841

Turn GIS implementation into a plugin

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Data types, GIS
    • None

    Description

      Under terms of this task we'll do the following:

      • Move the following source files from /sql/ to /plugins/type_geom/:
        • gcalc_slice_scan.h
        • gcalc_slice_scan.cc
        • gcalc_tools.h
        • gcalc_tools.cc
        • item_geofunc.h
        • item_geofunc.cc
        • spatial.h
        • spatial.cc
        • sql_type_geom.h
        • sql_type_geom.cc
      • Move test files gis*.result and gis*.test from /mysql-test/ to /plugins/type_geom/mysql-test/:
      • Wrap type_handler_geometry (and its sub-types) into MariaDB_DATA_TYPE_PLUGIN instances
      • Wrap all SQL functions defined in func_array_geom[] in item_gefunc.cc into MariaDB_FUNCTION_PLUGIN instances

      Attachments

        Issue Links

          Activity

            ralf.gebhardt Ralf Gebhardt added a comment -

            Moved to 10.6 after discussing with bar

            ralf.gebhardt Ralf Gebhardt added a comment - Moved to 10.6 after discussing with bar

            ls reports the following stripped file sizes:

            -rw-rw-r--. 1 bar bar    35472 Jul 20 10:59 gcalc_slicescan.cc.o
            -rw-rw-r--. 1 bar bar    38656 Jul 20 10:59 gcalc_tools.cc.o
            -rw-rw-r--. 1 bar bar   413952 Jul 20 10:59 item_geofunc.cc.o
            -rwxrwxr-x. 1 bar bar 30390128 Jul 20 10:59 mariadbd
            -rw-rw-r--. 1 bar bar    74312 Jul 20 10:59 spatial.cc.o
            -rw-rw-r--. 1 bar bar   199896 Jul 20 10:59 sql_type_geom.cc.o
            

            So the C++ part of the GIS implementation takes 2.5% of the overall server binary.

            bar Alexander Barkov added a comment - ls reports the following stripped file sizes: -rw-rw-r--. 1 bar bar 35472 Jul 20 10:59 gcalc_slicescan.cc.o -rw-rw-r--. 1 bar bar 38656 Jul 20 10:59 gcalc_tools.cc.o -rw-rw-r--. 1 bar bar 413952 Jul 20 10:59 item_geofunc.cc.o -rwxrwxr-x. 1 bar bar 30390128 Jul 20 10:59 mariadbd -rw-rw-r--. 1 bar bar 74312 Jul 20 10:59 spatial.cc.o -rw-rw-r--. 1 bar bar 199896 Jul 20 10:59 sql_type_geom.cc.o So the C++ part of the GIS implementation takes 2.5% of the overall server binary.

            People

              holyfoot Alexey Botchkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.