[mapserver-users] Re: mapserver-users Digest, Vol 22, Issue 50 (Out of Office)

Heather Wirth HWIRTH at co.benton.mn.us
Fri Nov 20 12:49:14 EST 2009


I will be out of the office until Monday, November 30, 2009.  I am sorry
for the inconvenience, and I will reply to your message as soon as
possible.  Thank you.

Heather Wirth

>>> mapserver-users 11/20/09 11:17 >>>

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: understanding behind the GetFeatureInfo... (Rahkonen Jukka)
   2. Usage of Vendor Option (David Alda Fernandez de Lezea)
   3. RE: Usage of Vendor Option (David Alda Fernandez de Lezea)


----------------------------------------------------------------------

Message: 1
Date: Thu, 19 Nov 2009 21:41:58 +0200
From: "Rahkonen Jukka" <Jukka.Rahkonen at mmmtike.fi>
Subject: Re: [mapserver-users] understanding behind the
	GetFeatureInfo...
To: "Martin Ouellet" <geomartino at gmail.com>
Cc: mapserver-users <mapserver-users at lists.osgeo.org>
Message-ID:
	<CC197224AC75CE4DB23F739B16891B86E34543 at tikka.haapa.mmm.fi>
Content-Type: text/plain;	charset="iso-8859-1"

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,

> 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 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 list of field to updated.  It
would
also reduce the risk of error (ex: allowing one field in the gml mode
but
not in the html mode)

> thanks again Daniel for your comments.

> MartinO

2009/11/19 Daniel Morissette <dmorissette at mapgears.com>

>> 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
>> wms_<include|exclude>_items are ignored.  So if my layer is a Oracle
spatial
>> table, I must then create a view to expose only the field I want. 
Would it
>> be relevant to control the field with the "wms_include_items" tag ?
Is there
>> a reason why is not working that way?
>>
>>
>> When you use a HTML template, it is the template itself that controls
which
> fields are returned, so I am not sure to understand the benefit of
> supporting the include/exclulde items on top of that.
>
>> Are you saying that there is a situation where all the fields end up
being
> unexpectedly dumped into the template out of your control? Maybe there
is a
> hidden feature I am not aware of in the template processor, if that's
the
> case then could you please elaborate?
>
>> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




------------------------------

Message: 2
Date: Fri, 20 Nov 2009 08:49:00 +0100
From: "David Alda Fernandez de Lezea" <dalda at ikt.es>
Subject: [mapserver-users] Usage of Vendor Option
To: <mapserver-users at lists.osgeo.org>
Message-ID: <224DBDAF88A6AC47BD22432815351BE007915442 at nekaposta1>
Content-Type: text/plain; charset="iso-8859-1"

Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 790 bytes
Desc: logo.gif
Url :
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091120/b8847520/attachment-0001.gif

------------------------------

Message: 3
Date: Fri, 20 Nov 2009 10:12:34 +0100
From: "David Alda Fernandez de Lezea" <dalda at ikt.es>
Subject: RE: [mapserver-users] Usage of Vendor Option
To: <mapserver-users at lists.osgeo.org>
Message-ID: <224DBDAF88A6AC47BD22432815351BE0079154FA at nekaposta1>
Content-Type: text/plain;	charset="iso-8859-1"

Hi Barend, 

Sorry, I didn't know there was a problem with my emails. I've removed
the styling-format of my email.

I'll repeat my question in case, someone didn't read the email because
of that problem you mentioned.

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 TextSymbolizer tag:
 
<TextSymbolizer>
        <sld:MinScaleDenominator>3000</sld:MinScaleDenominator>
        <sld:MaxScaleDenominator>5000</sld:MaxScaleDenominator>
        <Label>
         <ogc:PropertyName>MUNICIPIO</ogc:PropertyName>         
        </Label> 
        <Font> 
         <CssParameter name="font-family">Arial</CssParameter> 
         <CssParameter name="font-weight">bold</CssParameter> 
         <CssParameter name="font-size">8</CssParameter> 
        </Font> 
        <!-- this centers the label on the polygon's centroid-->
        <LabelPlacement>
          <PointPlacement> 
          <AnchorPoint>
            <AnchorPointX>0.5</AnchorPointX>
            <AnchorPointY>0.5</AnchorPointY>
          </AnchorPoint>
          </PointPlacement>         
        </LabelPlacement>
         <!--  make the label easy to read-->
        <Halo>        
           <Radius>
           <ogc:Literal>2</ogc:Literal>
           </Radius>
           <Fill>
          <CssParameter name="fill">#FFFFFF</CssParameter>
          <CssParameter name="fill-opacity">0.85</CssParameter>    
           </Fill>
        </Halo>
        <Fill>
         <CssParameter name="fill">#000000</CssParameter>  
        </Fill>
        <!-- This labels each name only once, not every shape with that
name -->
        <VendorOption name="group">true</VendorOption>
  </TextSymbolizer>

Hope that somenone can help me.

Thanks.





Hi David,

On a totally different subject: Are you aware that on some email readers
(mine certainly), all your emails are viryually unreadable becuase your
logo keeps getting repeated in the backgorund (see atached screenshot)?


--
Barend K*bben
International Institute for Geo-Information Sciences and Earth
Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253




International Institute for Geo-Information Science and Earth
Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended
for the addressee only. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution or action in
relation to the content of this information is strictly prohibited. If
you have received this e-mail by mistake, please delete the message and
any attachment and inform the sender by return e-mail. ITC accepts no
liability for any error or omission in the message content or for damage
of any kind that may arise as a result of e-mail transmission.


------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 22, Issue 50
***********************************************


More information about the mapserver-users mailing list