[Geoserver-users] Icons in KMZ outputs

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.

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.ei@anonymised.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:

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

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
Sent: 16 de agosto de 2022 17:22
To: Nil Silva
Cc: geoserver-users
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.ei@anonymised.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:

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@anonymised.coms.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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:

image/png 32

From what I can tell in the “encodeAsKmz” method “KMLMapResponse” class here 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.

Thanks.

Nil Silva <nil.silva.ei@anonymised.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
Sent: 16 de agosto de 2022 17:22
To: Nil Silva
Cc: geoserver-users
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.ei@anonymised.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:

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 (1.01 KB)

Hi,

Nil opened the ticket:
https://osgeo-org.atlassian.net/browse/GEOS-10621

Does anyone have any clue for populate the “embeddedIcons”?

Thanks

Tiago

On Mon, 5 Sept 2022 at 16:07, Nil Silva <nil.silva.ei@anonymised.com> wrote:

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:

image/png 32

From what I can tell in the “encodeAsKmz” method “KMLMapResponse” class here 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.

Thanks.

Nil Silva <nil.silva.ei@anonymised.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
Sent: 16 de agosto de 2022 17:22
To: Nil Silva
Cc: geoserver-users
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.ei@anonymised.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:

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


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

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