[mapserver-users] how to change path httpd.d at ms4w for win 7
Hello all, I am successfully install ms4w vs 3.0 vs 11 and tutorial to install it in : http://osgeo-org.1803224.n2.nabble.com/RE-port-from-Apache-to-IIS-td2721888.html but, i have project from win xp in \ms4w\apps\appweb contain folders : htdocs, map, shp, samples, admin, config, data, etc and i copied to win 7 in C:\ms4w\apps\appweb . then how to open it in address Bar like in win xp : http://localhost/appweb/index.html ? i already add :httpd_appweb in C:\ms4w\httpd.d like when in win xp but still can't work.. Alias /appweb /ms4w/apps/appweb/htdocs/ Directory /ms4w/apps/appweb/htdocs/ AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all /Directory anyone can help? Thanks a lot all :) -dbee, Indonesia :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to change path httpd.d at ms4w for win 7
Thanks Mr. Bob, yeah in option 2 i can do it, so no other way for setting in httpd.d maybe? Hmm... Okay. -Theresia dbee. From: Bob Basques bo...@gritechnologies.com To: mapserver-users@lists.osgeo.org Sent: Thu, December 2, 2010 10:15:10 AM Subject: Re: [mapserver-users] how to change path httpd.d at ms4w for win 7 try these two versions: http://localhost/index.html or http://localhost/appweb/htdocs/index.html On 12/1/2010 8:49 PM, elisabeth theresia wrote: Hello all, I am successfully install ms4w vs 3.0 vs 11 and tutorial to install it in : http://osgeo-org.1803224.n2.nabble.com/RE-port-from-Apache-to-IIS-td2721888.html but, i have project from win xp in \ms4w\apps\appweb contain folders : htdocs, map, shp, samples, admin, config, data, etc and i copied to win 7 in C:\ms4w\apps\appweb . then how to open it in address Bar like in win xp : http://localhost/appweb/index.html ? i already add :httpd_appweb in C:\ms4w\httpd.d like when in win xp but still can't work.. Alias /appweb /ms4w/apps/appweb/htdocs/ Directory /ms4w/apps/appweb/htdocs/ AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all /Directory anyone can help? Thanks a lot all :) -dbee, Indonesia :) ___ 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] MapServer Windows7 EasyPHP setup
Subject: Re: [mapserver-users] MapServer Windows7 EasyPHP setup On 10-10-22 8:25 AM, greg.lu...@scu.edu.au wrote: Hi MapServers, I have a new computer with Windows 7 Pro (64-bit), on which I'd like to get MapServer running. I have installed EasyPHP-5.3.3 (because I heard it worked on Win7), and so I have Apache, PHP and MySQL running. I downloaded ms4w_3.0_beta11 and copied the entire cgi-bin directory into the EasyPHP home directory. I started MapServer but got a message: msProcessProjection(): Projection library error. major axis or radius = 0 or not given I guess there are quite a few configuration settings that I haven't set yet. Is it worth persevering with EasyPHP, or does ms4w work on Win7, and therefore should I just uninstall EasyPHP (and Apache, PHP and MySQL) and install ms4w? = Hello Mr. Greg, i ever met that problem too, i thought MS4W current version (i used old version) can't work in Win 7 (64-bit) if (32-bit) maybe it work. Then, i change OS in different laptop (because my laptop 64-bit) to Win XP for save work :D i hope can help :) -Theresia. ___ 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] How to display Labels from 1 table?
Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your kindness :) best regards, -Theresia From: Lime, Steve D (DNR) steve.l...@state.mn.us To: elisabeth theresia dbee_ka...@yahoo.com; mapserv forumlist mapserver-users@lists.osgeo.org Sent: Wed, October 6, 2010 4:07:27 PM Subject: RE: [mapserver-users] How to display Labels from 1 table? Michael's post was right on, study his example closely. You TEXT parameter is in the wrong place. There's no need to use a FEATURE object... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of elisabeth theresia [dbee_ka...@yahoo.com] Sent: Wednesday, October 06, 2010 10:48 AM To: mapserv forumlist Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Mr. Michael, Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why? then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2]) here the coding: LAYER NAME Annotation of Region TYPE ANNOTATION STATUS DEFAULT FEATURE TEXT ([name_region]|[value_1]-[value_2]) END #FEATURE CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP | END #LABEL END #CLASS END #LAYER Thanks for the attention :) -Theresia rFrom: Michael Schulz x...@xx.x To: elisabeth theresia x...@xx.com Cc: mapserv forumlist mapserver-users@lists.osgeo.org Sent: Wed, October 6, 2010 6:45:30 AM Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP | END # LABEL TEXT ([name_region]|[values_1] - [values_2]) END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia dbee_ka...@yahoo.commailto:dbee_ka...@yahoo.com: Hello Mapserver experts, I have question in my mind, How to display Labels from 1 table in my database (Postgre + Postgis)? in this table there are fields of : name_region, values_1, values_2, How to appear them? Could Mapserver make it? I ask this question, because I want to show the difference values_1 between values_2 in my Bar Chart :) if i do this (code in the bottom) then just appear values_2 in the map :) ? LAYER STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE POSTGIS CONNECTION user=x password=x dbname=mydb host=host port=5432 DATA the_geom FROM tb_region USING UNIQUE code_region LABELITEM name_region CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM values_1 CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM values_2 CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER Thanks really appreciate yours, -Theresia :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in Köln Halle: 11.2 Stand-Nr: 2C.121 ~ --- Michael Schulz msch...@webgis.demailto:msch...@webgis.de in medias res Gesellschaft für Informationstechnologie mbH Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de
Re: [mapserver-users] How to display Labels from 1 table?
Hi Mr. Michael, Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why? then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2]) here the coding: LAYER NAME Annotation of Region TYPE ANNOTATION STATUS DEFAULT FEATURE TEXT ([name_region]|[value_1]-[value_2]) END #FEATURE CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP | END #LABEL END #CLASS END #LAYER Thanks for the attention :) -Theresia rFrom: Michael Schulz x...@xx.x To: elisabeth theresia x...@xx.com Cc: mapserv forumlist mapserver-users@lists.osgeo.org Sent: Wed, October 6, 2010 6:45:30 AM Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP | END # LABEL TEXT ([name_region]|[values_1] - [values_2]) END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia dbee_ka...@yahoo.com: Hello Mapserver experts, I have question in my mind, How to display Labels from 1 table in my database (Postgre + Postgis)? in this table there are fields of : name_region, values_1, values_2, How to appear them? Could Mapserver make it? I ask this question, because I want to show the difference values_1 between values_2 in my Bar Chart :) if i do this (code in the bottom) then just appear values_2 in the map :) ? LAYER STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE POSTGIS CONNECTION user=x password=x dbname=mydb host=host port=5432 DATA the_geom FROM tb_region USING UNIQUE code_region LABELITEM name_region CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM values_1 CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM values_2 CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER Thanks really appreciate yours, -Theresia :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in Köln Halle: 11.2 Stand-Nr: 2C.121 ~ --- Michael Schulz msch...@webgis.de in medias res Gesellschaft für Informationstechnologie mbH Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -- Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Graph only bar and pie without values?
Thanks Forums, yesterday I already can appear graph from Mapserv vs 5.x But, why just appear bar or pie without values? Anyone can explain about the coding that should i write? if i have mapfile with many layer and also many class, how to write it and display graph dynamic? here the example: i have 1 database with 4 tables (tA,tB,tC,tD), in one table has 4 fields but if i want to display just 2 fields (region and total) from each table , how to write it down in Layer TYPE CHART? if i wrote like this, it will display bar on the map all same, no short tall graph and all same pie, no part of it. # tA LAYER #NAME tA STATUS DEFAULT TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=40 30 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=xpassword=pass dbname=db host=localhost port=5432 DATA the_geom FROM tA USING UNIQUE num ## HOW TO WRITE ? CLASS NAME Region 1 TEMPLATE ./template_gender.html EXPRESSION ([total]=1000 and [total]=2000) # is it rite? STYLE SIZE [region] COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME Region 2 TEMPLATE ./template_gender.html EXPRESSION ([total]=2001 and [total]=3000) STYLE SIZE [region] COLOR 255 255 255 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END LAYER # tB LAYER #NAME tA STATUS DEFAULT TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=40 30 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=xpassword=pass dbname=db host=localhost port=5432 DATA the_geom FROM tA USING UNIQUE num ## HOW TO WRITE ? CLASS NAME Region 1 TEMPLATE ./template_gender.html EXPRESSION ([total]=1000 and [total]=2000) # is it rite? STYLE SIZE [region] COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME Region 2 TEMPLATE ./template_gender.html EXPRESSION ([total]=2001 and [total]=3000) STYLE SIZE [region] COLOR 255 255 255 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END LAYER : : until 2 layers more that describe 2 tables. Thanks all, -Theresia :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: How to appear Graph?
hey Mr. Thomas and Mr. Sumit, Lol, i use Mapserver vs 1.6 oh No :( Then i can't appear MapServer ya?? If i change Mapserver version is that any special setting that should i do?? Thanks -Theresia From: thomas bonfort thomas.bonf...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Cc: mapserv forumlist mapserver-users@lists.osgeo.org Sent: Thu, August 26, 2010 10:59:42 PM Subject: Re: [mapserver-users] Re: How to appear Graph? What version of MapServer are you using? Charting appeared in 5.0. Regards, Thomas On Aug 26, 2010 9:02 PM, elisabeth theresia dbee_ka...@yahoo.com wrote: Hi Mr. Sumit, Thanks for your advice. when i tried to apply step by step from: http://mapserver.org/output/dynamic_charting.html then in the browser said: getSymbol(): Symbol definition error. Parsing error near (CHART):(line 66) this is line 66: TYPE CHART why become like this? here the mapfile: ###CHART## LAYER NAME chart bj STATUS ON #TYPE POLYGON TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=20 10 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=dbee password=root dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel CLASS NAME 1000-2000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=1000 and [ljum_bj]=2000) STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 2001-4000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=2001 and [ljum_bj]=4000) STYLE COLOR 255 255 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 4001-8000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=4001 and [ljum_bj]=8000) STYLE COLOR 200 200 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 8001-16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=8001 and [ljum_bj]=16000) STYLE COLOR 150 150 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=16000) STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END #LAYER Thanks a lot and sorry makes confuse :) -Theresia From: Sumit Sharma sumit...@hotmail.com To: mapserver-users@lists.osgeo.org Sent: Wed, August 25, 2010 11:26:23 PM Subject: [mapserver-users] Re: How to appear Graph? You may like to visit following URL for charting... http://mapserver.org/output/dynamic_charting.h... ___ 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] RE: How to appear Graph?
okay then. Thanks a lot Mr. Sumit really thanks :D i will follow the documentation to upgrade the version :) God Bless :) -Theresia From: Sumit Sharma hidden To: hidden Sent: Fri, August 27, 2010 8:18:46 AM Subject: [mapserver-users] RE: How to appear Graph? You really need to upgrade your version Theresia !!! If you follow docuementation and use appropriate version of mapserver I think you should be fine. -Sumit Date: Fri, 27 Aug 2010 05:36:14 -0700 From: [hidden email] To: [hidden email] Subject: Re: How to appear Graph? hey Mr. Thomas and Mr. Sumit, Lol, i use Mapserver vs 1.6 oh No :( Then i can't appear MapServer ya?? If i change Mapserver version is that any special setting that should i do?? Thanks -Theresia From: thomas bonfort [hidden email] To: elisabeth theresia [hidden email] Cc: mapserv forumlist [hidden email] Sent: Thu, August 26, 2010 10:59:42 PM Subject: Re: [mapserver-users] Re: How to appear Graph? What version of MapServer are you using? Charting appeared in 5.0. Regards, Thomas On Aug 26, 2010 9:02 PM, elisabeth theresia [hidden email] wrote: Hi Mr. Sumit, Thanks for your advice. when i tried to apply step by step from: http://mapserver.org/output/dynamic_charting.html then in the browser said: getSymbol(): Symbol definition error. Parsing error near (CHART):(line 66) this is line 66: TYPE CHART why become like this? here the mapfile: ###CHART## LAYER NAME chart bj STATUS ON #TYPE POLYGON TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=20 10 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=dbee password=root dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel CLASS NAME 1000-2000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=1000 and [ljum_bj]=2000) STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 2001-4000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=2001 and [ljum_bj]=4000) STYLE COLOR 255 255 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 4001-8000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=4001 and [ljum_bj]=8000) STYLE COLOR 200 200 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 8001-16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=8001 and [ljum_bj]=16000) STYLE COLOR 150 150 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=16000) STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END #LAYER Thanks a lot and sorry makes confuse :) -Theresia From: Sumit Sharma [hidden email] To: [hidden email] Sent: Wed, August 25, 2010 11:26:23 PM Subject: [mapserver-users] Re: How to appear Graph? You may like to visit following URL for charting... http://mapserver.org/output/dynamic_charting.h... ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users View message @ http://osgeo-org.1803224.n2.nabble.com/How-to-appear-Graph-tp5463915p5469290.html To start a new topic under Mapserver - User, email [hidden email] To unsubscribe from Mapserver - User, click here. View this message in context: RE: How to appear Graph? Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: How to appear Graph?
Hi Mr. Sumit, Thanks for your advice. when i tried to apply step by step from: http://mapserver.org/output/dynamic_charting.html then in the browser said: getSymbol(): Symbol definition error. Parsing error near (CHART):(line 66) this is line 66: TYPE CHART why become like this? here the mapfile: ###CHART## LAYER NAME chart bj STATUS ON #TYPE POLYGON TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=20 10 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=dbee password=root dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel CLASS NAME 1000-2000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=1000 and [ljum_bj]=2000) STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 2001-4000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=2001 and [ljum_bj]=4000) STYLE COLOR 255 255 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 4001-8000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=4001 and [ljum_bj]=8000) STYLE COLOR 200 200 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 8001-16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=8001 and [ljum_bj]=16000) STYLE COLOR 150 150 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=16000) STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END #LAYER Thanks a lot and sorry makes confuse :) -Theresia From: Sumit Sharma sumit...@hotmail.com To: mapserver-users@lists.osgeo.org Sent: Wed, August 25, 2010 11:26:23 PM Subject: [mapserver-users] Re: How to appear Graph? You may like to visit following URL for charting... http://mapserver.org/output/dynamic_charting.html Hope that helps -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-appear-Graph-tp5463915p5464433.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ 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] how to disappear Warning: session_start() in the page?
Hello All Mr. Already works... Thanks for you advices, yesterday i did some changes in coding and no more error message. ~~Horray !!~~ I don't use index_cobacham.phtml anymore. just change in the coding for template. in the template for map i put: html headx/head body form //css //code HTML...~bla...bla.bla~ body onLoad=CWC2OnLoadFunction() table border=0 cellpadding=2 cellspacing=0 tr td colspan=3 align=center CWC2 TYPE=MapDHTML VISIBLE=true WIDTH=384 HEIGHT=204 ALLOWRESIZE=true MARQUEECOLOR=#FF MARQUEEWIDTH=2 MINSCALE=1/ CWC2 TYPE=Title VISIBLE=true LABEL=Aplikasi Web-based GIS LABELCLASS=CWCHelpTitle1 / CWC2 TYPE=Scale VISIBLE=true / CWC2 TYPE=LegendTemplate VISIBLE=true ENABLED=true EMBEDDED=false POPUPWIDTH=500 POPUPHEIGHT=250 TEMPLATE=./legend_template_widget2.html/ CWC2 TYPE=ZoomIn VISIBLE=true IMAGETIP=Zoom In: box atau klik TOOLSET=Navigation IMAGEWIDTH=24 IMAGEHEIGHT=24 IMAGE STATE=normal IMAGE=images/tool_zoomin_off.gif/ IMAGE STATE=hover IMAGE=images/tool_zoomin_over.gif/ IMAGE STATE=selected IMAGE=images/tool_zoomin_on.gif/ /CWC2 bZoom In/bbr CWC2 TYPE=Recenter VISIBLE =true IMAGETIP=Menggeser Tampilan Peta TOOLSET=Navigation IMAGEWIDTH=24 IMAGEHEIGHT=24 IMAGE=images/tool_pan_off.gif/ /CWC2 bPan/Recenter/bbr cwc2 TYPE=PanMap VISIBLE=true IMAGETIP=Menggeser: drag TOOLSET=Navigation IMAGEWIDTH=24 IMAGEHEIGHT=24 IMAGE=images/tool_pan_off.gif/ /cwc2 b Pan/Drag/bbr CWC2 TYPE=Zoomout VISIBLE=true IMAGETIP=Memperkecil Tampilan Peta TOOLSET=Navigation IMAGEWIDTH=24 IMAGEHEIGHT=24 IMAGE=images/tool_zoomout_off.gif/ /CWC2 bZoom Out/bbr CWC2 TYPE=ZoomAllLayers ENABLED=true VISIBLE=true IMAGETIP=Zoom Full Extent TOOLSET=Navigation IMAGEWIDTH=24 IMAGEHEIGHT=24 IMAGE=images/tool_zoomfull_off.gif/ /CWC2 bFull Extent/bbr cwc2 TYPE=CursorPos axis=X label=Bujur : labelposition=8 labelvalign=middle labelclass=label widgetclass=inputbox/ cwc2 TYPE=CursorPos axis=Y label=Lintang: labelposition=8 labelvalign=middle labelclass=label widgetclass=inputbox/ cwc2 TYPE=Query VISIBLE= true IMAGETIP=Identifikasi Unsur TOOLSET=Navigation IMAGEWIDTH=20 IMAGEHEIGHT=20 IMAGE=images/icon_query.gif POPUPWIDTH=400 POPUPHEIGHT=200 RADIUS=3 MAXFEATURES=15 /cwc2 bQuery/bbr cwc2 TYPE=UpdateMap VISIBLE=true IMAGETIP=Meng-update/Refresh tampilan Peta IMAGE=images/icon_update.gif LABEL=Redraw Map IMAGEWIDTH=90 IMAGEHEIGHT=22 /cwc2 /td /tr /table CWC2 TYPE=ErrorReport POPUPWIDTH=500 POPUPHEIGHT=400 TOOLBAR=false STATUS=false MENUBAR=false VISIBLE=false IMAGE=images/icon_error.png IMAGEWIDTH=18
[mapserver-users] Re: [mapserver user]how to set LegendTemplate display color same like class in the mapfile?
pic of :my_strangelegend.jpeg attachment: my_strangeLegend.JPG___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to appear Graph?
Hi all... :D I am making Webgis (PHP, MapServer,Postgis, Chameleon Framework) then, i already can display Map that load from Mapserv+Postgis, but how to display Graph or chart? Thanks -Theresia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] how to set LegendTemplate display color same like class in the mapfile?
Hello all, I have problem to display Legend into the Chameleon Framework? anyone can help? when i put legendtemplate in the web template, then trouble appearance (i sent the picture too: my_strangelegend.jpg). here the coding initialize Legend in the Map (Ina.map) : : CONNECTIONTYPE POSTGIS CONNECTION user=usr password=pass dbname=db host=localhost port=5432 DATA the_geom FROM tbk_x USING UNIQUE kode CLASS NAME xx TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=1000 and [ljum_pkl]=2000) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME yy TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=2001 and [ljum_pkl]=4000) STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CONNECTIONTYPE POSTGIS CONNECTION user=usr password=pass dbname=db host=localhost port=5432 DATA the_geom FROM tbk_x USING UNIQUE kode CLASS NAME xx TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=1000 and [ljum_pkl]=2000) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME yy TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=2001 and [ljum_pkl]=4000) STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS LEGEND # BLOK LEGENDA IMAGECOLOR 255 255 204 # kuning Muda KEYSIZE 18 9 KEYSPACING 3 5 POSTLABELCACHE TRUE STATUS ON # template TRANSPARENT OFF LABEL # LABEL LEGENDA TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 6 ANTIALIAS TRUE END #LABEL TEMPLATE ./legend_template.html initialize Legend in the Web Template using Chameleon Framework (webtemplate.html) body onLoad=CWC2OnLoadFunction() table border=3 cellpadding=1 cellspacing=1 tbody tr td~~~coding CWC2 ELSE bla...bla~~/td td~~~coding CWC2 ELSE bla...bla~~/td td valign=top img src=./images/sim_utara.gifbr CWC2 TYPE=LegendTemplate VISIBLE=true ENABLED=true EMBEDDED=true POPUPWIDTH=50 POPUPHEIGHT=25 TEMPLATE=./legend_template.html/ /td td~~~coding CWC2 ELSE bla...bla~~/td /tr /tbody /body legend_template.html [leg_layer_html order=ascending opt_flag=15] input type=checkbox name=legendlayername[] value=[leg_layer_name] [if name=layer_status oper=eq value=1]CHECKED[/if] [if name=layer_status oper=eq value=2]CHECKED[/if] nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; img src=[leg_icon width=22 height=18] width=22 height=18 [leg_layer_name] [/leg_layer_html] how to display Legend with color like in map's class? Thanks a lot all =) -Theresia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to disappear Warning: session_start() in the page?
Hello Mr. Sumariva, i already did wht u said, but there's new error: error: Call to undefined function: on_get_contens() in I:\ms4w\apps\appweb\htdocs\index_cobacham.phtml on line 2 here i put the cobachanphtml.phtml: ?php $html=on_get_contens(); ob_end_clean(); include(./chameleon.php); $szTemplate=./template_werror.html; $szMapFile=../map/kelur_cobacham.map; class SampleApp extends Chameleon //SampleApp merupakan turunan dari Chameleon { function SampleApp() //Nama fungsi { parent::Chameleon(); //Menjalankan konstruktor class Chameleon $this-moMapSession=new MapSession_RW; //Mbwt instance obj map session $this-moMapSession-setTempDir (getSessionSavePath()); //Mendefinisikan dir temporer yg akn digunk olh obj map session } } $oApp= new SampleApp(); //Membut instance obj SampleApp $oApp-registerSkin('skins/sample'); //mendefinisikan skin utk obj SampleApp $oApp-CWCInitialize($szTemplate, $szMapFile); //MEnginisialisasi obj Lat01 dg file template dan file .map $oApp-CWCExecute(); //Menjalankan app dg memangil fs CWCExecute ? So, what should i do? Thanks a lot for the attention, sorry reply not direct. From: Cristiano Sumariva sumar...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Sent: Tue, August 17, 2010 12:34:39 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Well, you can turn the things by other way. Put at top of HTML file in the ob_start() function to tell PHP to buffer all output. Change your your index_cobachan by adding $html = ob_get_contens(); ob_end_clean(); Now all the content that would be sent to browser is available at $html string variable. After the includes in your index_cobachan print the contents of $html var. Now do your application logic. THen append the rest of HTML file. Another option is to turn your HTML file into a template and add a special mark to signal template engine to replace some content but this would be another aproach. 2010/8/13 elisabeth theresia dbee_ka...@yahoo.com Thanks Mr.Sumariva for the advice but, session_start() in the page already embed in Chameleon framework at its folder in \htdocs\common\session the coding at line 509 (that shown error in the page): //start the session session_start(); register_shutdown_function( session_write_close ); // set IP if a new session if ( $bNewSession ) $_SESSION[gszRemoteAdd] = $_SERVER[REMOTE_ADDR]; /* * Check IP to see if it is the same * = */ // check if the IP has been set and validate if ( isset( $_SESSION[gszRemoteAdd] ) strlen(trim($_SESSION[gszRemoteAdd])) 0 ) { // check if IP matches current client if ( trim( $_SESSION[gszRemoteAdd] ) != trim( $_SERVER[REMOTE_ADDR] ) ) { // possible security breach void session /* if the session address is the loopback interface then it is * likely that the application was configured to use an external * address but someone is trying to test locally using localhost */ if ($_SESSION['gszRemoteAdd'] != '127.0.0.1') { $bSessionOK = false; } } } else { // possible security breach void session $bSessionOK = false; } // return success or failure and set global so we // know session has been inited. if ($bSessionOK) { $GLOBALS['session_started'] = true; } return $bSessionOK; // end intializeSession() function } function getSessionSavePath() { $szReturn = ini_get(session.save_path)./sess_.session_id()./; $szReturn = str_replace( \\, /, $szReturn ); return $szReturn; } Really need advice again Mr. Thanks From: Cristiano Sumariva sumar...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Sent: Sat, August 14, 2010 8:57:29 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? You should break your file in 2 files. Put the session_start function at first and add it to the top of your .phtml file. The second file will contain all remaining code. When using session in pages they have to be sent before any other thing. This is a requirement in HTTP protocol. 2010/8/13 elisabeth theresia dbee_ka...@yahoo.com Hi all, i got message (for preview- i attached the page in attachment-sessionerror2.jpg) : Warning: session_start() [function.session-start]: Cannot
Re: [mapserver-users] how to disappear Warning: session_start() in the page?
sorry Mr. Petermy previous message iamnot purposely enter button Send. i just want to say, Thanks correct me in the coding, but i still got that message again after corrected the coding typo. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at I:\ms4w\apps\appweb\htdocs\index_spatialphtml.phtml:6) in I:\ms4w\apps\appweb\htdocs\common\session\session.php on line 509 Thanks, what should i do? -dbee From: Peter web...@pl.net To: elisabeth theresia dbee_ka...@yahoo.com Cc: mapserver-users@lists.osgeo.org Sent: Thu, August 19, 2010 4:02:59 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Theres a typo. get_contens() should be ob_get_contents(). Peter elisabeth theresia wrote: Hello Mr. Sumariva, i already did wht u said, but there's new error: *error*: Call to undefined function: on_get_contens() in *I:\ms4w\apps\appweb\htdocs\index_cobacham.phtml* on line *2 here i put the cobachanphtml.phtml: *?php $html=on_get_contens(); ob_end_clean(); include(./chameleon.php); $szTemplate=./template_werror.html; $szMapFile=../map/kelur_cobacham.map; class SampleApp extends Chameleon //SampleApp merupakan turunan dari Chameleon { function SampleApp() //Nama fungsi { parent::Chameleon(); //Menjalankan konstruktor class Chameleon $this-moMapSession=new MapSession_RW; //Mbwt instance obj map session $this-moMapSession-setTempDir (getSessionSavePath()); //Mendefinisikan dir temporer yg akn digunk olh obj map session } } ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to disappear Warning: session_start() in the page?
From: elisabeth theresia dbee_ka...@yahoo.com To: mapserv forumlist mapserver-users@lists.osgeo.org Sent: Thu, August 19, 2010 9:04:43 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Thanks Mr. Carlos, But, the session_start() already embedded by Chameleon Framework and also no HTML or PHP code before that. so how to fix it? Thanks -Elisabeth cheers from Indonesia :D too From: Carlos Ruiz boolean10...@yahoo.com To: elisabeth theresia dbee_ka...@yahoo.com; mapserver-users@lists.osgeo.org Sent: Thu, August 19, 2010 3:51:43 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Elisabeth, It's quite as simple as the session handling. You can split your code into many files or keep it in one single file, the only thing you have to know is that PHP's session_start() function call must be the first thing wrote, no HTML or PHP code before that. Cheers from México IC Carlos Ruiz From: elisabeth theresia dbee_ka...@yahoo.com To: mapserver-users@lists.osgeo.org Sent: Wed, August 18, 2010 2:48:58 PM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Hello Mr. Sumariva, i already did wht u said, but there's new error: error: Call to undefined function: on_get_contens() in I:\ms4w\apps\appweb\htdocs\index_cobacham.phtml on line 2 here i put the cobachanphtml.phtml: ?php $html=on_get_contens(); ob_end_clean(); include(./chameleon.php); $szTemplate=./template_werror.html; $szMapFile=../map/kelur_cobacham.map; class SampleApp extends Chameleon //SampleApp merupakan turunan dari Chameleon { ..bla bla coding So, what should i do? Thanks a lot for the attention, sorry reply not direct. From: Cristiano Sumariva sumar...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Sent: Tue, August 17, 2010 12:34:39 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? Well, you can turn the things by other way. Put at top of HTML file in the ob_start() function to tell PHP to buffer all output. Change your your index_cobachan by adding $html = ob_get_contens(); ob_end_clean(); Now all the content that would be sent to browser is available at $html string variable. After the includes in your index_cobachan print the contents of $html var. Now do your application logic. THen append the rest of HTML file. Another option is to turn your HTML file into a template and add a special mark to signal template engine to replace some content but this would be another aproach. 2010/8/13 elisabeth theresia dbee_ka...@yahoo.com Thanks Mr.Sumariva for the advice but, session_start() in the page already embed in Chameleon framework at its folder in \htdocs\common\session the coding at line 509 (that shown error in the page): //start the session session_start(); register_shutdown_function( session_write_close ); // set IP if a new session if ( $bNewSession ) $_SESSION[gszRemoteAdd] = $_SERVER[REMOTE_ADDR]; /* * Check IP to see if it is the same * = */ // check if the IP has been set and validate if ( isset( $_SESSION[gszRemoteAdd] ) strlen(trim($_SESSION[gszRemoteAdd])) 0 ) { // check if IP matches current client if ( trim( $_SESSION[gszRemoteAdd] ) != trim( $_SERVER[REMOTE_ADDR] ) ) { // possible security breach void session /* if the session address is the loopback interface then it is * likely that the application was configured to use an external * address but someone is trying to test locally using localhost */ if ($_SESSION['gszRemoteAdd'] != '127.0.0.1') { $bSessionOK = false; } } } else { // possible security breach void session $bSessionOK = false; } // return success or failure and set global so we // know session has been inited. if ($bSessionOK) { $GLOBALS['session_started'] = true; } return $bSessionOK; // end intializeSession() function } function getSessionSavePath() { $szReturn = ini_get(session.save_path)./sess_.session_id()./; $szReturn = str_replace( \\, /, $szReturn ); return $szReturn; } Really need advice again Mr. Thanks From: Cristiano Sumariva sumar...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Sent: Sat, August 14, 2010 8:57:29 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? You should break your
[mapserver-users] how to disappear Warning: session_start() in the page?
Hi all, i got message (for preview- i attached the page in attachment-sessionerror2.jpg) : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at I:\ms4w\apps\appweb\htdocs\index_spatialphtml.phtml:6) in I:\ms4w\apps\appweb\htdocs\common\session\session.php509 on line i have mapfile and template that already could show in the initialize page named index_cobacham.phtml Then my html + php = index_spatialphtml.phtml i put ?php include (index_cobacham.phtml)? above the syntax html. So, what should i do? Thanks :) here the index_spatialphtml.phtml http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleindex/title style type=text/css !-- body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #66; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #00; background-image: url(./images/Background.gif); } .oneColElsCtr #container { width: 46em; background: #FF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #00; text-align: left; /* this overrides the text-align: center on the body element. */ } .oneColElsCtr #mainContent { padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ } .style1 {color: #FF} a:link { color: #96711D; text-decoration: none; } a:visited { color: #A99559; text-decoration: none; } a:hover { color: #99; text-decoration: underline; } a:active { color: #00; text-decoration: none; } .style2 {color: #00} -- /style/head body class=oneColElsCtr div id=container div id=mainContent table width=713 border=1 tr background=./images/Background.gif th width=709 scope=col align=centerp class=style1PETA SPASIAL PENYEBARAN PENYAKIT DBD/p p class=style1 KOTA SURAKARTA/p/th /tr /table table width=717 border=1 cellpadding=0 cellspacing=0 tr th width=138 scope=coldiv align=centera href=index.htmlBeranda/a/div/th th width=171 scope=coldiv align=centera href=peta.htmlPeta Surakarta/a/div/th th width=127 scope=coldiv align=centera href=berita.htmlBerita/a/div/th th width=147 scope=coldiv align=centera href=tentang.htmlBuku Tamu/a/div/th th width=122 scope=coldiv align=centera href=tentang.html target=_blank class=style2Tentang/a/div/th /tr /table ?php include (./index_cobacham.phtml); ? /body /html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to disappear Warning: session_start() in the page?
this is the attached picture-sessionerror2.jpg attachment: sessionerror2.JPG___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] how to disappear Warning: session_start() in the page?
Thanks Mr.Sumariva for the advice but, session_start() in the page already embed in Chameleon framework at its folder in \htdocs\common\session the coding at line 509 (that shown error in the page): //start the session session_start(); register_shutdown_function( session_write_close ); // set IP if a new session if ( $bNewSession ) $_SESSION[gszRemoteAdd] = $_SERVER[REMOTE_ADDR]; /* * Check IP to see if it is the same * = */ // check if the IP has been set and validate if ( isset( $_SESSION[gszRemoteAdd] ) strlen(trim($_SESSION[gszRemoteAdd])) 0 ) { // check if IP matches current client if ( trim( $_SESSION[gszRemoteAdd] ) != trim( $_SERVER[REMOTE_ADDR] ) ) { // possible security breach void session /* if the session address is the loopback interface then it is * likely that the application was configured to use an external * address but someone is trying to test locally using localhost */ if ($_SESSION['gszRemoteAdd'] != '127.0.0.1') { $bSessionOK = false; } } } else { // possible security breach void session $bSessionOK = false; } // return success or failure and set global so we // know session has been inited. if ($bSessionOK) { $GLOBALS['session_started'] = true; } return $bSessionOK; // end intializeSession() function } function getSessionSavePath() { $szReturn = ini_get(session.save_path)./sess_.session_id()./; $szReturn = str_replace( \\, /, $szReturn ); return $szReturn; } Really need advice again Mr. Thanks From: Cristiano Sumariva sumar...@gmail.com To: elisabeth theresia dbee_ka...@yahoo.com Sent: Sat, August 14, 2010 8:57:29 AM Subject: Re: [mapserver-users] how to disappear Warning: session_start() in the page? You should break your file in 2 files. Put the session_start function at first and add it to the top of your .phtml file. The second file will contain all remaining code. When using session in pages they have to be sent before any other thing. This is a requirement in HTTP protocol. 2010/8/13 elisabeth theresia dbee_ka...@yahoo.com Hi all, i got message (for preview- i attached the page in attachment-sessionerror2.jpg) : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at I:\ms4w\apps\appweb\htdocs\index_spatialphtml.phtml:6) in I:\ms4w\apps\appweb\htdocs\common\session\session.php509 on line i have mapfile and template that already could show in the initialize page named index_cobacham.phtml Then my html + php = index_spatialphtml.phtml i put ?php include (index_cobacham.phtml)? above the syntax html. So, what should i do? Thanks :) here the index_spatialphtml.phtml http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleindex/title style type=text/css !-- body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #66; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #00; background-image: url(./images/Background.gif); } .oneColElsCtr #container { width: 46em; background: #FF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #00; text-align: left; /* this overrides the text-align: center on the body element. */ } .oneColElsCtr #mainContent { padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ } .style1 {color: #FF} a:link { color: #96711D; text-decoration: none; } a:visited { color: #A99559; text-decoration: none; } a:hover { color: #99; text-decoration: underline; } a:active { color: #00; text-decoration: none; } .style2 {color: #00} -- /style/head body class=oneColElsCtr div id=container div id=mainContent table width=713 border=1 tr background=./images/Background.gif th width=709 scope=col align=centerp class=style1PETA SPASIAL PENYEBARAN PENYAKIT DBD/p p class=style1 KOTA SURAKARTA/p/th /tr /table table width=717 border=1 cellpadding=0 cellspacing=0 tr th width=138 scope=coldiv align=centera href
[mapserver-users] What's wrong with Path Relative?
Hi all helpers, it makes me confuse when i used http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.maplayers=allmode=map it appear the map (with absolute path) then, when i change folder (Chameleon framework) and change mapfile withRelative Path and checking : http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.maplayers=allmode=map APPEAR error: msDrawMap(): Image handling error. Failed to draw layer named 'Kecamatan'. msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/Kecamatan) msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/../shp/Kecamatan) Here the STRUCTURE of FOLDER: i: -ms4w -apps -htdocs(Template .html, .phtml) -appweb -map (all map stored here) -shp (all shp stored here) -etc(fonts) MAPFILE: MAP NAME Kecamatan IMAGETYPE PNG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 255 255 SHAPEPATH ../shp#??? Is it TRUE?? FONTSET ../etc/font.dat WEB IMAGEPATH ./temp/ IMAGEURL ./temp/ END #PENDEFINISIAN LAYER LAYER NAME Kecamatan DATA Kecamatan STATUS DEFAULT TYPE POLYGON CLASS NAME Kecamatan STYLE COLOR 179 243 251 OUTLINECOLOR 0 0 0 END #STYLE END #CLASS END # DEFINISI LAYER LAYER NAME Anotasi DATA Kecamatan STATUS ON TYPE annotation # asalnya tipe poligon LABELITEM kecamatan CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER END #MAP Thanks alot Helpers, -dbee ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: What's wrong with Path Relative?
Already solved. just add sign '/' in the end of CWC2 CWC2 TYPE=MapDHTML VISIBLE=true WIDTH=384 HEIGHT=204 ALLOWRESIZE=true MARQUEECOLOR=#FF MARQUEEWIDTH=2 MINSCALE=1/ Thanks God Cs, All :D From: elisabeth theresia dbee_ka...@yahoo.com To: mapserver-users@lists.osgeo.org Sent: Fri, August 13, 2010 2:39:31 AM Subject: What's wrong with Path Relative? Hi all helpers, it makes me confuse when i used http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.maplayers=allmode=map it appear the map (with absolute path) then, when i change folder (Chameleon framework) and change mapfile withRelative Path and checking : http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.maplayers=allmode=map APPEAR error: msDrawMap(): Image handling error. Failed to draw layer named 'Kecamatan'. msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/Kecamatan) msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/../shp/Kecamatan) Here the STRUCTURE of FOLDER: i: -ms4w -apps -htdocs(Template .html, .phtml) -appweb -map (all map stored here) -shp (all shp stored here) -etc(fonts) MAPFILE: MAP NAME Kecamatan IMAGETYPE PNG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 255 255 SHAPEPATH ../shp#??? Is it TRUE?? FONTSET ../etc/font.dat WEB IMAGEPATH ./temp/ IMAGEURL ./temp/ END #PENDEFINISIAN LAYER LAYER NAME Kecamatan DATA Kecamatan STATUS DEFAULT TYPE POLYGON CLASS NAME Kecamatan STYLE COLOR 179 243 251 OUTLINECOLOR 0 0 0 END #STYLE END #CLASS END # DEFINISI LAYER LAYER NAME Anotasi DATA Kecamatan STATUS ON TYPE annotation # asalnya tipe poligon LABELITEM kecamatan CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER END #MAP Thanks alot Helpers, -dbee ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver-chameleon framework, warning?
Hi all, i want to used chameleon framework for webgis, then Chameleon already installed with checking in localhost MS4W-MapServer 4 Windows: bla... bla... ; ; Application Chameleon 2.4 URL: Chameleon Administration. Chameleon Documentation. Chameleon HelpViewer. Chameleon Sample Applications. CWC2 Service Instance.(But that makes me confuse that when i clicked them above, just warning in browser: Forbidden You don't have permission to access /chameleon/admin/ on this server.) but, i still try, write down mapfile then initialize.phtml with cwc2.css, then i got warning like this : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at I:\ms4w\Apache\htdocs\appweb\index.phtml:4) in i:\ms4w\Apache\htdocs\chameleon\htdocs\common\session\session.phpon line 509 Notice : Undefined variable: szMapFile in I:\ms4w\Apache\htdocs\appweb\index.phtmlon line 21 anyone can help me or explain what happened? here the mapfile: MAP NAME kelurahan IMAGETYPE JPEG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS KILOMETERS SIZE 600 500 IMAGECOLOR 366 366 366 FONTSET i:\Spatial\font\font.dat #SHAPEPATHi:/ms4w/Apache/htdocs/appweb/shp/ WEB TEMPLATE i:\ms4w\Apache\htdocs\script\tmpl_cham.html IMAGEPATH i:\ms4w\Apache\htdocs\temp\ IMAGEURL http://localhost/temp/; END #mulai pendefinisian layers LAYER NAME tbk_bjsr_gender STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION user=x password=x dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel MINSCALE 10 CLASS NAME Jum laki2 EXPRESSION ([ljum_bj]=1874) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME jum perempuan EXPRESSION([pjum_bj]=2240) STYLE COLOR 255 155 150 OUTLINECOLOR 19 19 19 WIDTH 2 ANTIALIAS TRUE END#STYLE END#CLASS END #LAYER LAYER NAME tbk_jeb_gender STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION user=x password=x dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_jeb_gender USING UNIQUE kode_kel MINSCALE 10 CLASS NAME ljum_jeb EXPRESSION ([ljum_jeb]=3941) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME pjum_jeb EXPRESSION([pjum_jeb]=6292) STYLE COLOR 255 155 150 OUTLINECOLOR 19 19 19 WIDTH 2 ANTIALIAS TRUE END#STYLE END#CLASS END #LAYER SCALEBAR STATUS ON #dg template LABEL SIZE Medium COLOR 0 0 0 OUTLINECOLOR 255 255 255 END# LABEL STYLE 1 INTERVALS 3 SIZE 200 5 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS KILOMETERS POSITION LR TRANSPARENT TRUE END # SCALEBAR LEGEND # BLOK LEGENDA IMAGECOLOR 255 255 204 # kuning Muda KEYSIZE 18 9 KEYSPACING 3 5 POSTLABELCACHE TRUE STATUS ON # template TRANSPARENT OFF LABEL # LABEL LEGENDA TYPE TRUETYPE FONT ARIAL COLOR 0 0 0 SIZE 6 ANTIALIAS TRUE END #LABEL TEMPLATE i:\ms4w\Apache\htdocs\dbee_html\legenda.html END # AKHIR BLOK LEGENDA END #map here the template: HTML HEAD TITLEMembuat Widget Chameleon/TITLE link href=I:/ms4w/Apache/htdocs/script/cwc2.css rel=stylesheet type=text/css /HEAD body onLoad=CWC2OnLoadFunction() form table border=0 cellpadding=2 cellspacing=0 tr td colspan=3 align=center CWC2 TYPE=MapDHTML VISIBLE=true WIDTH=400 HEIGHT=300 ALLOWRESIZE=true MARQUEECOLOR=#FF MARQUEWIDTH=2 MINSCALE=1 /td /tr /table /form /body /HTML Here the initialize.phtml: HTML HEADTITLEMembuat WIDGET Chameleon/TITLE BODY ?php include(i:/ms4w/Apache/htdocs/chameleon/htdocs/chameleon.php); $szTemplate=i:/ms4w/Apache/htdocs/dbee_html/tmpl_cham.html; $szMapfile=i:/Spatial/mapfile/kelur_cham.map; class SampleApp extends Chameleon { function SampleApp() { parent::Chameleon(); $this-moMapSession=new MapSession_RW; $this-moMapSession-setTempDir (getSessionSavePath()); } } $oApp= new SampleApp(); $oApp-registerSkin('skins/sample'); $oApp-CWCInitialize($szTemplate, $szMapFile); $oApp-CWCExecute(); ? /BODY /HTML ___ mapserver-users mailing list
[mapserver-users] Mapfile from Postgis, just Background No Map?
Good day all, i want to ask, i have file shp that already convert to Postgis, then i want to appear it in mapfile named:map_postgis.map then check in: http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.mapmode=map, but that i found just background no Map. why? shp: kec_kasus_DBD db in postgis: db_SpatialSura table: tb_kasusdbd mapfile: map_postgis for checking: i want to see column 'kecamatan' here my mapfile: MAP NAME kec_kasus_DBD IMAGETYPE JPEG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 241 215 SHAPEPATH i:\Spatial\shp_kec FONTSET i:\Spatial\font\font.dat UNITS KILOMETERS #DATA LAYER NAME tb_kasusdbd STATUS ON TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION user=dbee dbname=dbSpatialSura host=localhost port=5432 password=xx DATA the_geom FROM tb_kasusdbd USING UNIQUE code_kec MINSCALE 10 #FILTER type= 'jumdbd_08' CLASS NAME kecamatan STYLE COLOR 255 22 22 OUTLINECOLOR 67 70 31 WIDTH 2 ANTIALIAS TRUE END#style END#class END#layer END#map Thanks :) map_postgis.map Description: Binary data ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users