| 1 | = Build GDAL with support for the Norwegian SOSI format = |
| 2 | |
| 3 | |
| 4 | [[TOC]] |
| 5 | |
| 6 | * Initial discussion about the integration if a driver for the Norwegian SOSI format ([http://trac.osgeo.org/gdal/ticket/3638]) |
| 7 | * Updates on the activities of the National Mapping Authority of Norway (Statens kartverk) on that topic (in Norwegian) ([http://labs.kartverket.no/sos/]) |
| 8 | |
| 9 | |
| 10 | == Unix (Tested on Ubuntu 12.04) == |
| 11 | |
| 12 | |
| 13 | === Download and build the FYBA library from the National Mapping Authority of Norway (Statens kartverk) === |
| 14 | |
| 15 | The SOSI driver requires the FYBA library to read and write files in the Norwegian geodata standard format SOSI. OpenFYBA is, a source code release of the FYBA library, is distributed by the National Mapping Authority of Norway (Statens kartverk) and can be downloaded from their git repository: ([https://github.com/kartverket/fyba]) |
| 16 | |
| 17 | {{{ |
| 18 | git clone https://github.com/kartverket/fyba |
| 19 | cd fyba |
| 20 | autoreconf --force --install |
| 21 | ./configure |
| 22 | make |
| 23 | sudo make install |
| 24 | cd .. |
| 25 | }}} |
| 26 | |
| 27 | This procedure installs the FYBA library (libfyba) and it`s dependencies (libfygm and libfyut) in /usr/local/. |
| 28 | |
| 29 | === Download and build GDAL === |
| 30 | |
| 31 | For the time being, convenient access to the SOSI driver is provided by a GDAL version hosted on the git repository of the National Mapping Authority of Norway (Statens Kartverk): |
| 32 | [https://github.com/kartverket/gdal] |
| 33 | |
| 34 | Please note that in this version SOSI-support is non-optional. |
| 35 | |
| 36 | {{{ |
| 37 | git clone https://github.com/kartverket/gdal gdal_sosi |
| 38 | cd gdal_sosi/gdal |
| 39 | ./configure |
| 40 | make |
| 41 | sudo make install |
| 42 | }}} |
| 43 | |
| 44 | == Windows == |
| 45 | To be done. |
| 46 | |
| 47 | There are older downloads including with binary versions for Windows on: |
| 48 | [https://bitbucket.org/kartverket/fyba/src/e0a53133586261258e9333ce314ba1df0a1fb63e/releases?at=releases] |
| 49 | |
| 50 | = Testing the driver = |
| 51 | |
| 52 | To test if the driver is been loaded, execute the following (look for "SOSI" in the results): |
| 53 | |
| 54 | {{{ |
| 55 | ogrinfo --formats |
| 56 | }}} |
| 57 | |
| 58 | |
| 59 | |
| 60 | Then test with a sample file (such as [http://trac.osgeo.org/gdal/attachment/ticket/3638/20BygnAnlegg.SOS] or [http://trac.osgeo.org/gdal/attachment/ticket/3638/20Tekst5000biterISO8859-10.sos]): |
| 61 | |
| 62 | {{{ |
| 63 | ogrinfo 20BygnAnlegg.SOS |
| 64 | ... |
| 65 | }}} |
| 66 | |
| 67 | |
| 68 | = Open Tickets = |
| 69 | [[TicketQuery(status=new|assigned|reopened|enhancement|patch&keywords~=SOSI&order=priority)]] |