[Geoserver-users] code runs fine but layer not appearing

I have zero error messages in the coding syntax, however when i go to layer
preview the layer is not there . am i missing something?

<?xml version="1.0" encoding="ISO-8859-1"?>
<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>Jurisdictions</Name>
      <UserStyle>
   <Title>Jurisdictions</Title>
      <FeatureTypeStyle>
   <Rule>
   <Name>city limits</Name>
   <Title>city limits</Title>
    <ogc:Filter>
      <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>type</ogc:PropertyName>
        <ogc:Literal>city limits</ogc:Literal>
     </ogc:PropertyIsEqualTo>
   </ogc:Filter>
   <PolygonSymbolizer>
    <Fill>
           <CssParameter name="fill">#ffffff</CssParameter>
           <CssParameter name="fill-opacity">0.4</CssParameteR>
     </Fill>
     <Stroke>
           <CssParameter name="stroke">#fffffff</CssParameter>
          <CssParameter name="stroke-width">1.3</CssParameter>
          <CssParameter name="stroke-opacity">0.7</CssParameter>
     </Stroke>
   </PolygonSymbolizer>
  </Rule>
  <Rule>
    <Name>police power</Name>
    <Title>police power</Title>
   <ogc:Filter>
     <ogc:PropertyIsEqualTo>
         <ogc:PropertyName>type</ogc:PropertyName>
         <ogc:Literal>police power</ogc:Literal>
     </ogc:PropertyIsEqualTo>
    </ogc:Filter>
   <PolygonSymbolizer>
</Rule>
<Rule>
    <Name>planning commission</Name>
     <Title>planning commission</Title>
    <ogc:Filter>
        <ogc:PropertyIsEqualTo>
           <ogc:PropertyName>type</ogc:PropertyName>
           <ogc:Literal>planning commission</ogc:Literal>
        </ogc:PropertyIsEqualTo>
    </ogc:Filter>
    <PolygonSymbolizer>
       <Fill>
            <CssParameter name="fill">#bbbbbbb</CssParameter>
            <CssParameter name="fill-opacity">0.2</CssParameter>
      </Filll>
      <Stroke>
            <CssParameter name="stroke">#bbbbbb</CssParameter>
            <CssParameter name="stroke-width">1.3</CssParameter>
            <CssParameter name="stroke-opacity">0.4</CssParameter>
       </Stroke>
           </PolygonSymbolizer>
       </Rule>
    </FeatureTypeStyle>
   </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Without a copy of your data it is hard to debug, the usual things to check are is the case of your propertynames correct? is that literal exactly what is in the attribute? Does it work when you use a default polygon style?

Ian

···

On 6 March 2018 at 22:46, GeorgeJones92 <george.jones@anonymised.com> wrote:

I have zero error messages in the coding syntax, however when i go to layer
preview the layer is not there . am i missing something?

<?xml version="1.0" encoding="ISO-8859-1"?>

<StyledLayerDescriptor version=“1.0.0”

xsi:schemaLocation=“http://www.opengis.net/sld/ StyledLayerDescriptor.xsd”
xmlns=“http://www.opengis.net/sld
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xlink=“http://www.w3.org/1999/xlink

xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

Jurisdictions

Jurisdictions city limits city limits type city limits #ffffff 0.4 #fffffff 1.3 0.7 police power police power type police power planning commission planning commission type planning commission #bbbbbbb 0.2 #bbbbbb 1.3 0.4


Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

<http://osgeo-org.1560.x6.nabble.com/file/t382810/CaptureSettingsForGeoserverLayerss.png&gt;

i think some of the problems are in the image above. Notice
Aberdeen:Jurisdictions has an unfilled polygon compared to schools layer.
have no idea how to change it to be filled. any thoughts? i'm really new to
geoserver.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

The 0 size is more probably the issue, check the data you are loading is really there.

Ian

···

On 7 March 2018 at 15:32, GeorgeJones92 <george.jones@anonymised.com> wrote:

<http://osgeo-org.1560.x6.nabble.com/file/t382810/CaptureSettingsForGeoserverLayerss.png>

i think some of the problems are in the image above. Notice
Aberdeen:Jurisdictions has an unfilled polygon compared to schools layer.
have no idea how to change it to be filled. any thoughts? i’m really new to
geoserver.


Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

the data is there. i run it off pg admin database. idk if you know to much
about that but i originally deleted the old jurisdictions layer and added a
new one but can't get that to show up in geoserver. idk how to make a
connection to it.

-george

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

<http://osgeo-org.1560.x6.nabble.com/file/t382810/failed_to_load_list.png&gt;

also i keep getting the above error message when submitting the layer
attributes with the installed code. absolutely no idea what it means- i'm
missing attributes?

thanks GJ

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html