Opened 11 years ago
Closed 11 years ago
#5061 closed enhancement (fixed)
Update build-process for SOSI-driver and add a --with-sosi option to ./configure
Reported by: | sbl | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | SOSI, driver |
Cc: |
Description
Recently, the driver for the Norwegian SOSI standard has been improved and successfully compiled, installed and tested on Ubuntu Linux (12.04) with both 64 and 32bit. This happend because of increased user interest.
See: http://osgeo-org.1560.x6.nabble.com/Compile-GDAL-OGR-with-SOSI-support-td5045207.html#a5046341 http://trac.osgeo.org/gdal/ticket/3638
In order to make these improvements more easily available for common GDAL users, it would be great if the build-modifications in https://github.com/kartverket/gdal could be re-integrated into the gdal-project (in a modified way), and a --with-sosi option could be added to ./configure (idealy with feedback like "SOSI support: yes/no").
At least for Norwegian users, being able to read and write SOSI data directly with GDAL/OGR would be really a significant advantage compared to other commercial GIS software. Because the latter require usually converting the SOSI data e.g. to shape-format first. This is done using another commercial tool (outside the GIS) which is not as convenient as the SOSI-driver in OGR. Furthermore the commercial SOSI-conversion tool cannot be integrated in automatized workflows easily esp. on Linux.
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
There were already a few memory usage errors in the current code in GDAL trunk. Fixed by :
trunk r25955 "SOSI: fix memory leaks and use of uninitialized memory"
comment:3 by , 11 years ago
trunk r25956 "SOSI: fix errors and segfault found by running test_ogrsf"
trunk r25954 configure configure.in GDALmake.opt.in ogr/ogrsf_frmts/GNUmakefile ogr/ogrsf_frmts/generic/GNUmakefile ogr/ogrsf_frmts/generic/ogrregisterall.cpp ogr/ogrsf_frmts/sosi -m "SOSI: add Unix configure support (partial merge of https://github.com/kartverket/gdal, only the build changes) (#5061)"
I didn't merge the changes in OGR SOSI driver themselves since I see that the datatypes mechanism leaks a lot of memory. The memory management of this part should be fixed.