Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
Thank you really much. Best regards Antonello.
--
Affinché il male trionfi, basta che gli uomini di bene non facciano nulla.
Roberto Saviano.
Antonello Moneta ha scritto:
Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
I don't think so, it should work provided the image is web
accessible from both GeoServer and from Google Earth on the client.
I've just tried with this sld over archsites and it worked:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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"
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>redflag</Name>
<UserStyle>
<Name>burg</Name>
<Title>A small red flag</Title>
<Abstract>A sample of how to use an SVG based symbolizer</Abstract>
<FeatureTypeStyle>
<Rule>
<Title>Red flag</Title>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://gridlock.openplans.org:8080/hudson/static/6b4eb165/images/24x24/search.gif" />
<Format>image/gif</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>16</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi,
have you checked the logfiles?
I tried adapting your SLD section to the burg style, and this worked without any problems (at least on 1.7.4-to-be). I looked through JIRA and couldnt find any related bugs, so I'm inclined to think the problem lies elsewhere.
Is http://xxxxxx/netGeo/prova/kml-16x16.png visible from the server? When you request an image from WMS (demo preview), that PNG will actually be downloaded by GeoServer and rendered on the canvas. However, I dont think the KML generator checks for the existence, since it just generates a link. So maybe you have SLD filters that prevent the symbolizer from being rendered. At least try with one of the included styles and check that the data shows up in the preview.
The change i made to the bug style, to mimic your SLD:
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="burg02.svg" />
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Mark/>
<Size>
15
</Size>
</Graphic>
</PointSymbolizer>
-Arne
Antonello Moneta wrote:
Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
Thank you really much. Best regards Antonello.
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
thank you. With your image is working. Maybe the problem is the image
I use. I will keep the investigation.
Thank you really much!
On Mon, Apr 27, 2009 at 12:05 PM, Andrea Aime <aaime@anonymised.com> wrote:
Antonello Moneta ha scritto:
Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
I don't think so, it should work provided the image is web
accessible from both GeoServer and from Google Earth on the client.
I've just tried with this sld over archsites and it worked:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>redflag</Name>
<UserStyle>
<Name>burg</Name>
<Title>A small red flag</Title>
<Abstract>A sample of how to use an SVG based symbolizer</Abstract>
<FeatureTypeStyle>
<Rule>
<Title>Red flag</Title>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://gridlock.openplans.org:8080/hudson/static/6b4eb165/images/24x24/search.gif"
/>
<Format>image/gif</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>16</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
--
Affinché il male trionfi, basta che gli uomini di bene non facciano nulla.
Roberto Saviano.
On Mon, Apr 27, 2009 at 12:21 PM, Arne Kepp <ak@anonymised.com> wrote:
Hi,
have you checked the logfiles?
I tried adapting your SLD section to the burg style, and this worked without
any problems (at least on 1.7.4-to-be). I looked through JIRA and couldnt
find any related bugs, so I'm inclined to think the problem lies elsewhere.
Is http://xxxxxx/netGeo/prova/kml-16x16.png visible from the server? When
you request an image from WMS (demo preview), that PNG will actually be
downloaded by GeoServer and rendered on the canvas. However, I dont think
the KML generator checks for the existence, since it just generates a link.
So maybe you have SLD filters that prevent the symbolizer from being
rendered. At least try with one of the included styles and check that the
data shows up in the preview.
The change i made to the bug style, to mimic your SLD:
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="burg02.svg" />
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Mark/>
<Size>
15
</Size>
</Graphic>
</PointSymbolizer>
-Arne
Antonello Moneta wrote:
Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
Thank you really much. Best regards Antonello.
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
--
Affinché il male trionfi, basta che gli uomini di bene non facciano nulla.
Roberto Saviano.
Than you Arne, but the problem maybe in the image itself, because
there is no filter and the image is visible. Do you know if there is
any limitation with png, or same image format?
If you want try also I attach the image I used.
Thank your really much for the help.
On Mon, Apr 27, 2009 at 12:21 PM, Arne Kepp <ak@anonymised.com> wrote:
Hi,
have you checked the logfiles?
I tried adapting your SLD section to the burg style, and this worked without
any problems (at least on 1.7.4-to-be). I looked through JIRA and couldnt
find any related bugs, so I'm inclined to think the problem lies elsewhere.
Is http://xxxxxx/netGeo/prova/kml-16x16.png visible from the server? When
you request an image from WMS (demo preview), that PNG will actually be
downloaded by GeoServer and rendered on the canvas. However, I dont think
the KML generator checks for the existence, since it just generates a link.
So maybe you have SLD filters that prevent the symbolizer from being
rendered. At least try with one of the included styles and check that the
data shows up in the preview.
The change i made to the bug style, to mimic your SLD:
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="burg02.svg" />
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Mark/>
<Size>
15
</Size>
</Graphic>
</PointSymbolizer>
-Arne
Antonello Moneta wrote:
Hi, I need to build a online map using geoserver + googlemaps. Because
I need to use also google earth, I decided to use kml/kmz. I tried to
stile my map with external icon:
<Graphic>
<ExternalGraphic>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://xxxxxx/netGeo/prova/kml-16x16.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Mark/>
<Size>15.0</Size>
</Graphic>
But I cannot able to see anything in mapPreview. I examined also the
kml genereted from geoserver and I see tag <IconStyle>(where should be
the href to the icon) is empty:
<Style>
<IconStyle/>
<Point>
<coordinates>13.695106,42.662133</coordinates>
</Point>
Every one have any suggestion, do you know if this feature is
implemented in geoserver v1.7.2. I haven't jai installed could be a
problem ?
Thank you really much. Best regards Antonello.
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
--
Affinché il male trionfi, basta che gli uomini di bene non facciano nulla.
Roberto Saviano.

Antonello Moneta ha scritto:
Than you Arne, but the problem maybe in the image itself, because
there is no filter and the image is visible. Do you know if there is
any limitation with png, or same image format?
If you want try also I attach the image I used.
The image per se is fine. Can you give us the actual url
you used in your sld? It it supposed to be web accessible
anyways.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.