[mapserver-users] template not showing map
Hi there! i have a problem diplaying nodes, which are read from a postgresql/postgis database. specifically the problem is that when trying to display the nodes using a pretty standard template i don not get a picture, but surprisingly it is generated in the tmp folder (with right timestamp). i am also able to show it via web when navigating to the tmp folder, so it might not be a problem of user rights. http://www.pictureupload.de/originals/pictures/181109204617_no_map_displayed.png shows what it looks like when viewing the template http://www.pictureupload.de/originals/pictures/181109204754_picture_generated.png but the picture is generated! Hopefully you guys can help me if i provide you with the mapfile and the template-sourcecode. please let me know if there is anything more you need me to provide you with. thanks for the help bryan hempen # WFS.MAP MAP NAME 'WFS-Server' IMAGETYPE PNG EXTENT8.01 52.2282 8.135 52.3109 #Osm-Koords. UNITS METERS DEBUG ON # SHAPEPATH 'C:/ms4w/Apache/htdocs/osnamap/data' SYMBOLSET '/home/sgraeule/public_html/mapserver/symbols/symbols.sym' FONTSET '/home/sgraeule/public_html/mapserver/fonts/fonts.list' IMAGECOLOR200 200 200 SIZE 500 500 # Grundeinstellungen- PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/home/sgraeule/public_html/mapserver/template.html' IMAGEPATH '/home/sgraeule/public_html/tmp/' IMAGEURL '/tmp/' METADATA WFS_TITLE WFS-Test WFS_SRS epsg:4326 WFS_ABSTRACT POIS WFS_ONLINERESOURCE http://igf-project.igf.uni-osnabrueck.de/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.map; END END LAYER SYMBOLSCALE 5 NAME 'punkt_db'# Layer-Name, der in OpenLayers aufgerufen wird TYPE POINT STATUS DEFAULT CONNECTIONTYPE postgis# Verbindung zur PostGIS-Datenbank CONNECTION user=# password=# dbname=# host=localhost port=5432 DATA geom from nodes CLASSITEM'id' DUMP TRUE METADATA WFS_TITLE geb WFS_SRS epsg:4326 # Festlegung des Koordinatensystems gml_featureid id GML_INCLUDE_ITEMS all END CLASS # Stil-Optionen; spielen fuer OpenLayers keine Rolle STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END END !-- MapServer Template -- html head titleBeispiel zum UMN MapServer/title /head body font face=VERDANA,ARIAL,HELVETICA bBeispiel: UMN MapServer/bbr a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img br a href=/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.mapAusgangszustand/a form method=GET action=/cgi-bin/mapserv table tr td valign=top input type=image name=img src=[img] border=1 br /td input type=hidden name=map value=[map] !-- Pfad zur map-Datei -- input type=hidden name=imgext value=[mapext] !-- Kartenausdehnung -- input type=hidden name=imgxy value=190 190 !-- das mittlere Pixel der Grafik (dient als Zentrum beim Zoomen) -- td valign=top brbr bMouml;chten Sie Browsen oder eine Abfrage durchfuuml;hren?/bbr input type=radio name=mode value=browse checkedBrowse/inputbr input type=radio name=mode value=queryAbfrage/inputbrbrbr Zoombr select name=zoom size=1 option value=44X hinein/option option value=22X hinein/option option value=1 selectednein/option option value=-22X heraus/option option value=-44X heraus/option /selectbr /form /td /tr table !-- img src=[legend] -- /body /html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] template not showing map
Is your IMAGEURL correct? Is your template correctly referencing the directory where the image is being created? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 1:50 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] template not showing map Hi there! i have a problem diplaying nodes, which are read from a postgresql/postgis database. specifically the problem is that when trying to display the nodes using a pretty standard template i don not get a picture, but surprisingly it is generated in the tmp folder (with right timestamp). i am also able to show it via web when navigating to the tmp folder, so it might not be a problem of user rights. http://www.pictureupload.de/originals/pictures/181109204617_no_map_displayed.png shows what it looks like when viewing the template http://www.pictureupload.de/originals/pictures/181109204754_picture_generated.png but the picture is generated! Hopefully you guys can help me if i provide you with the mapfile and the template-sourcecode. please let me know if there is anything more you need me to provide you with. thanks for the help bryan hempen # WFS.MAP MAP NAME 'WFS-Server' IMAGETYPE PNG EXTENT8.01 52.2282 8.135 52.3109 #Osm-Koords. UNITS METERS DEBUG ON # SHAPEPATH 'C:/ms4w/Apache/htdocs/osnamap/data' SYMBOLSET '/home/sgraeule/public_html/mapserver/symbols/symbols.sym' FONTSET '/home/sgraeule/public_html/mapserver/fonts/fonts.list' IMAGECOLOR200 200 200 SIZE 500 500 # Grundeinstellungen- PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/home/sgraeule/public_html/mapserver/template.html' IMAGEPATH '/home/sgraeule/public_html/tmp/' IMAGEURL '/tmp/' METADATA WFS_TITLE WFS-Test WFS_SRS epsg:4326 WFS_ABSTRACT POIS WFS_ONLINERESOURCE http://igf-project.igf.uni-osnabrueck.de/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.map; END END LAYER SYMBOLSCALE 5 NAME 'punkt_db'# Layer-Name, der in OpenLayers aufgerufen wird TYPE POINT STATUS DEFAULT CONNECTIONTYPE postgis# Verbindung zur PostGIS-Datenbank CONNECTION user=# password=# dbname=# host=localhost port=5432 DATA geom from nodes CLASSITEM'id' DUMP TRUE METADATA WFS_TITLE geb WFS_SRS epsg:4326 # Festlegung des Koordinatensystems gml_featureid id GML_INCLUDE_ITEMS all END CLASS # Stil-Optionen; spielen fuer OpenLayers keine Rolle STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END END !-- MapServer Template -- html head titleBeispiel zum UMN MapServer/title /head body font face=VERDANA,ARIAL,HELVETICA bBeispiel: UMN MapServer/bbr a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img br a href=/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.mapAusgangszustand/a form method=GET action=/cgi-bin/mapserv table tr td valign=top input type=image name=img src=[img] border=1 br /td input type=hidden name=map value=[map] !-- Pfad zur map-Datei -- input type=hidden name=imgext value=[mapext] !-- Kartenausdehnung -- input type=hidden name=imgxy value=190 190 !-- das mittlere Pixel der Grafik (dient als Zentrum beim Zoomen) -- td valign=top brbr bMouml;chten Sie Browsen oder eine Abfrage durchfuuml;hren?/bbr input type=radio name=mode value=browse checkedBrowse/inputbr input type=radio name=mode value=queryAbfrage/inputbrbrbr Zoombr select name=zoom size=1 option value=44X hinein/option option value=22X hinein/option option value=1 selectednein/option option value=-22X heraus/option option value=-44X heraus/option /selectbr /form /td /tr table !-- img src=[legend] -- /body /html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] template not showing map
Fawcett, David (MPCA) schrieb: Also, do you have an opening tag for your image? I just see the below line with only a closing tag for img: a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 1:50 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] template not showing map Hi there! i have a problem diplaying nodes, which are read from a postgresql/postgis database. specifically the problem is that when trying to display the nodes using a pretty standard template i don not get a picture, but surprisingly it is generated in the tmp folder (with right timestamp). i am also able to show it via web when navigating to the tmp folder, so it might not be a problem of user rights. http://www.pictureupload.de/originals/pictures/181109204617_no_map_displayed.png shows what it looks like when viewing the template http://www.pictureupload.de/originals/pictures/181109204754_picture_generated.png but the picture is generated! Hopefully you guys can help me if i provide you with the mapfile and the template-sourcecode. please let me know if there is anything more you need me to provide you with. thanks for the help bryan hempen # WFS.MAP MAP NAME 'WFS-Server' IMAGETYPE PNG EXTENT8.01 52.2282 8.135 52.3109 #Osm-Koords. UNITS METERS DEBUG ON # SHAPEPATH 'C:/ms4w/Apache/htdocs/osnamap/data' SYMBOLSET '/home/sgraeule/public_html/mapserver/symbols/symbols.sym' FONTSET '/home/sgraeule/public_html/mapserver/fonts/fonts.list' IMAGECOLOR200 200 200 SIZE 500 500 # Grundeinstellungen- PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/home/sgraeule/public_html/mapserver/template.html' IMAGEPATH '/home/sgraeule/public_html/tmp/' IMAGEURL '/tmp/' METADATA WFS_TITLE WFS-Test WFS_SRS epsg:4326 WFS_ABSTRACT POIS WFS_ONLINERESOURCE http://igf-project.igf.uni-osnabrueck.de/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.map; END END LAYER SYMBOLSCALE 5 NAME 'punkt_db'# Layer-Name, der in OpenLayers aufgerufen wird TYPE POINT STATUS DEFAULT CONNECTIONTYPE postgis# Verbindung zur PostGIS-Datenbank CONNECTION user=# password=# dbname=# host=localhost port=5432 DATA geom from nodes CLASSITEM'id' DUMP TRUE METADATA WFS_TITLE geb WFS_SRS epsg:4326 # Festlegung des Koordinatensystems gml_featureid id GML_INCLUDE_ITEMS all END CLASS # Stil-Optionen; spielen fuer OpenLayers keine Rolle STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END END !-- MapServer Template -- html head titleBeispiel zum UMN MapServer/title /head body font face=VERDANA,ARIAL,HELVETICA bBeispiel: UMN MapServer/bbr a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img br a href=/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.mapAusgangszustand/a form method=GET action=/cgi-bin/mapserv table tr td valign=top input type=image name=img src=[img] border=1 br /td input type=hidden name=map value=[map] !-- Pfad zur map-Datei -- input type=hidden name=imgext value=[mapext] !-- Kartenausdehnung -- input type=hidden name=imgxy value=190 190 !-- das mittlere Pixel der Grafik (dient als Zentrum beim Zoomen) -- td valign=top brbr bMouml;chten Sie Browsen oder eine Abfrage durchfuuml;hren?/bbr input type=radio name=mode value=browse checkedBrowse/inputbr input type=radio name=mode value=queryAbfrage/inputbrbrbr Zoombr select name=zoom size=1 option value=44X hinein/option option value=22X hinein/option option value=1 selectednein/option option value=-22X heraus/option option value=-44X heraus/option /selectbr /form /td /tr table !-- img src=[legend] -- /body /html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users hi! imagepath + imageurl are definately set right now, but it does not change anything. IMAGEPATH '/home/sgraeule/public_html/mapserver/tmp/' IMAGEURL '/home/sgraeule/public_html/mapserver/tmp/' you may want to take a look by yourself: http://igf-project.igf.uni-osnabrueck.de/~sgraeule/mapserver/tmp/ i am not sure about how to use the image-tag, so i added the following piece of code to the template. img src=[img] /img when executed umn mapserver correctly makes it img src=/home/sgraeule/public_html/mapserver/tmp/WFS-Server12585768438242.png /img ,but my firefox still does not show the picture, but just a hint
RE: [mapserver-users] template not showing map
I really don't think that your IMAGEURL is correct now. IMAGEPATH is the path to your temp directory. IMAGEURL is the URL that you use to access this same directory using your Web server/browser. It should be relative to your Web root. I would guess that your IMAGEURL might be '/~sgraeule/mapserver/tmp/' David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 2:53 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] template not showing map Fawcett, David (MPCA) schrieb: Also, do you have an opening tag for your image? I just see the below line with only a closing tag for img: a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 1:50 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] template not showing map Hi there! i have a problem diplaying nodes, which are read from a postgresql/postgis database. specifically the problem is that when trying to display the nodes using a pretty standard template i don not get a picture, but surprisingly it is generated in the tmp folder (with right timestamp). i am also able to show it via web when navigating to the tmp folder, so it might not be a problem of user rights. http://www.pictureupload.de/originals/pictures/181109204617_no_map_displayed.png shows what it looks like when viewing the template http://www.pictureupload.de/originals/pictures/181109204754_picture_generated.png but the picture is generated! Hopefully you guys can help me if i provide you with the mapfile and the template-sourcecode. please let me know if there is anything more you need me to provide you with. thanks for the help bryan hempen # WFS.MAP MAP NAME 'WFS-Server' IMAGETYPE PNG EXTENT8.01 52.2282 8.135 52.3109 #Osm-Koords. UNITS METERS DEBUG ON # SHAPEPATH 'C:/ms4w/Apache/htdocs/osnamap/data' SYMBOLSET '/home/sgraeule/public_html/mapserver/symbols/symbols.sym' FONTSET '/home/sgraeule/public_html/mapserver/fonts/fonts.list' IMAGECOLOR200 200 200 SIZE 500 500 # Grundeinstellungen- PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/home/sgraeule/public_html/mapserver/template.html' IMAGEPATH '/home/sgraeule/public_html/tmp/' IMAGEURL '/tmp/' METADATA WFS_TITLE WFS-Test WFS_SRS epsg:4326 WFS_ABSTRACT POIS WFS_ONLINERESOURCE http://igf-project.igf.uni-osnabrueck.de/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.map; END END LAYER SYMBOLSCALE 5 NAME 'punkt_db'# Layer-Name, der in OpenLayers aufgerufen wird TYPE POINT STATUS DEFAULT CONNECTIONTYPE postgis# Verbindung zur PostGIS-Datenbank CONNECTION user=# password=# dbname=# host=localhost port=5432 DATA geom from nodes CLASSITEM'id' DUMP TRUE METADATA WFS_TITLE geb WFS_SRS epsg:4326 # Festlegung des Koordinatensystems gml_featureid id GML_INCLUDE_ITEMS all END CLASS # Stil-Optionen; spielen fuer OpenLayers keine Rolle STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END END !-- MapServer Template -- html head titleBeispiel zum UMN MapServer/title /head body font face=VERDANA,ARIAL,HELVETICA bBeispiel: UMN MapServer/bbr a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img br a href=/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.mapAusgangszustand/a form method=GET action=/cgi-bin/mapserv table tr td valign=top input type=image name=img src=[img] border=1 br /td input type=hidden name=map value=[map] !-- Pfad zur map-Datei -- input type=hidden name=imgext value=[mapext] !-- Kartenausdehnung -- input type=hidden name=imgxy value=190 190 !-- das mittlere Pixel der Grafik (dient als Zentrum beim Zoomen) -- td valign=top brbr bMouml;chten Sie Browsen oder eine Abfrage durchfuuml;hren?/bbr input type=radio name=mode value=browse checkedBrowse/inputbr input type=radio name=mode value=queryAbfrage/inputbrbrbr Zoombr select name=zoom size=1 option value=44X hinein/option option value=22X hinein/option option value=1 selectednein/option option value=-22X heraus/option option value=-44X heraus/option /selectbr /form /td /tr table !-- img src=[legend] -- /body /html
RE: [mapserver-users] template not showing map
As an aside for the doc gods... On http://mapserver.org/mapfile/web.html, shouldn't it say: IMAGEURL [url] Base URL for IMAGEPATH. This is the URL that will take the web browser to IMAGEPATH to get the images. And not: IMAGEURL [path] Base URL for IMAGEPATH. This is the URL that will take the web browser to IMAGEPATH to get the images. And maybe mention that the URL should be relative to the Web root? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 2:53 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] template not showing map Fawcett, David (MPCA) schrieb: Also, do you have an opening tag for your image? I just see the below line with only a closing tag for img: a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Wednesday, November 18, 2009 1:50 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] template not showing map Hi there! i have a problem diplaying nodes, which are read from a postgresql/postgis database. specifically the problem is that when trying to display the nodes using a pretty standard template i don not get a picture, but surprisingly it is generated in the tmp folder (with right timestamp). i am also able to show it via web when navigating to the tmp folder, so it might not be a problem of user rights. http://www.pictureupload.de/originals/pictures/181109204617_no_map_displayed.png shows what it looks like when viewing the template http://www.pictureupload.de/originals/pictures/181109204754_picture_generated.png but the picture is generated! Hopefully you guys can help me if i provide you with the mapfile and the template-sourcecode. please let me know if there is anything more you need me to provide you with. thanks for the help bryan hempen # WFS.MAP MAP NAME 'WFS-Server' IMAGETYPE PNG EXTENT8.01 52.2282 8.135 52.3109 #Osm-Koords. UNITS METERS DEBUG ON # SHAPEPATH 'C:/ms4w/Apache/htdocs/osnamap/data' SYMBOLSET '/home/sgraeule/public_html/mapserver/symbols/symbols.sym' FONTSET '/home/sgraeule/public_html/mapserver/fonts/fonts.list' IMAGECOLOR200 200 200 SIZE 500 500 # Grundeinstellungen- PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/home/sgraeule/public_html/mapserver/template.html' IMAGEPATH '/home/sgraeule/public_html/tmp/' IMAGEURL '/tmp/' METADATA WFS_TITLE WFS-Test WFS_SRS epsg:4326 WFS_ABSTRACT POIS WFS_ONLINERESOURCE http://igf-project.igf.uni-osnabrueck.de/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.map; END END LAYER SYMBOLSCALE 5 NAME 'punkt_db'# Layer-Name, der in OpenLayers aufgerufen wird TYPE POINT STATUS DEFAULT CONNECTIONTYPE postgis# Verbindung zur PostGIS-Datenbank CONNECTION user=# password=# dbname=# host=localhost port=5432 DATA geom from nodes CLASSITEM'id' DUMP TRUE METADATA WFS_TITLE geb WFS_SRS epsg:4326 # Festlegung des Koordinatensystems gml_featureid id GML_INCLUDE_ITEMS all END CLASS # Stil-Optionen; spielen fuer OpenLayers keine Rolle STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END END !-- MapServer Template -- html head titleBeispiel zum UMN MapServer/title /head body font face=VERDANA,ARIAL,HELVETICA bBeispiel: UMN MapServer/bbr a href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img br a href=/cgi-bin/mapserv?map=/home/sgraeule/public_html/mapserver/wfs.mapAusgangszustand/a form method=GET action=/cgi-bin/mapserv table tr td valign=top input type=image name=img src=[img] border=1 br /td input type=hidden name=map value=[map] !-- Pfad zur map-Datei -- input type=hidden name=imgext value=[mapext] !-- Kartenausdehnung -- input type=hidden name=imgxy value=190 190 !-- das mittlere Pixel der Grafik (dient als Zentrum beim Zoomen) -- td valign=top brbr bMouml;chten Sie Browsen oder eine Abfrage durchfuuml;hren?/bbr input type=radio name=mode value=browse checkedBrowse/inputbr input type=radio name=mode value=queryAbfrage/inputbrbrbr Zoombr select name=zoom size=1 option value=44X hinein/option option value=22X hinein/option option value=1 selectednein/option option value=-22X heraus/option option value=-44X heraus/option