Can anyone please help me get a basic SLD that will display more than
one point?  I am trying to prototype displaying dozens of points.

    I am trying to make an SLD with InlineFeatures that just displays
several points but I can only ever get 1 point to display.  Please help!  An
example request and actual working URL encoded link are appended.
 
    This below request's <StyledLayerDescriptor> will display 1 point.  If I
try to add another gml:Point member inside my multipoint, then 0 points are
displayed.  I have also tried just using several gml:Points (not using
multipoint) but I can't get any points to display that way.  The only thing
that works for me at all is a MultiPoint with one Point.
 
Thanks so much!
Ashley
 
http://demo.opengeo.org/geoserver/wms?validateSchema=true&FORMAT=image/png&T
RANSPARENT=TRUE&HEIGHT=406&WIDTH=810&REQUEST=GetMap&SRS=EPSG:4326&VERSION=1.
1.1&BBOX=-120,-120,120,120&SLD_BODY=
<?xml version="1.0" encoding="UTF-8"?><StyledLayerDescriptor version="1.0.0"
xmlns:gml="http://www.opengis.net/gml";
xmlns:ogc="http://www.opengis.net/ogc"; xmlns="http://www.opengis.net/sld";>
 <UserLayer>
  <Name>junk</Name>
  <InlineFeature>
   <FeatureCollection>
    <featureMember>
     <gml:MultiPoint srsName="EPSG:4326">
      <gml:pointMember>
       <gml:Point>
        <gml:coordinates>5,7</gml:coordinates>
       </gml:Point>
      </gml:pointMember>
     </gml:MultiPoint>
    </featureMember>
   </FeatureCollection>
  </InlineFeature>
  <LayerFeatureConstraints>
   <FeatureTypeConstraint/>
  </LayerFeatureConstraints>
  <UserStyle>
   <FeatureTypeStyle>
    <Rule>
     <PointSymbolizer>
      <Graphic>
       <Mark>
        <WellKnownName>circle</WellKnownName>
        <Fill>
         <CssParameter name="fill">#FF0000</CssParameter>
        </Fill>
       </Mark>
       <Size>4</Size>
      </Graphic>
     </PointSymbolizer>
    </Rule>
   </FeatureTypeStyle>
  </UserStyle>
 </UserLayer>
</StyledLayerDescriptor>
 
http://demo.opengeo.org/geoserver/wms?validateSchema=true&FORMAT=image/png&T
RANSPARENT=TRUE&HEIGHT=406&WIDTH=810&REQUEST=GetMap&SRS=EPSG:4326&VERSION=1.
1.1&BBOX=-120,-120,120,120&SLD_BODY=%3C%3Fxml%20version%3D%221.0%22%20encodi
ng%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor%20version%3D%221.0.0%22%20xml
ns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22%20xmlns%3Aogc%3D%22http%
3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2
Fsld%22%3E%3CUserLayer%3E%3CName%3Ejunk%3C%2FName%3E%3CInlineFeature%3E%3CFe
atureCollection%3E%3CfeatureMember%3E%3Cgml%3AMultiPoint%20srsName%3D%22EPSG
%3A4326%22%3E%3Cgml%3ApointMember%3E%3Cgml%3APoint%3E%3Cgml%3Acoordinates%3E
5%2C7%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3APoint%3E%3C%2Fgml%3ApointMember%3
E%3C%2Fgml%3AMultiPoint%3E%3C%2FfeatureMember%3E%3C%2FFeatureCollection%3E%3
C%2FInlineFeature%3E%3CLayerFeatureConstraints%3E%3CFeatureTypeConstraint%3E
%3C%2FFeatureTypeConstraint%3E%3C%2FLayerFeatureConstraints%3E%3CUserStyle%3
E%3CFeatureTypeStyle%3E%3CRule%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CMark%3
E%3CWellKnownName%3Ecircle%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20
name%3D%22fill%22%3E%23FF0000%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E
%3CSize%3E4%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FPointSymbolizer%3E%3C%2FRule%3
E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FUserLayer%3E%3C%2FStyledLa
yerDescriptor%3E



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to