[Geoserver-users] in line feature request with existing sld

Hi,

I intend rendering a constantly changing location of a vehicle in real time in geoserver. I undertand that using an in line feature request will be the way to go. From the tutorials i have seen on inline feature request, the coordinates of the feature must be specified as well as an sld xml.

My question is, is it possible to instead of explictly specify the sld xml but to use an existing sld in geoserver to render the dynamic location on the map ? or must I specify the sld xml each time i make an inline feature request ?

thanks,

Roman

Roman Isitua ha scritto:

Hi,

I intend rendering a constantly changing location of a vehicle in real time in geoserver. I undertand that using an in line feature request will be the way to go. From the tutorials i have seen on inline feature request, the coordinates of the feature must be specified as well as an sld xml.

My question is, is it possible to instead of explictly specify the sld xml but to use an existing sld in geoserver to render the dynamic location on the map ? or must I specify the sld xml each time i make an inline feature request ?

If you look at the StyledLayerDescriptor xml schema you'll see the following:

<xsd:element name="UserLayer">
     <xsd:annotation>
       <xsd:documentation>
         A UserLayer allows a user-defined layer to be built from WFS and
         WCS data.
       </xsd:documentation>
     </xsd:annotation>
     <xsd:complexType>
       <xsd:sequence>
         <xsd:element ref="sld:Name" minOccurs="0"/>

         <xsd:choice minOccurs="0">
          <xsd:element ref="sld:InlineFeature"/>
          <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
  </xsd:choice>
  
         <xsd:element ref="sld:LayerFeatureConstraints"/>
         <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
       </xsd:sequence>
     </xsd:complexType>
   </xsd:element>

So only a UserStyle can be used, and you'll have to repeat
it fully for each request.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.