[Geoserver-users] KML styling loses SLD settings?

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

I will be taking a look at the KML early next week and will check out this issue. I haven't run across this problem but I will use your SLD to test.

Brent Owens
(The Open Planning Project)

Marc Pfister wrote:

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

hi,

its the same here. doesnt matter which stroke-width i use in my sld file, it
seems that
in the kml output they are always generated as stroke-width "2". i want to
draw a line with an outline, it
works if im gona request raster data from the wms, the line is drawn
correctly, with the outline.
in Google Earth its just a red line with this sld:

<?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>Default Line</Name>
    <UserStyle>
      <Title>A boring default style</Title>
      <Abstract>A sample style that just prints out a green line</Abstract>
      <FeatureTypeStyle>
      <Rule>
          <Name>Rule 2</Name>
          <Title>Outlined Highways</Title>
        <Abstract>A gray outline and white fill, with a 8 pixel width</Abstract>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#000000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>7</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#FF0000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>3</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <TextSymbolizer>
            <Label>
              <ogc:PropertyName>ROUTE_NUM</ogc:PropertyName>
          </Label>
            <Font>
                <CssParameter name="font-family">Times New
Roman</CssParameter>
                <CssParameter name="font-style">Normal</CssParameter>
                <CssParameter name="font-size">14</CssParameter>
            </Font>

            <Fill>
              <CssParameter name="fill-opacity">0</CssParameter>
            </Fill>
                                      </TextSymbolizer>
          <PointSymbolizer>
          <Graphic>
                        <ExternalGraphic>
                                <OnlineResource
xlink:href="http://localhost/transparent.png&quot;/&gt;
                                <Format>image/png</Format>
                        </ExternalGraphic>
                        <Size>23</Size>
                </Graphic>
      </PointSymbolizer>
          
        </Rule>

        </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Marc Pfister wrote:

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/KML-styling-loses-SLD-settings--tf2093487.html#a6677829
Sent from the GeoServer - User mailing list archive at Nabble.com.

Currently google earth will only render the one line style, even if you supply two of them.
Both are specified in the KML output that geoserver generates, but it is up to GE to render them and it just renders the last one. The only way around it is to have two datasets or to have the KML output as a raster image.
Just set the KMSCORE parameter of the request URL to zero:
KMSCORE=0
This will return you KML that contains a raster image of the data, and you will get your double line styling that way.

Brent Owens
(The Open Planning Project)

wrobel wrote:

hi,

its the same here. doesnt matter which stroke-width i use in my sld file, it
seems that
in the kml output they are always generated as stroke-width "2". i want to
draw a line with an outline, it
works if im gona request raster data from the wms, the line is drawn
correctly, with the outline.
in Google Earth its just a red line with this sld:

<?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>Default Line</Name>
    <UserStyle>
      <Title>A boring default style</Title>
      <Abstract>A sample style that just prints out a green line</Abstract>
      <FeatureTypeStyle>
      <Rule>
          <Name>Rule 2</Name>
          <Title>Outlined Highways</Title>
        <Abstract>A gray outline and white fill, with a 8 pixel width</Abstract>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#000000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>7</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#FF0000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>3</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <TextSymbolizer>
            <Label>
              <ogc:PropertyName>ROUTE_NUM</ogc:PropertyName>
          </Label>
            <Font>
                <CssParameter name="font-family">Times New
Roman</CssParameter>
                <CssParameter name="font-style">Normal</CssParameter>
                <CssParameter name="font-size">14</CssParameter>
            </Font>

            <Fill>
              <CssParameter name="fill-opacity">0</CssParameter>
            </Fill>
                                      </TextSymbolizer>
          <PointSymbolizer>
          <Graphic>
                        <ExternalGraphic>
                                <OnlineResource
xlink:href="http://localhost/transparent.png&quot;/&gt;
                                <Format>image/png</Format>
                        </ExternalGraphic>
                        <Size>23</Size>
                </Graphic>
      </PointSymbolizer>
          
        </Rule>

        </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Marc Pfister wrote:
  

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Theoretically I think you could also just have two styles on one dataset, one the outline and one the inner part, and request them in the right order so the outline is below the inner. But I'm not sure if that works in practice - but it should have geoserver generate the equivalent of two datasets for KML.

Chris

Brent Owens wrote:

Currently google earth will only render the one line style, even if you supply two of them.
Both are specified in the KML output that geoserver generates, but it is up to GE to render them and it just renders the last one. The only way around it is to have two datasets or to have the KML output as a raster image.
Just set the KMSCORE parameter of the request URL to zero:
KMSCORE=0
This will return you KML that contains a raster image of the data, and you will get your double line styling that way.

