[mapserver-users] Getting LABELs as strings from MapServer

2018-01-21 Thread Seth G
Hi list,

I'm trying to get the TEXT (of a CLASS, or LABEL) fro a feature from MapServer 
in a text format. 
WFS services (as GML/GeoJSON etc.) can only return the attributes of the source 
data. I've looked at templating and all available CGI parameters but none of 
these seem to be able to access a feature's label as a string. Rendering 
features as KML looked like it could be an option, but whenever a LABEL and 
TEXT is set no KML is generated (on Windows). 
Am I missing something, or is this a MapScript only solution?

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika
___
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 
> 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
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 àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users