[mapserver-users] WFS - DescribeFeatureType

Guillaume Sueur guillaume.sueur at neogeo-online.net
Wed Mar 12 05:34:56 EDT 2008


bien vu !

merci !

Jacolin Yves a écrit :
> Hi,
> 
> Mapserver is a SLD server by default (i mean no extra configuration, no extra 
> build), just ask to mapserv cgi and you get it. The style is the one you 
> setup in your LAYER CLASS object. You can even change it and send it back to 
> mapserver to change the style of the LAYER. 
> 
> This is what I do for a simple map export to define the new opacity of the 
> layer, opacity changed by my openLayer side.
> 
> Y.
> Le Wednesday 12 March 2008 10:22:03 Guillaume Sueur, vous avez écrit :
>> Will that work if no SLD is yet associated to the mapfile and maplayer ?
>>
>> Jacolin Yves a écrit :
>>> Hi,
>>>
>>> With a geStyle resquest, you get something like this for the polygon
>>> layer : <PolygonSymbolizer>
>>>                   <Fill>
>>>                      <CssParameter name="fill">#aaaa7f</CssParameter>
>>>                   </Fill>
>>>                   <Stroke>
>>>                      <CssParameter name="stroke">#000000</CssParameter>
>>>                   </Stroke>
>>> </PolygonSymbolizer>
>>>
>>> For a polyline layer:
>>> <LineSymbolizer>
>>>   <Stroke>
>>>      <CssParameter name="stroke">#000000</CssParameter>
>>>      <CssParameter name="stroke-width">1</CssParameter>
>>>   </Stroke>
>>> </LineSymbolizer>
>>>
>>> For a point layer:
>>>
>>> <PointSymbolizer>
>>>   <Graphic>
>>>     <Mark>
>>>        <WellKnownName>circle</WellKnownName>
>>>        <Fill>
>>>            <CssParameter name="fill">#0000c8</CssParameter>
>>>        </Fill>
>>>      </Mark>
>>>      <Size>5</Size>
>>>   </Graphic>
>>> </PointSymbolizer>
>>>
>>> Y.
>>>
>>> Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez écrit :
>>>> which kind of SLD request ?
>>>> Actually, I need the geomType to specify which SLD template to associate
>>>> with the layer...
>>>>
>>>> Jacolin Yves a écrit :
>>>>> Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez écrit :
>>>>>> Hi again,
>>>>>>
>>>>>> I'm trying to use describeFeatureType to retrieve type and fields of a
>>>>>> given layer.
>>>>>> While it looks right for attibute data, the GeomType is not precise :
>>>>>> <element name="msGeometry" type="gml:GeometryPropertyType"
>>>>>> minOccurs="0" maxOccurs="1"/>
>>>>>>
>>>>>> The only piece of information I get in there is that the Geometry is
>>>>>> of GeometryType, which I don't need any WFS request for !
>>>>>>
>>>>>> Is there a specific METADATA item to add or use to be able to have the
>>>>>> precise type (PolygonPropertyType for instance) ?
>>>>>>
>>>>>> Thanks,
>>>>> Hi Guillaume,
>>>>>
>>>>> You can use a SLD request on the layer.
>>>>>
>>>>> Y.
> 
> 
> 

-- 
Guillaume SUEUR
Expert SIG et OpenSource
NEOGEO
46 RUE MATABIAU
31000 TOULOUSE
06 74 91 95 20
Site web : http://www.neogeo-online.net



More information about the mapserver-users mailing list