Ticket #1857: napnik.patch

File napnik.patch, 1.3 KB (added by brwk, 5 years ago)

patch for mapnik utility script.

  • mapnik-osm-updater.sh

     
    496496    lwpostgis="/usr/share/postgresql-8.4-postgis/lwpostgis.sql" 
    497497    test -s $lwpostgis || lwpostgis="/usr/share/postgresql-8.3-postgis/lwpostgis.sql" 
    498498    test -s $lwpostgis || lwpostgis="/usr/share/postgresql-8.2-postgis/lwpostgis.sql" 
     499    test -s $lwpostgis || lwpostgis="/usr/share/pgsql/contrib/lwpostgis-64.sql" 
    499500    test -s $lwpostgis || lwpostgis="`ls /usr/share/postgresql-*-postgis/lwpostgis.sql| sort -n | head 1`" 
    500501    if [ ! -s $lwpostgis ] ; then 
    501502        echo "!!!!!! ERROR: Cannot find $lwpostgis" 
     
    586587    test -s "$srid_spatial_ref_sys" || srid_spatial_ref_sys="/usr/share/postgresql-8.2-postgis/spatial_ref_sys.sql" 
    587588    test -s "$srid_spatial_ref_sys" || srid_spatial_ref_sys="/usr/share/postgresql-8.*-postgis/spatial_ref_sys.sql" 
    588589    test -s "$srid_spatial_ref_sys" || srid_spatial_ref_sys="/usr/share/postgresql-*-postgis/spatial_ref_sys.sql" 
     590    test -s "$srid_spatial_ref_sys" || srid_spatial_ref_sys="/usr/share/pgsql/contrib/spatial_ref_sys.sql" 
    589591    if [ ! -s $srid_spatial_ref_sys ] ; then 
    590592        echo "!!!!!! ERROR: Cannot find $srid_spatial_ref_sys" 
    591593        exit -1