Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy
Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy  wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Richard Greenwood
What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy 
wrote:

> Hi,
>
> my info.php states that I have installed Mapserver, version 6.4.1 but no
> date and version are declared
> for php_mapscript.
> On this ubuntu server I recently switched the php mode in apache, from
> normal mod-php5 to mod-fpm.
> Apache rightly interprets the php pages, whilst mapserver (and pmapper)
> have problems.
> The mapserver seems to work fine, the URL
> http://my_server_name/cgi-bin/mapserv?
> gives me the classical string:
> No query information to decode. QUERY_STRING is set, but empty.
> However launching the pmapper application by url:
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
> I got an almost empty page (only line on the top) and php code in the
> browser tab title.
>
> Can you give me hints?
>
> Eugenio
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Richard Greenwood
Well you need to rename map.phtml to map.php. I think that your problem is
that the ".phtml" is not registered with your php handler. So if you don't
want to rename map.phtml you need to modify your Apache config.


On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy 
wrote:

> Hi,
>
> following your suggestion I tried:
> 
> http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
>
> I got page error: NOT FOUND
> The request url /wm_goth/map.php was not found on this server.
>
> It does help?
>
> E.
>
> --
> Date: Tue, 23 Feb 2016 08:27:18 -0700
> Subject: Re: [mapserver-users] mapscript version and date
> From: richard.greenw...@gmail.com
> To: frippe12...@hotmail.com
> CC: mapserver-users@lists.osgeo.org
>
>
> What happens if you change the extension from phtml to php, e.g. map.php
>
>
> On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy 
> wrote:
>
> Hi,
>
> my info.php states that I have installed Mapserver, version 6.4.1 but no
> date and version are declared
> for php_mapscript.
> On this ubuntu server I recently switched the php mode in apache, from
> normal mod-php5 to mod-fpm.
> Apache rightly interprets the php pages, whilst mapserver (and pmapper)
> have problems.
> The mapserver seems to work fine, the URL
> http://my_server_name/cgi-bin/mapserv?
> gives me the classical string:
> No query information to decode. QUERY_STRING is set, but empty.
> However launching the pmapper application by url:
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
> I got an almost empty page (only line on the top) and php code in the
> browser tab title.
>
> Can you give me hints?
>
> Eugenio
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy

Hi,

you are completely right. I just renamed map.phtml in map.php and the 
application seems to run fine.
Actually I would prefer to register .phtml in my php handler in apache, but 
since I changed the php module (php-fpm) 
I don't know where I should insert the handler.

E.

Date: Tue, 23 Feb 2016 08:48:02 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your problem is that 
the ".phtml" is not registered with your php handler. So if you don't want to 
rename map.phtml you need to modify your Apache config.


On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy  wrote:



Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy  wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Antti J. Lind

Hi,

Somewhere after other AddHandlers in file /etc/httpd/conf/httpd.conf.

Maybe something like this:
AddHandler php5-script .phtml

--
AJL

Eugenio Trumpy kirjoitti 2016-02-23 17:56:

Hi,

you are completely right. I just renamed map.phtml in map.php and the
application seems to run fine.
Actually I would prefer to register .phtml in my php handler in
apache, but since I changed the php module (php-fpm)
I don't know where I should insert the handler.

E.

-
Date: Tue, 23 Feb 2016 08:48:02 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your
problem is that the ".phtml" is not registered with your php handler.
So if you don't want to rename map.phtml you need to modify your
Apache config.

On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy
 wrote:


Hi,

following your suggestion I tried:


[2]http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=

[4]

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

-
Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g.
map.php

On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy
 wrote:


Hi,

my info.php states that I have installed Mapserver, version 6.4.1
but no date and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache,
from normal mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and
pmapper) have problems.
The mapserver seems to work fine, the URL
http://my_server_name/cgi-bin/mapserv? [1]
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty.
However launching the pmapper application by url:




http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=

[2]
I got an almost empty page (only line on the top) and php code in
the browser tab title.

