tecnica:gps_cartografia_gis:mapserver_oracle
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tecnica:gps_cartografia_gis:mapserver_oracle [2011/12/01 16:57] – created niccolo | tecnica:gps_cartografia_gis:mapserver_oracle [2011/12/06 13:08] (current) – [Compilazione MapServer] niccolo | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| La compilazione di MapServer con supporto ad Oracle Spatial su Debian GNU/Linux è del tutto analoga alla procedura descritta in: **[[gdal_oracle]]**. | La compilazione di MapServer con supporto ad Oracle Spatial su Debian GNU/Linux è del tutto analoga alla procedura descritta in: **[[gdal_oracle]]**. | ||
| - | Si riassume brevemente la procedura: | + | Si riassume brevemente la procedura | 
| ===== Installazione Oracle Instant Client ===== | ===== Installazione Oracle Instant Client ===== | ||
| Line 19: | Line 19: | ||
| ===== Compilazione MapServer ===== | ===== Compilazione MapServer ===== | ||
| + | |||
| + | - Scaricare i sorgenti e installare le dipendenze necessarie alla compilazione: | ||
| + | apt-get build-dep mapserver</ | ||
| + | - Modificare il **'' | ||
| + | --with-postgis \ | ||
| + | --with-oraclespatial=/ | ||
| + | --with-wcs \ | ||
| + | ...</ | ||
| + | - Ricompilare con < | ||
| + | |||
| + | Verificare che il supporto sia incluso nell' | ||
| + | |||
| + | < | ||
| + | # ./mapserv -v | ||
| + | MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF | ||
| + | OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI | ||
| + | SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT | ||
| + | SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS | ||
| + | SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL | ||
| + | INPUT=SHAPEFILE | ||
| + | </ | ||
| + | |||
| + | L' | ||
| + | |||
| + | * libaio.so.1 | ||
| + | * libclntsh.so.11.1 | ||
| + | * libnnz11.so | ||
| + | |||
| + | ===== Variabile ORACLE_HOME ===== | ||
| + | |||
| + | Bisogna impostare la variabile **'' | ||
| + | |||
| + | Si può mettere direttamente in uno script cgi-bin (es. ''/ | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | MAPSERV="/ | ||
| + | MAPFILE=" | ||
| + | export ORACLE_HOME="/ | ||
| + | if [ " | ||
| + | if [ -z " | ||
| + | QUERY_STRING=" | ||
| + | else | ||
| + | QUERY_STRING=" | ||
| + | fi | ||
| + | exec ${MAPSERV} | ||
| + | else | ||
| + | echo " | ||
| + | fi | ||
| + | exit 1 | ||
| + | </ | ||
| + | |||
| + | Esempio di tnsnames.ora: | ||
| + | |||
| + | < | ||
| + | sitfi02 = | ||
| + |  | ||
| + | (ADDRESS_LIST = | ||
| + | (ADDRESS = (PROTOCOL = TCP)(HOST = oracle.intranet.net)(PORT = 1521)) | ||
| + | ) | ||
| + | (CONNECT_DATA = | ||
| + | (SERVICE_NAME = dbinstance) | ||
| + | ) | ||
| + | ) | ||
| + | </ | ||
tecnica/gps_cartografia_gis/mapserver_oracle.1322755046.txt.gz · Last modified:  by niccolo
                
                