I’ve noticed that the nice GWC stuff ( the demos, seeding etc ) does not work if the jetty port is not 8080. We had to change ports since GeoNetwork also likes 8080 to avoid a conflict, and noticed this.
Get all sorts of horrible errors, and nothing works. As soon as I changed back to 8080, everything was fine.
Is there a way to make this work?
Thanks, Roger
Roger Bedell wrote:
I've noticed that the nice GWC stuff ( the demos, seeding etc ) does not work if the jetty port is not 8080. We had to change ports since GeoNetwork also likes 8080 to avoid a conflict, and noticed this.
Get all sorts of horrible errors, and nothing works. As soon as I changed back to 8080, everything was fine.
Is there a way to make this work?
Thanks, Roger
Hi,
See http://geoserver.org/display/GEOSDOC/GeoWebCache , try setting GEOSERVER_WMS_URL ?
(We'll try to have a proper documentation section for GWC for 1.7.2 , if not on the release date, then shortly thereafter )
-Arne
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Unfortunately I don't have time to test that right now, I'm currently seeding the cache with your awesome seed tool! I'm totally impressed! Everything works just fine in Google Earth and I just switched GeoNetwork to another port using this hint from Heikki:
http://n2.nabble.com/Download-Data-td2014747.html
Which hopefully solves the problem of GeoNetwork working only with 8080. (Why is 8080 so popular?)
Roger
--------------------------------------------------
From: "Arne Kepp" <ak@anonymised.com>
Sent: Thursday, January 15, 2009 8:02 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] GeoWebCache, 1.7.1 and port 8080
Roger Bedell wrote:
I've noticed that the nice GWC stuff ( the demos, seeding etc ) does not work if the jetty port is not 8080. We had to change ports since GeoNetwork also likes 8080 to avoid a conflict, and noticed this.
Get all sorts of horrible errors, and nothing works. As soon as I changed back to 8080, everything was fine.
Is there a way to make this work?
Thanks, Roger
Hi,
See http://geoserver.org/display/GEOSDOC/GeoWebCache , try setting GEOSERVER_WMS_URL ?
(We'll try to have a proper documentation section for GWC for 1.7.2 , if not on the release date, then shortly thereafter )
-Arne
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Roger Bedell wrote:
Unfortunately I don't have time to test that right now, I'm currently seeding the cache with your awesome seed tool! I'm totally impressed!
Glad you like it
Much better things will hopefully follow.
Which hopefully solves the problem of GeoNetwork working only with 8080. (Why is 8080 so popular?)
HTTP is 80, so 8080 is easy to remember and many corporate firewalls are configured to allow it by default, while blocking most other ports. Since it's above 1024 you don't have to be root to claim it on Unix clones (I don't think Windows has such restrictions, but I could be wrong).
-Arne
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
All-
I am using GeoServer 1.7 and attempting to retrieve KML from the WMS for
viewing in Google Earth. My polygon data renders only as center points
rather than boundaries. The SLD is as follows:
<?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">
<NamedLayer>
<Name>Borough Polygons</Name>
<UserStyle>
<Title>Borough Polygons</Title>
<Abstract>Simple gray outline for Borough</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#969696</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
I am also having some issues with point symbols. If I use a graphic it
does not work unless I specify the full path to the image file.
Relative urls do not work and icons in Google Earth appear very large
and get smaller as you zoom in. 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"
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>Ferry icon</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<!-- this works -->
<OnlineResource xlink:type="simple"
xlink:href="http://localhost:8088/geoserver/styles/mapIcons/Ferry.gif"/>
<!-- this does not work
<OnlineResource xlink:type="simple"
xlink:href="mapIcons/Ferry.gif"/>
-->
<Format>image/gif</Format>
</ExternalGraphic>
<Size><ogc:Literal>15</ogc:Literal></Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Thanks
Tim Keane
City of New York
Department of Information Technology and Telecommunications
Lead Architect - City-wide GIS
Hi Tim,
I applied your style to the topp:states layer and as far as I can tell it worked fine, producing a grey-black outline of the states layer when I used the KML reflector (click KML link on demo page). If your problem persists, is there any way I could get my hands on the data that is not rendering as expected ?
We add the center points when no point symbolizers have been defined in the SLD. The reason is that Google Earth cannot display a description popups unless there is a point for the user to click on, polygons and lines do not currently have this functionality.
The reason you need absolute URLs to the images is that the KML viewer does not always know the source URL. When you click on a link and say "Open with Google Earth", the web browser actually saves the KML file to a temporary directory, then tells Google Earth to open it. Any relative URLs in the KML will be interpreted as relative to that temporary directory. Admittedly that is not the case when using super overlays, but this is one of the reasons for the current restriction.
Hope this helps,
-Arne
Keane, Tim wrote:
All-
I am using GeoServer 1.7 and attempting to retrieve KML from the WMS for
viewing in Google Earth. My polygon data renders only as center points
rather than boundaries. The SLD is as follows:
<?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">
<NamedLayer>
<Name>Borough Polygons</Name>
<UserStyle>
<Title>Borough Polygons</Title>
<Abstract>Simple gray outline for Borough</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#969696</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
I am also having some issues with point symbols. If I use a graphic it
does not work unless I specify the full path to the image file.
Relative urls do not work and icons in Google Earth appear very large
and get smaller as you zoom in. 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"
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>Ferry icon</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<!-- this works -->
<OnlineResource xlink:type="simple"
xlink:href="http://localhost:8088/geoserver/styles/mapIcons/Ferry.gif"/>
<!-- this does not work
<OnlineResource xlink:type="simple"
xlink:href="mapIcons/Ferry.gif"/> -->
<Format>image/gif</Format>
</ExternalGraphic>
<Size><ogc:Literal>15</ogc:Literal></Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Thanks
Tim Keane
City of New York
Department of Information Technology and Telecommunications
Lead Architect - City-wide GIS
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Hi again,
I don't actually have Oracle installed, I'll see whether there is anyone else who has it handy. Does the layer render properly if you just open it with the openlayers client on the demo page ?
Strange scaling - you mean that the points get smaller as you zoom in?
I think this is generally true of all KML placemarks in Google Earth, even if you look at the points included by default that represent cities. I looked for documentation, but didn't find any. My guess is that they may have done it to reduce the problem of having the placemark cover up the actual area of interest, but that's just speculation. Anyone know?
-Arne
Keane, Tim wrote:
Arne-
Thanks for the response. I have attached a SQL script that can create
the BOROUGH data in oracle. Do you know why the image graphics seem to
scale in a strange manner on my point data?
Thanks
-Tim
-----Original Message-----
From: Arne Kepp [mailto:ak@anonymised.com] Sent: Friday, January 16, 2009 6:27 AM
To: Keane, Tim
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] KML rendering in Google Earth
Hi Tim,
I applied your style to the topp:states layer and as far as I can tell it worked fine, producing a grey-black outline of the states layer when I used the KML reflector (click KML link on demo page). If your problem persists, is there any way I could get my hands on the data that is not rendering as expected ?
We add the center points when no point symbolizers have been defined in the SLD. The reason is that Google Earth cannot display a description popups unless there is a point for the user to click on, polygons and lines do not currently have this functionality.
The reason you need absolute URLs to the images is that the KML viewer does not always know the source URL. When you click on a link and say "Open with Google Earth", the web browser actually saves the KML file to
a temporary directory, then tells Google Earth to open it. Any relative URLs in the KML will be interpreted as relative to that temporary directory. Admittedly that is not the case when using super overlays, but this is one of the reasons for the current restriction.
Hope this helps,
-Arne
Keane, Tim wrote:
All-
I am using GeoServer 1.7 and attempting to retrieve KML from the WMS
for
viewing in Google Earth. My polygon data renders only as center
points
rather than boundaries. The SLD is as follows:
<?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">
<NamedLayer>
<Name>Borough Polygons</Name>
<UserStyle>
<Title>Borough Polygons</Title>
<Abstract>Simple gray outline for Borough</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#969696</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
I am also having some issues with point symbols. If I use a graphic
it
does not work unless I specify the full path to the image file.
Relative urls do not work and icons in Google Earth appear very large
and get smaller as you zoom in. 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"
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>Ferry icon</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<!-- this works -->
<OnlineResource xlink:type="simple"
xlink:href="http://localhost:8088/geoserver/styles/mapIcons/Ferry.gif"/>
<!-- this does not work
<OnlineResource xlink:type="simple"
xlink:href="mapIcons/Ferry.gif"/> -->
<Format>image/gif</Format>
</ExternalGraphic>
<Size><ogc:Literal>15</ogc:Literal></Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Thanks
Tim Keane
City of New York
Department of Information Technology and Telecommunications
Lead Architect - City-wide GIS
------------------------------------------------------------------------
------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers