Re: [mapserver-users] How add a point remotelly

2018-01-22 Thread Andrea Peri
Hi Steve,

I don't knew this feature .

It work and also it is possible to add also the PROJECTION tag.

Really thx for this help.

A.


2018-01-22 17:13 GMT+01:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:

> There are certain pieces of a mapfile that can be set via URL. Typically
> only values doing type validation in the parser. Anything else would
> require validation and some things are simply not mutable (which is where
> substitution comes in). This approach doesn't use substitution - you're
> actually passing a bit mapfile syntax. Something like this would work:
>
>
>   http://localhost/cgi-bin/mapserv?map=...['
> mypoint']=FEATURE+POINTS+100+100+END+END
>
>
> The variable name identifies the object being tweaked. The value is
> straight mapfile syntax. I'll have to look around a bit and see if I have
> any live examples on our site.
>
>
> --Steve
> --
> *From:* mapserver-users <mapserver-users-boun...@lists.osgeo.org> on
> behalf of Yves Jacolin <yves.jaco...@camptocamp.com>
> *Sent:* Monday, January 22, 2018 3:01:51 AM
> *To:* Andrea Peri
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] How add a point remotelly
>
> Hello Andrea,
>
> You can't, only few parameters can be used for such ontime subsitution,
> see the section: http://mapserver.org/cgi/runsub.html#parameters-supported
>
> Regards,
>
> Y.
>
> 2018-01-21 11:41 GMT+01:00 Andrea Peri <aperi2...@gmail.com>:
>
> Hi Jukka,
>
> Your is a good idea.
> I try it ,
>
> The fragment I try is this:
>
> TYPE POINT
> PROJECTION
>   "+init=epsg:3003"
> END
> EXTENT 153 4665000 180 495
> VALIDATION
>   'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
>   'default_coordinates' '165 480'
> END
> FEATURE
>   POINTS
> %coordinates%   <-- line 593 of my mapfile.
>   END
> END
>
>
> But unfortunally the mapserver report always the error.
>
> [Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier.
> Parsing error near (%):(line 593)
>
>
>
>
> 2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) <
> jukka.rahko...@maanmittauslaitos.fi>:
>
> I would try first with one variable %coordinates% for avoiding possible
> problem because of subsequent % signs.
>
> -Jukka Rahkonen-
> --
> Lähettäjä: Andrea Peri <aperi2...@gmail.com>
> Lähetetty: ‎21.‎1.‎2018 11:58
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How add a point remotelly
>
> Hi,
> Is possible to use the runtime-substitution to add a point into a map
> layer ?
>
> I try this, but it do error.
>
> FEATURE
>   POINTS
> %coord_est% %coord_north%
>
> The log report me: "unknow % char"
>
> Many thx.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Training and support manager
> Camptocamp France SAS
> Bâtiment le Dauphin - 1er étage
> 18 rue du Lac Saint André
> <https://maps.google.com/?q=18+rue+du+Lac+Saint+Andr%C3%A9=gmail=g>
> 73382 Le Bourget-du Lac
>
> Tel (France) : +33 4 58 48 20 43 <+33%204%2058%2048%2020%2043>
> Tel (Switzerland) : +41 21 619 10 43 <+41%2021%20619%2010%2043>
> Mob. : +33 6 18 75 42 21 <+33%206%2018%2075%2042%2021>
>
> email : yves.jaco...@camptocamp.com
> http://www.camptocamp.com
>



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How add a point remotelly

2018-01-22 Thread Lime, Steve D (MNIT)
There are certain pieces of a mapfile that can be set via URL. Typically only 
values doing type validation in the parser. Anything else would require 
validation and some things are simply not mutable (which is where substitution 
comes in). This approach doesn't use substitution - you're actually passing a 
bit mapfile syntax. Something like this would work:


  
http://localhost/cgi-bin/mapserv?map=...['mypoint']=FEATURE+POINTS+100+100+END+END


The variable name identifies the object being tweaked. The value is straight 
mapfile syntax. I'll have to look around a bit and see if I have any live 
examples on our site.


--Steve


From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of 
Yves Jacolin <yves.jaco...@camptocamp.com>
Sent: Monday, January 22, 2018 3:01:51 AM
To: Andrea Peri
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How add a point remotelly

Hello Andrea,

You can't, only few parameters can be used for such ontime subsitution, see the 
section: http://mapserver.org/cgi/runsub.html#parameters-supported

Regards,

Y.

2018-01-21 11:41 GMT+01:00 Andrea Peri 
<aperi2...@gmail.com<mailto:aperi2...@gmail.com>>:
Hi Jukka,

Your is a good idea.
I try it ,

The fragment I try is this:

TYPE POINT
PROJECTION
  "+init=epsg:3003"