Brent Owens
(The Open Planning Project)

wrobel wrote:

hi,

its the same here. doesnt matter which stroke-width i use in my sld file, it
seems that
in the kml output they are always generated as stroke-width "2". i want to
draw a line with an outline, it
works if im gona request raster data from the wms, the line is drawn
correctly, with the outline.
in Google Earth its just a red line with this sld:

<?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>Default Line</Name>
    <UserStyle>
      <Title>A boring default style</Title>
      <Abstract>A sample style that just prints out a green line</Abstract>
      <FeatureTypeStyle>
      <Rule>
          <Name>Rule 2</Name>
          <Title>Outlined Highways</Title>
        <Abstract>A gray outline and white fill, with a 8 pixel width</Abstract>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#000000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>7</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#FF0000</CssParameter>
              <CssParameter name="stroke-width">
              <ogc:Literal>3</ogc:Literal>
              </CssParameter>
            </Stroke>
          </LineSymbolizer>
          <TextSymbolizer>
            <Label>
              <ogc:PropertyName>ROUTE_NUM</ogc:PropertyName>
          </Label>
            <Font>
                <CssParameter name="font-family">Times New
Roman</CssParameter>
                <CssParameter name="font-style">Normal</CssParameter>
                <CssParameter name="font-size">14</CssParameter>
            </Font>

            <Fill>
              <CssParameter name="fill-opacity">0</CssParameter>
            </Fill>
                                      </TextSymbolizer>
          <PointSymbolizer>
          <Graphic>
                        <ExternalGraphic>
                                <OnlineResource
xlink:href="http://localhost/transparent.png&quot;/&gt;
                                <Format>image/png</Format>
                        </ExternalGraphic>
                        <Size>23</Size>
                </Graphic>
      </PointSymbolizer>
          
        </Rule>

        </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Marc Pfister wrote:
  

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45268cdb148372207481331!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

We serve up relatively simple shapefiles and I haven't added or changed
anything to the server since I installed 1.3.3a about two or three months
ago.

Today, I tried to add a shapefile store and clicked on the apply button. All
fine. I clicked on the save button and boom, this error:
HTTP ERROR: 500 Internal Server Error
RequestURI=/geoserver/admin/saveToXML.do

Since then, I've upgraded the server to 1.4.4a and get the same error. All
the older maps are being served without any problems. But if I try and save
an edit to them, I get the same problem.

This is kinda urgent. Help anyone?

Maurice Tamman
(941) 925-8796; (941) 539-1580(mobile)
maurice.ben@anonymised.com

hi,

i've tested a filter in the sld like :

<Rule>...
<ogc:Filter>
            <ogc:PropertyIsEqualTo>
              <ogc:PropertyName>column</ogc:PropertyName>
              <ogc:Literal>value</ogc:Literal>
            </ogc:PropertyIsEqualTo>
          </ogc:Filter>
</Rule>
<Rule>...
<ogc:Not>
    <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>column</ogc:PropertyName>
      <ogc:Literal>value</ogc:Literal>
    </ogc:PropertyIsEqualTo>
  </ogc:Not>
</ogc:Filter>
</Rule>

in normal raster wms output it works, in GE(kml) it doesnt. I just want to
tell you
this issue.

Brent Owens wrote:

I will be taking a look at the KML early next week and will check out
this issue. I haven't run across this problem but I will use your SLD to
test.

Brent Owens
(The Open Planning Project)

Marc Pfister wrote:

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/KML-styling-loses-SLD-settings--tf2093487.html#a6717635
Sent from the GeoServer - User mailing list archive at Nabble.com.

hmm, interesting.
I haven't had any issues with filters through testing, and it uses essentially the same filter code as WMS. I will take a deeper look into it. Thanks for reporting it.

Brent Owens
(The Open Planning Project)

wrobel wrote:

hi,

i've tested a filter in the sld like :

<Rule>...
<ogc:Filter>
            <ogc:PropertyIsEqualTo>
              <ogc:PropertyName>column</ogc:PropertyName>
              <ogc:Literal>value</ogc:Literal>
            </ogc:PropertyIsEqualTo>
          </ogc:Filter>
</Rule>
<Rule>...
<ogc:Not>
    <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>column</ogc:PropertyName>
      <ogc:Literal>value</ogc:Literal>
    </ogc:PropertyIsEqualTo>
  </ogc:Not>
</ogc:Filter>
</Rule>

