Re: [mapserver-users] how to change path httpd.d at ms4w for win 7

2010-12-01 Thread elisabeth theresia
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 
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/"
>
>
>AllowOverride None
>Options Indexes FollowSymLinks Multiviews
>Order allow,deny
>Allow from all
>
>
>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


[mapserver-users] how to change path httpd.d at ms4w for win 7

2010-12-01 Thread elisabeth theresia
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/"


AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all


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] MapServer Windows7 EasyPHP setup

2010-10-26 Thread elisabeth theresia



>
> That's sounds good Mr Greg,
> now i say thanks for you, someday i will try MS4W in Win 7.
> :D
>
> -Theresia
>

>and feel free to send your feedback and questions to the MS4W email list 
>(subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users).

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



of course Mr. Jeff,

if i got troubles i always ask in this forum and i always get answers too,
Really good peoples in here. Thanks all.

-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] MapServer Windows7 EasyPHP setup

2010-10-25 Thread elisabeth theresia


>Thanks for your suggestion.
I have installed MS4W on Win7 (64-bit) and found that it works fine. I had 
another problem with MySQL, that was fixed by editing the file 
C:\Windows\System32\drivers\etc\hosts to:

127.0.0.1   localhost

So MS4W does work on Win7 (64-bit)!
-

That's sounds good Mr Greg,
now i say thanks for you, someday i will try MS4W in Win 7.
 :D

-Theresia



  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer Windows7 EasyPHP setup

2010-10-25 Thread elisabeth theresia




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?

2010-10-07 Thread elisabeth theresia
Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your 
kindness 
:)

best regards,

-Theresia






From: "Lime, Steve D (DNR)" 
To: elisabeth theresia ; mapserv forumlist 

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 
To: elisabeth theresia 
Cc: mapserv forumlist 
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 
mailto: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<mailto: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<mailto:msch...@web

Re: [mapserver-users] How to display Labels from 1 table?

2010-10-06 Thread elisabeth theresia
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 
To: elisabeth theresia 
Cc: mapserv forumlist 
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 :
> 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] How to display Labels from 1 table?

2010-10-06 Thread elisabeth theresia
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


[mapserver-users] Graph only bar and pie without values?

2010-08-29 Thread elisabeth theresia
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?

2010-08-27 Thread elisabeth theresia
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 
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


Re: [mapserver-users] Re: How to appear Graph?

2010-08-27 Thread elisabeth theresia
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 
To: elisabeth theresia 
Cc: mapserv forumlist 
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"  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 
>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


[mapserver-users] Re: How to appear Graph?

2010-08-26 Thread elisabeth theresia


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 
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


[mapserver-users] How to appear Graph?

2010-08-25 Thread elisabeth theresia
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] Re: [mapserver user]how to set LegendTemplate display color same like class in the mapfile?

2010-08-25 Thread elisabeth theresia
pic of :my_strangelegend.jpeg



  <>___
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?

2010-08-25 Thread elisabeth theresia
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: 


x



//css

//code HTML...~bla...bla.bla~











 
 
 

   


 
  
 Zoom In
 
 

Pan/Recenter


 
  Pan/Drag
 
 
   
  Zoom Out
  
  
  
  
  Full Extent





 
  
  Query
  
 
 
   
   
   
   
   
  



Thanks all for your help. 

-dbee



  ___
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?

2010-08-24 Thread elisabeth theresia
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)

 





~~~coding CWC2 ELSE bla...bla~~
~~~coding CWC2 ELSE bla...bla~~  

 
 
 


~~~coding CWC2 ELSE bla...bla~~




legend_template.html

[leg_layer_html order=ascending opt_flag=15]

  
  
  


[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?

2010-08-18 Thread elisabeth theresia
From: elisabeth theresia 

To: mapserv forumlist 
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 
To: elisabeth theresia ; 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 
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: 

To: elisabeth theresia 
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 

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 
>To: elisabeth theresia 
>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.
>
>T

Re: [mapserver-users] how to disappear Warning: session_start() in the page?

2010-08-18 Thread elisabeth theresia
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 
To: elisabeth theresia 
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:
> * $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?

2010-08-18 Thread elisabeth theresia
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: 
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 
To: elisabeth theresia 
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 

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 
>To: elisabeth theresia 
>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 
>
>Hi all, i got message (for preview- i attached the page in 
>attachment-sessionerror2.jpg)

Re: [mapserver-users] how to disappear Warning: session_start() in the page?

2010-08-13 Thread elisabeth theresia
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 
To: elisabeth theresia 
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 

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  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";>
>
>
>
>index
>
><!--
>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}
>-->
>
>
>
>
>
>  
>
>  
>PETA  
>SPASIAL PENYEBARAN PENYAKIT DBD
> 

Re: [mapserver-users] how to disappear Warning: session_start() in the page?

2010-08-13 Thread elisabeth theresia


this is the attached picture-sessionerror2.jpg


  <>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] how to disappear Warning: session_start() in the page?

2010-08-13 Thread elisabeth theresia
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  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";>



index







  

  
PETA  
SPASIAL PENYEBARAN PENYAKIT DBD
 KOTA SURAKARTA
  


  
Beranda
Peta 
Surakarta
Berita
Buku Tamu
Tentang
  









  ___
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?

2010-08-12 Thread elisabeth theresia
Already solved. just add sign '/' in the end of CWC2



Thanks God Cs, All :D




____
From: elisabeth theresia 
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.map&layers=all&mode=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.map&layers=all&mode=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] What's wrong with Path Relative?

2010-08-12 Thread elisabeth theresia
Hi all helpers, 
it makes me confuse when i used 
http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.map&layers=all&mode=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.map&layers=all&mode=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?

2010-08-07 Thread elisabeth theresia
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"
#SHAPEPATH"i:/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: 


Membuat Widget Chameleon








   
   
   
   

  



Here the initialize.phtml:

Membuat WIDGET Chameleon

moMapSession=new MapSession_RW;
$this->moMapSession->setTempDir
(getSessionSavePath());
}
}

$oApp= new SampleApp();
$oApp->registerSkin('skins/sample');
$oApp->CWCInitialize($szTemplate, $szMapFile);
$oApp->CWCExecute();

?>





  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapfile from Postgis, just Background No Map?

2010-08-03 Thread elisabeth theresia
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.map&mode=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