END
EXTENT 153 4665000 180 495
VALIDATION
  'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
  'default_coordinates' '165 480'
END
FEATURE
  POINTS
%coordinates%   <-- line 593 of my mapfile.
  END
END


But unfortunally the mapserver report always the error.

[Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier. Parsing 
error near (%):(line 593)




2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>:
I would try first with one variable %coordinates% for avoiding possible problem 
because of subsequent % signs.

-Jukka Rahkonen-

Lähettäjä: Andrea Peri<mailto:aperi2...@gmail.com>
Lähetetty: ‎21.‎1.‎2018 11:58
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: [mapserver-users] How add a point remotelly

Hi,
Is possible to use the runtime-substitution to add a point into a map layer ?

I try this, but it do error.

FEATURE
  POINTS
%coord_est% %coord_north%

The log report me: "unknow % char"

Many thx.

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-



--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-

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



--
Training and support manager
Camptocamp France SAS
Bâtiment le Dauphin - 1er étage
18 rue du Lac Saint André
73382 Le Bourget-du Lac

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com<mailto:yves.jaco...@camptocamp.com>
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How add a point remotelly

2018-01-22 Thread Yves Jacolin
Hello Andrea,

You can't, only few parameters can be used for such ontime subsitution, see
the section: http://mapserver.org/cgi/runsub.html#parameters-supported

Regards,

Y.

2018-01-21 11:41 GMT+01:00 Andrea Peri <aperi2...@gmail.com>:

> Hi Jukka,
>
> Your is a good idea.
> I try it ,
>
> The fragment I try is this:
>
> TYPE POINT
> PROJECTION
>   "+init=epsg:3003"
> END
> EXTENT 153 4665000 180 495
> VALIDATION
>   'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
>   'default_coordinates' '165 480'
> END
> FEATURE
>   POINTS
> %coordinates%   <-- line 593 of my mapfile.
>   END
> END
>
>
> But unfortunally the mapserver report always the error.
>
> [Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier.
> Parsing error near (%):(line 593)
>
>
>
>
> 2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) <jukka.rahkonen@
> maanmittauslaitos.fi>:
>
>> I would try first with one variable %coordinates% for avoiding possible
>> problem because of subsequent % signs.
>>
>> -Jukka Rahkonen-
>> ----------
>> Lähettäjä: Andrea Peri <aperi2...@gmail.com>
>> Lähetetty: ‎21.‎1.‎2018 11:58
>> Vastaanottaja: mapserver-users@lists.osgeo.org
>> Aihe: [mapserver-users] How add a point remotelly
>>
>> Hi,
>> Is possible to use the runtime-substitution to add a point into a map
>> layer ?
>>
>> I try this, but it do error.
>>
>> FEATURE
>>   POINTS
>> %coord_est% %coord_north%
>>
>> The log report me: "unknow % char"
>>
>> Many thx.
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Training and support manager
Camptocamp France SAS
Bâtiment le Dauphin - 1er étage
18 rue du Lac Saint André
73382 Le Bourget-du Lac

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How add a point remotelly

2018-01-21 Thread Andrea Peri
Hi Jukka,

Your is a good idea.
I try it ,

The fragment I try is this:

TYPE POINT
PROJECTION
  "+init=epsg:3003"
END
EXTENT 153 4665000 180 495
VALIDATION
  'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
  'default_coordinates' '165 480'
END
FEATURE
  POINTS
%coordinates%   <-- line 593 of my mapfile.
  END
END


But unfortunally the mapserver report always the error.

[Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier.
Parsing error near (%):(line 593)




2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> I would try first with one variable %coordinates% for avoiding possible
> problem because of subsequent % signs.
>
> -Jukka Rahkonen-
> --
> Lähettäjä: Andrea Peri <aperi2...@gmail.com>
> Lähetetty: ‎21.‎1.‎2018 11:58
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How add a point remotelly
>
> Hi,
> Is possible to use the runtime-substitution to add a point into a map
> layer ?
>
> I try this, but it do error.
>
> FEATURE
>   POINTS
> %coord_est% %coord_north%
>
> The log report me: "unknow % char"
>
> Many thx.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How add a point remotelly

2018-01-21 Thread Rahkonen Jukka (MML)
I would try first with one variable %coordinates% for avoiding possible problem 
because of subsequent % signs.

-Jukka Rahkonen-

Lähettäjä: Andrea Peri<mailto:aperi2...@gmail.com>
Lähetetty: ‎21.‎1.‎2018 11:58
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: [mapserver-users] How add a point remotelly

Hi,
Is possible to use the runtime-substitution to add a point into a map layer ?

I try this, but it do error.

FEATURE
  POINTS
%coord_est% %coord_north%

The log report me: "unknow % char"

Many thx.

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users