Can you give me hints?

Eugenio

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


--

Richard W. Greenwood, PLS
www.greenwoodmap.com [5]


--

Richard W. Greenwood, PLS
www.greenwoodmap.com [5]

Links:
--
[1] http://my_server_name/cgi-bin/mapserv?
[2]
http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
[3] http://lists.osgeo.org/mailman/listinfo/mapserver-users
[4]
http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
[5] http://www.greenwoodmap.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] mapscript version and date

2016-02-23 Thread Richard Greenwood
You need to add something like this to you apache2.conf or in an .htaccess
file
   AddHandler application/x-httpd-php .php .phtml
But you might Google a little and find the Ubuntu way of doing it. The
.phtml extension got un-registered when you switched to php-fpm.

Rich


On Tue, Feb 23, 2016 at 8:56 AM, Eugenio Trumpy 
wrote:

>
> Hi,
>
> you are completely right. I just renamed map.phtml in map.php and the
> application seems to run fine.
> Actually I would prefer to register .phtml in my php handler in apache,
> but since I changed the php module (php-fpm)
> I don't know where I should insert the handler.
>
> E.
>
> --
> Date: Tue, 23 Feb 2016 08:48:02 -0700
>
> Subject: Re: [mapserver-users] mapscript version and date
> From: richard.greenw...@gmail.com
> To: frippe12...@hotmail.com
> CC: mapserver-users@lists.osgeo.org
>
> Well you need to rename map.phtml to map.php. I think that your problem is
> that the ".phtml" is not registered with your php handler. So if you don't
> want to rename map.phtml you need to modify your Apache config.
>
>
> On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy 
> wrote:
>
> Hi,
>
> following your suggestion I tried:
> 
> http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
>
> I got page error: NOT FOUND
> The request url /wm_goth/map.php was not found on this server.
>
> It does help?
>
> E.
>
> --
> Date: Tue, 23 Feb 2016 08:27:18 -0700
> Subject: Re: [mapserver-users] mapscript version and date
> From: richard.greenw...@gmail.com
> To: frippe12...@hotmail.com
> CC: mapserver-users@lists.osgeo.org
>
>
> What happens if you change the extension from phtml to php, e.g. map.php
>
>
> On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy 
> wrote:
>
> Hi,
>
> my info.php states that I have installed Mapserver, version 6.4.1 but no
> date and version are declared
> for php_mapscript.
> On this ubuntu server I recently switched the php mode in apache, from
> normal mod-php5 to mod-fpm.
> Apache rightly interprets the php pages, whilst mapserver (and pmapper)
> have problems.
> The mapserver seems to work fine, the URL
> http://my_server_name/cgi-bin/mapserv?
> gives me the classical string:
> No query information to decode. QUERY_STRING is set, but empty.
> However launching the pmapper application by url:
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
> I got an almost empty page (only line on the top) and php code in the
> browser tab title.
>
> Can you give me hints?
>
> Eugenio
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy
Hi,

find a clear guide on how to set AddHandler ... is my problem, I found many 
guides but
anyone clear.
In my apache2.conf there are no lines on AddHandler, I wonder if I have to 
insert it on my default virtualhost or wherever.

Any other helps?
Thanks for now

E.

Date: Tue, 23 Feb 2016 09:35:12 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

You need to add something like this to you apache2.conf or in an .htaccess file
   AddHandler application/x-httpd-php .php .phtml
But you might Google a little and find the Ubuntu way of doing it. The .phtml 
extension got un-registered when you switched to php-fpm.

Rich


On Tue, Feb 23, 2016 at 8:56 AM, Eugenio Trumpy  wrote:




Hi,

you are completely right. I just renamed map.phtml in map.php and the 
application seems to run fine.
Actually I would prefer to register .phtml in my php handler in apache, but 
since I changed the php module (php-fpm) 
I don't know where I should insert the handler.

E.

