RE: [mapserver-users] Problems with SLD

2009-11-19 Thread David Alda Fernandez de Lezea
Hello, Thanks for your response. I have MapServer 5.2.1 but I didn't know about the format AGG. Searching in google I've found the way to solve this by having in my mapfile something like: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA

Re: [mapserver-users] Build Errors; Currently msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look like a mapfile.

2009-11-19 Thread Richard Marsden
Thanks Michael - that has pointed me in the right direction and I now have a working Hello World. I had already tried the MAP on the first line, but this was giving a parsing error on line 1. I assumed this referred to the MAP in the map file, but it was actually due to a lack of the magic string

[mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Martin Ouellet
Hi, Here the results of some tests I've made yesterday to really understand the process of a GetFeatureInfo call with MapServer. Please let me know if I'am mistaking: 1) GetFeatureInfo with INFO_FORMAT=text/plain Result: the tag TEMPLATE must be specify (with a dummy file). Then you can

RE: [mapserver-users] Build Errors; Currently msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look like a mapfile.

2009-11-19 Thread Fawcett, David (MPCA)
If you still get an error, you will want to make sure that your MAP has an associated END line to close out the MAP block. It will likely be the last line in your map file. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of

Re: [mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Daniel Morissette
Martin Ouellet wrote: 3) GetFeatureInfo with INFO_FORMAT=text/html Result: the only required tag is TEMPLATE (a dummy file will return no data). But if you supply a valid html template, ALL the field will be returned because the METADATA tag ows_include|exclude_items or

Re: [mapserver-users] Build Errors; Currently msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look like a mapfile.

2009-11-19 Thread Richard Marsden
Thanks David Michael, I already had the extra END at the end of my map files. It was the initial MAP which I was missing (probably because I created these files initially from Bill Kropla's book - and that how he has coded his map files). Adding the initial MAP fixed all my map applications -

Re: [mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Martin Ouellet
Daniel, You're right, the template is acting as the controller for the html format so there's no need to put the include/exclude items on top of it. I was just trying to found out the safest (and the easiest) way to control my data before exposing it. In a real case scenario, if a table

Re: [mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Daniel Morissette
Martin Ouellet wrote: In a real case scenario, if a table structure beyond a layer change, I will have to modify the html template but also all the wms|ows|gml include items. It's not such a big deal but since we have around 300 layer to maintain, It would been convenient to have a unique

Re: [mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Rahkonen Jukka
Hi, I would say that the safest and perhaps also simpliest way might be to forget the text/html and let Mapserver read your data through database view so there is nothing to hide left. Each layer could then have inlude_items set to all. -Jukka Rahkonen- Martin Ouellet wrote: Daniel,

[mapserver-users] Usage of Vendor Option

2009-11-19 Thread David Alda Fernandez de Lezea
Hi, I've got a SLD that I apply to a polygon layer and I want to add a label to identify those polygons. I manage to add the the labels but my problem is that the labels are repeated a lot of times into the polygons and furthermore they don't appear on the centroif of my polygon. Here is my