Discussion:
[Geoserver-users] How can a gwc tile support google earth?
Walter Stovall
2017-07-14 18:08:19 UTC
Permalink
I want more than just the image tile. I want the vector feature attribute data too so these are selectable graphics that can show data to the user about the selected item - works fine in google earth when using the kml reflector but that's too slow especially because every little change to the GE view downloads all the layers again OR I turn on superoverlay and avoid a download at every change but still take a huge penalty up-front on the first view.

I'm trying geoserver 2.8 and the embedded GeoWebCache.
I setup a network link in GE with the url...
http://localhost:8080/geoserver/gwc/service/kml/fdot:FiberOpticCable.kml.kmz

Google earth successfully gets back a kmz and then requests tiles from geoserver. Then it shows a red dot in the My Places tree.

The geoserver log shows...
14 Jul 13:50:27 ERROR <http-apr-8080-exec-5> [geowebcache.GeoWebCacheDispatcher] - application/vnd.google-earth.kml+xml is not a supported format for fdot:FiberOpticCable http://localhost:8080/geoserver/gwc/service/kml/fdot%3AFiberOpticCable/x8y10z4.kml.kmz
java.lang.IllegalArgumentException: application/vnd.google-earth.kml+xml is not a supported format for fdot:FiberOpticCable
at org.geoserver.gwc.layer.GeoServerTileLayer.getTile(GeoServerTileLayer.java:491)

Now I see on the demo page where you can seed the layer and select vnd.google-earth.kml+xml format http://docs.geoserver.org/latest/en/user/geowebcache/webadmin/demopage.html.

In my geoserver I get access-denied when I click the link to Seed the layer. I haven't debugged that and may well go there. It would also be great if anybody could tell me if I'm even on the right track for getting what I want.

Thanks in advance for your help!
Walter Stovall
Byers Engineering Company
Jason Newmoyer
2017-07-14 18:50:09 UTC
Permalink
Something looks funny with the URL, should be
/gwc/service/kml/<layer>.png.kml not kml.kmz. Where png is the format you
want to use for the image tiles themselves. So could be jpeg or any other
format that is published for that tiled layer.

The GWC endpoint will give you just image tiles, not features. So you do
need to use the KML Reflector to get those. As for the performance you'll
need to make sure the default KMSCORE is set correctly or that you specify
an appropriate one in your network link. If you can't get features fast
enough then I'd look more at the underlying layer. If its PostGIS do you
have the geometry indexed properly, etc. Is there just too many features
for the zoom level you want? Then adjust SLD.


Jason Newmoyer
Newmoyer Geospatial Solutions
843.606.0424
Post by Walter Stovall
I want more than just the image tile. I want the vector feature attribute
data too so these are selectable graphics that can show data to the user
about the selected item – works fine in google earth when using the kml
reflector but that’s too slow especially because every little change to the
GE view downloads all the layers again OR I turn on superoverlay and avoid
a download at every change but still take a huge penalty up-front on the
first view.
I’m trying geoserver 2.8 and the embedded GeoWebCache.
I setup a network link in GE with the url

http://localhost:8080/geoserver/gwc/service/kml/
fdot:FiberOpticCable.kml.kmz
Google earth successfully gets back a kmz and then requests tiles from
geoserver. Then it shows a red dot in the My Places tree.
The geoserver log shows

14 Jul 13:50:27 ERROR <http-apr-8080-exec-5> [geowebcache.GeoWebCacheDispatcher]
- application/vnd.google-earth.kml+xml is not a supported format for
fdot:FiberOpticCable http://localhost:8080/geoserver/gwc/service/kml/
fdot%3AFiberOpticCable/x8y10z4.kml.kmz
java.lang.IllegalArgumentException: application/vnd.google-earth.kml+xml
is not a supported format for fdot:FiberOpticCable
at org.geoserver.gwc.layer.GeoServerTileLayer.getTile(
GeoServerTileLayer.java:491)
Now I see on the demo page where you can seed the layer and select
vnd.google-earth.kml+xml format http://docs.geoserver.org/
latest/en/user/geowebcache/webadmin/demopage.html.
In my geoserver I get access-denied when I click the link to Seed the
layer. I haven’t debugged that and may well go there. It would also be
great if anybody could tell me if I’m even on the right track for getting
what I want.
Thanks in advance for your help!
Walter Stovall
Byers Engineering Company
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/
userlist-guidelines.html
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Loading...