Date: Tue, 23 Feb 2016 08:48:02 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your problem is that 
the ".phtml" is not registered with your php handler. So if you don't want to 
rename map.phtml you need to modify your Apache config.


On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy  wrote:



Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy  wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Antti J. Lind

Hi,

I think it's on systemlevel as ex. LogFormat

--
AJL

Eugenio Trumpy kirjoitti 2016-02-23 19:17:

Hi,

find a clear guide on how to set AddHandler ... is my problem, I found
many guides but
anyone clear.
In my apache2.conf there are no lines on AddHandler, I wonder if I
have to insert it on my default virtualhost or wherever.

Any other helps?
Thanks for now

E.

-
Date: Tue, 23 Feb 2016 09:35:12 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

You need to add something like this to you apache2.conf or in an
.htaccess file
 AddHandler application/x-httpd-php .php .phtml
But you might Google a little and find the Ubuntu way of doing it. The
.phtml extension got un-registered when you switched to php-fpm.

Rich

On Tue, Feb 23, 2016 at 8:56 AM, Eugenio Trumpy
 wrote:


Hi,

you are completely right. I just renamed map.phtml in map.php and
the application seems to run fine.
Actually I would prefer to register .phtml in my php handler in
apache, but since I changed the php module (php-fpm)
I don't know where I should insert the handler.

E.

-
Date: Tue, 23 Feb 2016 08:48:02 -0700

Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your
problem is that the ".phtml" is not registered with your php
handler. So if you don't want to rename map.phtml you need to modify
your Apache config.

On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy
 wrote:

Hi,

following your suggestion I tried:


[1]http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=

[2]

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

-
Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g.
map.php

On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy
 wrote:

Hi,

my info.php states that I have installed Mapserver, version 6.4.1
but no date and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache,
from normal mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and
pmapper) have problems.
The mapserver seems to work fine, the URL
http://my_server_name/cgi-bin/mapserv? [3]
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty.
However launching the pmapper application by url:


http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=

[1]
I got an almost empty page (only line on the top) and php code in
the browser tab title.

Can you give me hints?

Eugenio

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

--

Richard W. Greenwood, PLS
www.greenwoodmap.com [5]


--

Richard W. Greenwood, PLS
www.greenwoodmap.com [5]

--

Richard W. Greenwood, PLS
www.greenwoodmap.com [5]

Links:
--
[1]
http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
[2]
http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
[3] http://my_server_name/cgi-bin/mapserv?
[4] http://lists.osgeo.org/mailman/listinfo/mapserver-users
[5] http://www.greenwoodmap.com

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

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Jeff McKenna

On 2016-02-23 1:17 PM, Eugenio Trumpy wrote:

Hi,

find a clear guide on how to set AddHandler ... is my problem, I found
many guides but
anyone clear.
In my apache2.conf there are no lines on AddHandler, I wonder if I have
to insert it on my default virtualhost or wherever.

Any other helps?
Thanks for now

E.



Hi Eugenio,

You could check the definitions in MS4W's Apache, which is Apache 2.4.18 
with PHP mapscript ready to go.  Extract the zip archive from 
http://ms4w.com and see the definitions in /ms4w/Apache/conf/httpd.conf 
 It seems to work well for about 5,000 users / month :)


-jeff




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



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

[mapserver-users] Label not Displaying at Edge of Map Extent

2016-02-23 Thread Michele Toma
Hi everyone,

I am having an issue with getting a label to display when it is near the edge 
of the map extent. From what I have seen, when I attach the style for the icon 
to the label object, the label does not display. However, if I remove the style 
for the icon from the label object, it does display. Is this an issue with 
MapServer 7 or the settings that I have used?

Version Information:
[root@Map18-03 cgi-bin]# ./mapserv -v
MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Below is the map file to reproduce the issue. Please note that there are two 
layers - one without the icon style attached, and one with the icon style 
attached. The layer without the icon style attached has been turned on while 
the other is off.

==

