#1 Wed 16 March 2011 09:22
- joe69
- Participant occasionnel
- Date d'inscription: 13 Mar 2011
- Messages: 20
[Mapserver] Problème d'exécution
Bonjour,
je viens d'installer mapserver sur un ubuntu. J'ai récupérer toutes les dernières versions pour chaque outils (gd, gdal, libpng etc...).
Lorsque j'essaie d'exécuter ce mapfile à partir de mon navigateur Web,
Code:
# Map file created from QGIS project file
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
NAME "QGIS-MAP"
# Map image size
SIZE 100 100
UNITS meters
EXTENT -6.945564 41.133703 12.129085 51.314476
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE agg
OUTPUTFORMAT
NAME agg
DRIVER 'AGG/PNG'
IMAGEMODE RGB
END
# Legend
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
# Web interface definition. Only the template parameter
# is required to display a map. See MapServer documentation
WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/tmp/'
# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/tmp/'
# WMS server settings
METADATA
'ows_title' 'QGIS-MAP'
'ows_onlineresource' 'http://localhost/cgi-bin/mapserv?map=/home/toto/limite_dep2.map'
'ows_srs' 'EPSG:4326'
END
#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See MapServer documentation
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
END
LAYER
NAME 'LIMITE_DEPARTEMENT'
TYPE LINE
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -6.945564 41.133703 12.129085 51.314476
DATA '/home/toto/LIMITE_DEPARTEMENT2.shp'
METADATA
'ows_title' 'LIMITE_DEPARTEMENT'
"wfs_title" "LIMITE_DEPARTEMENT"
"gml_featureid" "id_geofla"
"GML_INCLUDE_ITEMS" "all"
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
END
ENDvoici le résultat :
Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo).
Je ne sais pas d'où sort ce fooOnlyForWMSGetFeatureInfo (apparemment ca vient de QGIS cf un autre post sur ce forum). Comment je pourrais faire dans mon cas ?
Merci
Hors ligne
#2 Thu 17 March 2011 10:49
- joe69
- Participant occasionnel
- Date d'inscription: 13 Mar 2011
- Messages: 20
Re: [Mapserver] Problème d'exécution
Laisser tomber j'ai trouvé l'erreur mais je pense que je ne vous ai pas donné assez de détail pour que vous pussiez m'aider.
Hors ligne


