| 490 | == '''Why avoid to link with PostGIS?''' == |
| 491 | |
| 492 | The general idea is that when we need PostGIS services to manipulate geometries, we should always use PL/pgSQL functions instead of implementing them in C. This prevent us from having to link with any PostGIS lib (mostly liblwgeom.a). This has some advantages: |
| 493 | |
| 494 | 1. We facilitate backward compatibility with older version of PostGIS - The SQL API is much more stable than the internal C API. |
| 495 | |
| 496 | 2. This makes WKT Raster releases as much as possible independent from PostGIS releases. We don't have to make sure WKT Raster is compatible (compile) with the very last PostGIS C function version. |
| 497 | |
| 498 | 3. This prevent us from constantly having to adjust our code to changes in the PostGIS C API. |