Hello. I decided to try to debug this myself but didn't get very far... So I'm back for help.
After playing around with kmz files manually I learned that .svg files are not supported (At least not supported by google earth pro). So I tried to use a png file instead and got the same result. It works but the icon is not stored in the kmz file. I also simplified the layer style to minimise errors on my part there. The full file is annexed but the important part is, I think, this: <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href=" https://i.ibb.co/nmGm4wj/duck-19415.png" /> <Format>image/png</Format> </ExternalGraphic> <Size>32</Size> </Graphic> </PointSymbolizer> >From what I can tell in the "encodeAsKmz" method "KMLMapResponse" class here <https://github.com/geoserver/geoserver/blob/6ad2b678741ef4bf194db38ef13159e46a0a942c/src/kml/src/main/java/org/geoserver/kml/KMLMapResponse.java#L122> the "embeddedIcons" is always empty... And have haven't even found where the variable "iconStyles" from the "KmlEncodingContext" class is set (This is what "context.getIconStyles()" returns) other than here <https://github.com/geoserver/geoserver/blob/6ad2b678741ef4bf194db38ef13159e46a0a942c/src/kml/src/main/java/org/geoserver/kml/KmlEncodingContext.java#L133> . Thanks. Nil Silva <nil.silva...@gmail.com> escreveu no dia terça, 16/08/2022 à(s) 17:31: > I looked around on jira but didn't find this issue so I guess you're > right. I will open the bug and see what happens. Thank you. > > > > Nil Silva. > > > > *From: *Ian Turton <ijtur...@gmail.com> > *Sent: *16 de agosto de 2022 17:22 > *To: *Nil Silva <nil.silva...@gmail.com> > *Cc: *geoserver-users <geoserver-users@lists.sourceforge.net> > *Subject: *Re: [Geoserver-users] Icons in KMZ outputs > > > > It looks like no one logged the bug,so no one fixed it. > > Ian > > > > On Tue, 16 Aug 2022, 16:12 Nil Silva, <nil.silva...@gmail.com> wrote: > > Exporting to kmz doesn't add the icons to the exported kmz. It just has > the wms.kml file and an empty images folder. The kml file has the image > url. It looks like the same problem from the following mailing list > messages. > > > > https://sourceforge.net/p/geoserver/mailman/message/37133697/ > > > > From the looks of it it seems like a bug. > > Has it not been fixed or is this a problem on my end? > > > > Thanks, > > Nil Silva. > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > >
layer_style.sld
Description: Binary data
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users