Cool. Could you submit a bug? You can schedule it against 1.6.0-rc2.
Have it clearly state how we do it now, with the fill color as transparent, what the current output is. And then clearly state what the new KML output should be.
And I guess this is only relevant when a fill color hasn't been defined? So if a fill has been defined in SLD then GeoServer should do what it does now?
Travis Kirstine wrote:
Chris,
In GE it looks as though you can define the width of of a polygon
outline only if the polygon has a null fill. The following kml will
draw polygon with only a outline with a width of 5.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Untitled Polygon.kml</name>
<Placemark>
<name>Untitled Polygon</name>
<Style>
<LineStyle>
<color>ff00aa00</color>
<width>5</width>
</LineStyle>
<PolyStyle>
<color>ff00ff55</color>
<fill>0</fill>
</PolyStyle>
</Style>
<Polygon>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-79.86014819750662,43.25268672100953,0
-79.86043314946076,43.25186722932418,0
-79.8595049811571,43.25164794663589,0
-79.85932222009551,43.25254927174073,0
-79.86014819750662,43.25268672100953,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
I believe that GeoSever renders the fill colour as transparent
resulting in thin outlines.
Thanks
Travis
On 30/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
? I don't think I understand what you're saying? Are you saying
there's a way for us to set the width for a polystyle? Or that it's not
possible?
Travis Kirstine wrote:
Chris,
I have taken a look at the kml output it looks as though google requires the
polystyle fill defined to have the outlines rendered at the correct width.
<PolyStyle>
<color>00aaaaaa</color>
<fill>0</fill>
</PolyStyle>
Travis
On 30/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
Actually, thinking on it, it may be possible that adding a LineStyle to
the KML Style output will make it properly render, as I could see them
having that sort of logic in google earth.
Travis, could you possible take some KML output and add in a LineStyle,
in addition to the PointStyle and PolyStyle that we set for polygon
output, set the width to something large, and see if google earth
renders it different?
If so then we will know that it'll work, and then put an issue in to our
task tracker - http://jira.codehaus.org/browse/GEOS and we'll get it
fixed for you.
best regards,
Chris
Chris Holmes wrote:
That does look pretty thin for a 3 pixel stroke width.
Huh, looking at the KML specification it looks like they give you no way
to control the thickness of the line in a polygon. They do for
linestyle, but not for polygon style. So I guess I'd say this is more a
bug with Google Earth?
So if you want it to look the same all the way down you should just set
the KMScore to 0, and have GeoServer do all the rendering.
Chris
Travis Kirstine wrote:
Chris,
Thanks for your response. I have included my style and a couple
images illustrating the change in line width.
<?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"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>parcel</Name>
<UserStyle>
<Name>parcel</Name>
<Title>geoserver style</Title>
<Abstract>Generated by GeoServer</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Stroke>
<CssParameter
name="stroke">#FFFF00</CssParameter>
<CssParameter
name="stroke-width">3</CssParameter>
<CssParameter
name="stroke-opacity">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
On 29/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
So I think what's happening is that it's switching between raster and
vector representations. The KMScore parameter controls when this
changes. If you pass in the param kmscore=0 then you should always get
the raster representation.
There are some advantages to the vector representation, the point/icon
allows us to display more information about your data, and you can
customize the output with a template. I think you can also keep the
description information but turn off the point actually appearing with
kmattr=false
One thing that concerns me is that the line thickness is only one pixel.
What should it be? What's the value in your sld? Google Earth tends
to draw lines a bit more thinly, but if yours should be very thick and
it drops to one pixel then that's a problem.
best regards,
Chris
Travis Kirstine wrote:
Hi all,
Can anyone explain why my styles change when I zoom in in Google Earth
when making a KML request to geoserver. I am loading a outlined only
polygon, everything looks fine until I zoom in to a high scale then by
line thickness drops to one pixel and a point/icon is added to the
center of all the polygons
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4005,4750837d212815409313003!
Sorry, instructions for signing up for account and link to our tracker at: http://docs.codehaus.org/display/GEOSDOC/1+Reporting+Issues
Chris
Chris Holmes wrote:
Cool. Could you submit a bug? You can schedule it against 1.6.0-rc2.
Have it clearly state how we do it now, with the fill color as transparent, what the current output is. And then clearly state what the new KML output should be.
And I guess this is only relevant when a fill color hasn't been defined? So if a fill has been defined in SLD then GeoServer should do what it does now?
Travis Kirstine wrote:
Chris,
In GE it looks as though you can define the width of of a polygon
outline only if the polygon has a null fill. The following kml will
draw polygon with only a outline with a width of 5.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Untitled Polygon.kml</name>
<Placemark>
<name>Untitled Polygon</name>
<Style>
<LineStyle>
<color>ff00aa00</color>
<width>5</width>
</LineStyle>
<PolyStyle>
<color>ff00ff55</color>
<fill>0</fill>
</PolyStyle>
</Style>
<Polygon>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-79.86014819750662,43.25268672100953,0
-79.86043314946076,43.25186722932418,0
-79.8595049811571,43.25164794663589,0
-79.85932222009551,43.25254927174073,0
-79.86014819750662,43.25268672100953,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
I believe that GeoSever renders the fill colour as transparent
resulting in thin outlines.
Thanks
Travis
On 30/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
? I don't think I understand what you're saying? Are you saying
there's a way for us to set the width for a polystyle? Or that it's not
possible?
Travis Kirstine wrote:
Chris,
I have taken a look at the kml output it looks as though google requires the
polystyle fill defined to have the outlines rendered at the correct width.
<PolyStyle>
<color>00aaaaaa</color>
<fill>0</fill>
</PolyStyle>
Travis
On 30/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
Actually, thinking on it, it may be possible that adding a LineStyle to
the KML Style output will make it properly render, as I could see them
having that sort of logic in google earth.
Travis, could you possible take some KML output and add in a LineStyle,
in addition to the PointStyle and PolyStyle that we set for polygon
output, set the width to something large, and see if google earth
renders it different?
If so then we will know that it'll work, and then put an issue in to our
task tracker - http://jira.codehaus.org/browse/GEOS and we'll get it
fixed for you.
best regards,
Chris
Chris Holmes wrote:
That does look pretty thin for a 3 pixel stroke width.
Huh, looking at the KML specification it looks like they give you no way
to control the thickness of the line in a polygon. They do for
linestyle, but not for polygon style. So I guess I'd say this is more a
bug with Google Earth?
So if you want it to look the same all the way down you should just set
the KMScore to 0, and have GeoServer do all the rendering.
Chris
Travis Kirstine wrote:
Chris,
Thanks for your response. I have included my style and a couple
images illustrating the change in line width.
<?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"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>parcel</Name>
<UserStyle>
<Name>parcel</Name>
<Title>geoserver style</Title>
<Abstract>Generated by GeoServer</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Stroke>
<CssParameter
name="stroke">#FFFF00</CssParameter>
<CssParameter
name="stroke-width">3</CssParameter>
<CssParameter
name="stroke-opacity">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
On 29/11/2007, Chris Holmes <cholmes@anonymised.com> wrote:
So I think what's happening is that it's switching between raster and
vector representations. The KMScore parameter controls when this
changes. If you pass in the param kmscore=0 then you should always get
the raster representation.
There are some advantages to the vector representation, the point/icon
allows us to display more information about your data, and you can
customize the output with a template. I think you can also keep the
description information but turn off the point actually appearing with
kmattr=false
One thing that concerns me is that the line thickness is only one pixel.
What should it be? What's the value in your sld? Google Earth tends
to draw lines a bit more thinly, but if yours should be very thick and
it drops to one pixel then that's a problem.
best regards,
Chris
Travis Kirstine wrote:
Hi all,
Can anyone explain why my styles change when I zoom in in Google Earth
when making a KML request to geoserver. I am loading a outlined only
polygon, everything looks fine until I zoom in to a high scale then by
line thickness drops to one pixel and a point/icon is added to the
center of all the polygons
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4005,4750837d212815409313003!