MAP

  EXTENT -87.919802 0.00 72.177555 90.00
  SIZE 1280 720
  IMAGECOLOR 140 140 140

  SYMBOL
NAME 'Airport'
TYPE ELLIPSE
POINTS 1 1 END
FILLED true
  END

  LAYER
NAME "Label does display (no icon)"
TYPE POINT
FEATURE
POINTS
  -87.9 41.98
END
END
PROJECTION
  "proj=latlong"
  "ellps=WGS84"
END # PROJECTION
STATUS DEFAULT
CLASS
  TEXT 'Label'
  LABEL
TYPE BITMAP
SIZE 20
COLOR 255 255 255
PARTIALS FALSE
POSITION AUTO
PRIORITY 10
  END # LABEL
END # CLASS
  END # LAYER


  LAYER
NAME "Label does not display (with icon)"
TYPE POINT
FEATURE
POINTS
  -87.9 41.98
END
END
PROJECTION
  "proj=latlong"
  "ellps=WGS84"
END # PROJECTION
STATUS OFF
CLASS
  TEXT 'Label'
  LABEL
TYPE BITMAP
SIZE 20
COLOR 255 255 255
PARTIALS FALSE
POSITION AUTO
PRIORITY 10
STYLE
  SYMBOL "Airport"
  COLOR 0 255 0
  OUTLINECOLOR 0 0 0
  SIZE 20
END # STYLE
  END # LABEL
END # CLASS
  END # LAYER

END

Thank you,

Michele Toma
michele.t...@airborne.aero
www.airborne.aero

[New Small2]

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

Re: [mapserver-users] Rectangle and Line

2016-02-23 Thread Antti J. Lind

Hello,

Just a small changes and I got it working. Now I can draw rectangles, 
maybe better way to do, but this seems also work.


map-file:
LAYER
  NAME "boxes"
  STATUS OFF
  TYPE LINE
  CLASS
STYLE
  COLOR 255 0 127
END
  END
END

php-file:
$featlayer = $map->getLayerByName("boxes");
$drawing = ms_newShapeObj(MS_SHAPE_LINE);
$lineObject = ms_newLineObj();

$a = $_point['0'];
$b = $_point['1'];
$c = $_point['2'];
$d = $_point['3'];
$lineObject->addXY($b,$a);
$lineObject->addXY($b,$c);
$lineObject->addXY($d,$c);
$lineObject->addXY($d,$a);
$lineObject->addXY($b,$a);

$drawing->add($lineObject);
$featlayer->addFeature($drawing);
$featlayer->set("status", 1);

--
AJL

Hi,

Same as before, but now without points - totally blank map.

--
AJL

Lime, Steve D (MNIT) kirjoitti 2016-02-18 00:44:
What happens if you ditch the SYMBOL and SIZE from the style 
definition?


-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org]
On Behalf Of Antti J. Lind
Sent: Wednesday, February 17, 2016 11:59 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rectangle and Line

Hi,

I try to add rectangle and line on map, but there has not been any
success. I just can add points on map.

My Mapfile's layer show like this:
LAYER
NAME "boxes"
STATUS OFF
TYPE POINT
CLASS
STYLE
   SYMBOL "circle"
SIZE 5
COLOR 0 255 0
   OUTLINECOLOR 0 0 0
 END
END
END

And I can add points to map with php mapscript as:

$featlayer = $map->getLayerByName("boxes");
$drawing = ms_newShapeObj(MS_SHAPE_POLYGON);
$lineObject = ms_newLineObj();
$a = $_point['0'];
$b = $_point['1'];
$c = $_point['2'];
$d = $_point['3'];
$lineObject->addXY($b, $a);
$lineObject->addXY($d, $c);
$drawing->add($lineObject);
$featlayer->addFeature($drawing);
$featlayer->set("status", 1);

If I change TYPE to LINE, just poists disappear.

Mapserver show points on map ok. But how to draw a line between points
or rectangle , with same limits?

--
Antti J. Lind

___
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