[mapserver-users] WMS_ABSTRACT line breaks

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Jun 16 06:46:37 PDT 2016


I'm not aware of such functionality inside MapServer; however I do 
handle this regularly within my applications (OpenLayers actually), 
usually through a PHP script that on-the-fly gets the remote service's 
abstract values (for the MAP and LAYER objects) and then cleans it 
appropriately (escaping single quotes ' double-quotes " and line feeds 
\r \n).  Maybe this is opposite of what you need, but, it is somewhat 
similar :)

-jeff


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



On 2016-06-16 10:01 AM, Charlotte Toma (WhereGroup) wrote:
> Hello,
>
> you can specify an abstract in the map file (WMS_ABSTRACT). Since the
> description is often too long, I wonder if you can define line breaks.
> These linebreaks should then be passed to the Mapbender3 metadata
> (shortcut menu in the layertree).
>
> Does anyone know how line breaks are possible in the WMS_ABSTRACT? (How)
> is this implementable on the map file?
>
> This is my example abstract:
>
> 	METADATA
> 	        "WMS_TITLE"    "Germany Test"
> 	        "WMS_ABSTRACT"    "<p>Lorem ipsum dolor sit amet,
> </p>consectetuer adipiscing elit.
> 	        Aenean commodo ligula eget dolor. <b>Aenean massa.</br>
> 	        Cum sociis<span> natoque penatibus et magnis dis parturient
> montes, nascetur ridiculus mus. Donec quam felis,
> 	        ultricies nec, pellentesque eu, pretium quis, sem. Nulla
> consequat massa quis enim. Donec pede justo, fringilla vel,
> 	        aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut,
> imperdiet a, venenatis vitae, justo. Nullam dictum felis
> 	        eu pede mollis pretium. Integer tincidunt.
> 	        Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate
> eleifend tellus.
> 	        Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac,
> enim. Aliquam lorem ante, dapibus in,
> 	        viverra quis, feugiat a, tellus. Phasellus viverra nulla ut
> metus varius laoreet. Quisque rutrum.
> 	        Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur
> ullamcorper ultricies nisi.
> 	        Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget
> condimentum rhoncus,
> 	        sem quam semper libero, sit amet adipiscing sem neque sed
> ipsum. Nam quam nunc,
> 	        blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec
> odio et ante tincidunt tempus. "
> 	        "WMS_ACCESSCONSTRAINTS"    "none"
>
>
> Thanks for your help
> Charlotte Toma
>






More information about the MapServer-users mailing list