in normal raster wms output it works, in GE(kml) it doesnt. I just want to
tell you
this issue.

Brent Owens wrote:
  

I will be taking a look at the KML early next week and will check out this issue. I haven't run across this problem but I will use your SLD to test.

Brent Owens
(The Open Planning Project)

Marc Pfister wrote:
    

Is it just me, or does the SLD styling description not carry over to KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

hi,

i altered the filter and now it works. before it looked so :

<Rule>
<ogc:Filter>
  <ogc:Not>
    <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>ROUTE_NUM</ogc:PropertyName>
            <ogc:Literal>null</ogc:Literal>
          </ogc:PropertyIsEqualTo>
  </ogc:Not>
</ogc:Filter>
...
</Rule>

now it looks like :

<Rule>
<ogc:Filter>
  <ogc:Not>
    <ogc:PropertyIsNull>
      <ogc:PropertyName>ROUTE_NUM</ogc:PropertyName>
    </ogc:PropertyIsNull>
  </ogc:Not>
</ogc:Filter>
...
</Rule>

in these rules textsymbolizer should not be set, so values with null
shouldnt be displayed.
strange about it... with first filter the "null" value wasnt displayed in
wms raster output but in
Google Earth. Using the second Filter brings the result for Google Earth.

Brent Owens wrote:

hmm, interesting.
I haven't had any issues with filters through testing, and it uses
essentially the same filter code as WMS. I will take a deeper look into
it. Thanks for reporting it.

Brent Owens
(The Open Planning Project)

wrobel wrote:

hi,

i've tested a filter in the sld like :

<Rule>...
<ogc:Filter>
            <ogc:PropertyIsEqualTo>
              <ogc:PropertyName>column</ogc:PropertyName>
              <ogc:Literal>value</ogc:Literal>
            </ogc:PropertyIsEqualTo>
          </ogc:Filter>
</Rule>
<Rule>...
<ogc:Not>
    <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>column</ogc:PropertyName>
      <ogc:Literal>value</ogc:Literal>
    </ogc:PropertyIsEqualTo>
  </ogc:Not>
</ogc:Filter>
</Rule>

in normal raster wms output it works, in GE(kml) it doesnt. I just want
to
tell you
this issue.

Brent Owens wrote:
  

I will be taking a look at the KML early next week and will check out
this issue. I haven't run across this problem but I will use your SLD to
test.

Brent Owens
(The Open Planning Project)

Marc Pfister wrote:
    

Is it just me, or does the SLD styling description not carry over to
KML
once Geoserver switches to outputting vector geometry?

For example, the parcels shown below have red outlines, which turn
white
once you zoom in close enough to trip the KMScore.

http://geoserver.enplan.com/geoserver/wms/kml_reflect?layers=parcels

The SLD is a bare-bones as can be:

<?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>parcels</Name>
    <UserStyle>
      <Name>parcels_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PolygonSymbolizer>
          <Fill>
            <CssParameter
name="fill">#FFFFFF</CssParameter>
            <CssParameter
name="fill-opacity">0</CssParameter>
          </Fill>
          
          <Stroke>
            <CssParameter
name="stroke">#FF0000</CssParameter>
            <CssParameter
name="stroke-opacity">1</CssParameter>
          </Stroke>
        </PolygonSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

I checked the list archives for a mention of this and couldn't find
anything. If it's functionality that hasn't been done yet, I can look
at
the code to see if it's within my skills to program.

Marc Pfister
Geospatial Data Manager
ENPLAN
mpfister@anonymised.com
530/221-0440 x108
530/221-6963 Fax

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/KML-styling-loses-SLD-settings--tf2093487.html#a6734631
Sent from the GeoServer - User mailing list archive at Nabble.com.

This error is most likely write permissions to the data directory where your catalog.xml file lives.
Are you using tomcat or jetty to run geoserver?

Brent Owens
(The Open Planning Project)

Maurice Tamman wrote:

We serve up relatively simple shapefiles and I haven't added or changed
anything to the server since I installed 1.3.3a about two or three months
ago.

Today, I tried to add a shapefile store and clicked on the apply button. All
fine. I clicked on the save button and boom, this error:
HTTP ERROR: 500 Internal Server Error
RequestURI=/geoserver/admin/saveToXML.do

Since then, I've upgraded the server to 1.4.4a and get the same error. All
the older maps are being served without any problems. But if I try and save
an edit to them, I get the same problem.

This is kinda urgent. Help anyone?

Maurice Tamman
(941) 925-8796; (941) 539-1580(mobile)
maurice.ben@anonymised.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users