[Geoserver-users] map rendering oddly

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
   xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
   xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
   xmlns:xlink="http://www.w3.org/1999/xlink&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
       <Name>wria_polygon</Name>
       <UserStyle>
           <Name>wria_polygon_style</Name>
           <Title>geoserver style</Title>
           <Abstract>Generated by GeoServer</Abstract>
           <FeatureTypeStyle>
           <Rule>
               <PolygonSymbolizer>
                   <Fill>
                       <CssParameter name="fill">#777777</CssParameter>
                       <CssParameter name="fill-opacity">0.0</CssParameter>
                   </Fill>
                   <Stroke>
                       <CssParameter name="stroke">#880000</CssParameter>
                       <CssParameter name="stroke-opacity">1</CssParameter>
                   </Stroke>
               </PolygonSymbolizer>
           </Rule>
           </FeatureTypeStyle>
       </UserStyle>
   </NamedLayer>
</StyledLayerDescriptor>

Washington.PNG

Hi Amy. I don't think this SLD is being used. In the code, the stroke of the polygon is supposed to be rendered as red (#880000), which clearly isn't happening. Are you manually editing the SLD, and are you sure that GeoServer sees the changes (i.e. inside Config -> Data -> Style) Perhaps a reload of your configuration would help? Another thing to try is to switch to another SLD temporarily and see what happens there...

Thanks,
Mike

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

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

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Not sure, but based on all the little dots it looks like your data doesn't really consist of polygons, but lots of unconnected dots that are either rendered as individual polygons or using the default point symbolizer.

If you look at the featuretype in the configuration, what does it say about the geometry field?

-Arne

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

The field the_geom says multiPolygonProperty. I thought the same thing - that I have a file of points, but I pulled it up in uDig, and it drew perfectly, so I don't know.

Arne Kepp wrote:

Not sure, but based on all the little dots it looks like your data doesn't really consist of polygons, but lots of unconnected dots that are either rendered as individual polygons or using the default point symbolizer.

If you look at the featuretype in the configuration, what does it say about the geometry field?

-Arne

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------

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

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

I tried switching the SLDs to a different one, and it still drew this way. I just tried reloading and I'm still getting the chunky look. The oddest thing is that it draws up fine in uDig, which is pretty much based on the same libraries.

Amy

Mike Pumphrey wrote:

Hi Amy. I don't think this SLD is being used. In the code, the stroke of the polygon is supposed to be rendered as red (#880000), which clearly isn't happening. Are you manually editing the SLD, and are you sure that GeoServer sees the changes (i.e. inside Config -> Data -> Style) Perhaps a reload of your configuration would help? Another thing to try is to switch to another SLD temporarily and see what happens there...

Thanks,
Mike

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

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

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

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

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Amy. Just to make sure, when you go to the FeatureType Editor, are you changing the area where it says "Style" (it's a drop down box) and not the (larger) selection area called "Additional Styles"? I know that I often think I'm setting the former when in actuality I'm setting the latter. My gut is that your layer is set to use the built-in style called "point".

Thanks,
Mike

Amy Johnson wrote:

I tried switching the SLDs to a different one, and it still drew this way. I just tried reloading and I'm still getting the chunky look. The oddest thing is that it draws up fine in uDig, which is pretty much based on the same libraries.

Amy

Mike Pumphrey wrote:

Hi Amy. I don't think this SLD is being used. In the code, the stroke of the polygon is supposed to be rendered as red (#880000), which clearly isn't happening. Are you manually editing the SLD, and are you sure that GeoServer sees the changes (i.e. inside Config -> Data -> Style) Perhaps a reload of your configuration would help? Another thing to try is to switch to another SLD temporarily and see what happens there...

Thanks,
Mike

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

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

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

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

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hmmm... this is definitely the case of a PointSymbolizer being used to render. A common case is the one mike describes where the default style is a different one then the one you specify in the additional styles pane on the feature type editor page.

You can easily see if this is the case by manually specifying the name of the style you are trying to render in the address bar.

IE. chagne "styles=&..." to styles=theStyleYouWant&..."

and see if it makes a difference.

-Justin

Amy Johnson wrote:

The field the_geom says multiPolygonProperty. I thought the same thing - that I have a file of points, but I pulled it up in uDig, and it drew perfectly, so I don't know.

Arne Kepp wrote:

Not sure, but based on all the little dots it looks like your data doesn't really consist of polygons, but lots of unconnected dots that are either rendered as individual polygons or using the default point symbolizer.

If you look at the featuretype in the configuration, what does it say about the geometry field?

-Arne

Amy Johnson wrote:

I am using Geoserver 1.6.1 and I have a shape file that is rendering with really thick lines. I've tried altering the sld definition and that hasn't worked. The sld contents are below and I am attaching an image of the rendering. Any help is appreciated.

Regards,

Amy Johnson

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer>
      <Name>wria_polygon</Name>
      <UserStyle>
          <Name>wria_polygon_style</Name>
          <Title>geoserver style</Title>
          <Abstract>Generated by GeoServer</Abstract>
          <FeatureTypeStyle>
          <Rule>
              <PolygonSymbolizer>
                  <Fill>
                      <CssParameter name="fill">#777777</CssParameter>
                      <CssParameter name="fill-opacity">0.0</CssParameter>
                  </Fill>
                  <Stroke>
                      <CssParameter name="stroke">#880000</CssParameter>
                      <CssParameter name="stroke-opacity">1</CssParameter>
                  </Stroke>
              </PolygonSymbolizer>
          </Rule>
          </FeatureTypeStyle>
      </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------

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

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org