[Geoserver-users] feature attributes within kml

Hi,

I am successfully serving up some kml through geoserver to Google Earth. One of the layers that I am serving up is a point layer. Is there a way currently to have attributes of the points show up in the info popup when the user clicks on the points in Google Earth? Currently, when the user clicks on the points, a popup appears but it has nothing within it.

If this functionality does not exist, could anyone gives me some tips to start with for implementing something like this?

Thank you in advance for any help,
Scott


Scott Pezanowski

email: scottpez@anonymised.com


Scott Pezanowski wrote:

Hi,

I am successfully serving up some kml through geoserver to Google Earth. One of the layers that I am serving up is a point layer. Is there a way currently to have attributes of the points show up in the info popup when the user clicks on the points in Google Earth? Currently, when the user clicks on the points, a popup appears but it has nothing within it.

Hmmmm... I know this works with polygons - we add an extra point just to do this. Is it working for you on polygons? If it's just not working for points then it should be pretty easy to add.

If this functionality does not exist, could anyone gives me some tips to start with for implementing something like this?

Sure, but just want to make sure that it does work for polygons for you, that it's a general issue.

Chris

Thank you in advance for any help,
Scott

*********************************************
Scott Pezanowski
email: scottpez@anonymised.com *********************************************

!DSPAM:1003,450041f2193607731818748!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

!DSPAM:1003,450041f2193607731818748!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,450041f2193607731818748!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Which version of geoserver are you using?
Try adding the parameter KMATTR=true to the url.

If you are using straight KML (and not KMZ) then you will get the attributes along with the points. If you specify KMATTR=false, you will not get the attributes.
If you are requesting KMZ and the result is large and you get back a raster image, no attributes will be shown.

So it should be working.

Brent Owens
(The Open Planning Project)

Scott Pezanowski wrote:

Hi,

I am successfully serving up some kml through geoserver to Google Earth. One of the layers that I am serving up is a point layer. Is there a way currently to have attributes of the points show up in the info popup when the user clicks on the points in Google Earth? Currently, when the user clicks on the points, a popup appears but it has nothing within it.

If this functionality does not exist, could anyone gives me some tips to start with for implementing something like this?

Thank you in advance for any help,
Scott

*********************************************
Scott Pezanowski
email: scottpez@anonymised.com *********************************************

------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
  

Chris,

Thanks for getting back to me. I have tried a polygon layer and it does not seem to work either. With polygon’s I can not even click on the features to get a popup.

In my previous email, I forgot to mention that I am using Geoserver 1.3.0-PR1.

Thanks,
Scott


Scott Pezanowski

email: scottpez@anonymised.com


From: Chris Holmes

Hi Scott
Upgrading to a newer version should fix the issue. (1.3.1+)

Brent Owens
(The Open Planning Project)

Scott Pezanowski wrote:

Chris,

Thanks for getting back to me. I have tried a polygon layer and it does not seem to work either. With polygon's I can not even click on the features to get a popup.

In my previous email, I forgot to mention that I am using Geoserver 1.3.0-PR1.

Thanks,
Scott

*
*********************************************
Scott Pezanowski email: scottpez@anonymised.com *********************************************
*

    From: Chris Holmes
    To: Scott Pezanowski
    CC: geoserver-users@lists.sourceforge.net,
    geoserver-devel@lists.sourceforge.net
    Subject: Re: [Geoserver-users] feature attributes within kml
    Date: Thu, 07 Sep 2006 12:03:16 -0400

    Scott Pezanowski wrote:
    >Hi,
    >
    >I am successfully serving up some kml through geoserver to Google
    >Earth. One of the layers that I am serving up is a point layer. Is
    >there a way currently to have attributes of the points show up in
    >the info popup when the user clicks on the points in Google Earth?
    >Currently, when the user clicks on the points, a popup appears but
    >it has nothing within it.
    Hmmmm... I know this works with polygons - we add an extra point
    just to do this. Is it working for you on polygons? If it's just
    not working for points then it should be pretty easy to add.

    >
    >If this functionality does not exist, could anyone gives me some
    >tips to start with for implementing something like this?
    Sure, but just want to make sure that it does work for polygons for
    you, that it's a general issue.

    Chris

    >
    >Thank you in advance for any help,
    >Scott
    >
    >*********************************************
    >Scott Pezanowski
    >email: scottpez@anonymised.com
    >*********************************************
    >
    >!DSPAM:1003,450041f2193607731818748!
    >
    >------------------------------------------------------------------------
    >
    >-------------------------------------------------------------------------
    >Using Tomcat but need to do more? Need to support web services,
    >security?
    >Get stuff done quickly with pre-integrated technology to make your
    >job easier
    >Download IBM WebSphere Application Server v.1.0.1 based on Apache
    >Geronimo
    >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
    >
    >!DSPAM:1003,450041f2193607731818748!
    >
    >------------------------------------------------------------------------
    >
    >_______________________________________________
    >Geoserver-users mailing list
    >Geoserver-users@lists.sourceforge.net
    >https://lists.sourceforge.net/lists/listinfo/geoserver-users
    >
    >!DSPAM:1003,450041f2193607731818748!

    --
    Chris Holmes
    The Open Planning Project
    http://topp.openplans.org
    << cholmes.vcf >>

------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
  

Brent and Chris,

Thank you for your help. I will try upgrading geoserver and see if that corrects the problem. I will let you know how it goes.

Thanks,
Scott


Scott Pezanowski

email: scottpez@anonymised.com


From: Brent Owens

Brent and Chris,

Upgrading my geoserver to 1.3.3 solved this problem. Serving up the kml works great now.

Thanks,
Scott


Scott Pezanowski

email: scottpez@anonymised.com


From: Brent Owens

Brent, Chris or others,

Since I upgraded geoserver, I have noticed that point feature symbology is not displayed correctly in google earth (kml). For example, I have some points that are colored red and some that are colored orange in my sld. However, all points only show up in orange in google earth. With geoserver 1.3.0-PR1 (my previous install), the point features were correctly displayed with red and orange point symbols. If I make a regular wms request for the points, they are displayed with the correct colors.

Another thing I would like to do is use sld filters to only display some of the points. However, it seems that all points are displayed instead of the filtered subset.

Am I doing something wrong or should I log these as bugs? My current Geoserver version is 1.3.3.

Thanks,
Scott


Scott Pezanowski

email: scottpez@anonymised.com


From: Brent Owens

hmm
You were able to color the points in previous geoserver versions with
kml? Right now I think it is just the placemark that is returned
because there isn't a symbolizer for points in KML. I will have
another peek at it.
SLD filters are in there and do work, but maybe not in all cases. If
you can send me an SLD as a test case I can take a look into it.

Brent

On 9/12/06, Scott Pezanowski <scottpez@anonymised.com> wrote:

Brent, Chris or others,

Since I upgraded geoserver, I have noticed that point feature symbology is
not displayed correctly in google earth (kml). For example, I have some
points that are colored red and some that are colored orange in my sld.
However, all points only show up in orange in google earth. With geoserver
1.3.0-PR1 (my previous install), the point features were correctly displayed
with red and orange point symbols. If I make a regular wms request for the
points, they are displayed with the correct colors.

Another thing I would like to do is use sld filters to only display some of
the points. However, it seems that all points are displayed instead of the
filtered subset.

Am I doing something wrong or should I log these as bugs? My current
Geoserver version is 1.3.3.

Thanks,
Scott

********************************************* Scott
Pezanowski

email: scottpez@anonymised.com
*********************************************

From: Brent Owens
To: Scott Pezanowski
CC: cholmes@anonymised.com,
geoserver-devel@lists.sourceforge.net,
geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-devel] [Geoserver-users] feature attributes within
kml
Date: Thu, 07 Sep 2006 09:43:08 -0700

Hi Scott
Upgrading to a newer version should fix the issue. (1.3.1+)

Brent Owens
(The Open Planning Project)

Scott Pezanowski wrote:
>Chris,
>
>Thanks for getting back to me. I have tried a polygon layer and it
>does not seem to work either. With polygon's I can not even click
>on the features to get a popup.
>
>In my previous email, I forgot to mention that I am using Geoserver
>1.3.0-PR1.
>
>Thanks,
>Scott
>
>*
>*********************************************
>Scott Pezanowski email: scottpez@anonymised.com
>*********************************************
>*
>
> From: Chris Holmes
> To: Scott Pezanowski
> CC: geoserver-users@lists.sourceforge.net,
> geoserver-devel@lists.sourceforge.net
> Subject: Re: [Geoserver-users] feature attributes within kml
> Date: Thu, 07 Sep 2006 12:03:16 -0400
>
> Scott Pezanowski wrote:
> >Hi,
> >
> >I am successfully serving up some kml through geoserver to
>Google
> >Earth. One of the layers that I am serving up is a point
>layer. Is
> >there a way currently to have attributes of the points show
>up in
> >the info popup when the user clicks on the points in Google
>Earth?
> >Currently, when the user clicks on the points, a popup
>appears but
> >it has nothing within it.
> Hmmmm... I know this works with polygons - we add an extra
>point
> just to do this. Is it working for you on polygons? If it's
>just
> not working for points then it should be pretty easy to add.
>
> >
> >If this functionality does not exist, could anyone gives me
>some
> >tips to start with for implementing something like this?
> Sure, but just want to make sure that it does work for
>polygons for
> you, that it's a general issue.
>
> Chris
>
> >
> >Thank you in advance for any help,
> >Scott
> >
> >*********************************************
> >Scott Pezanowski
> >email: scottpez@anonymised.com
> >*********************************************
> >
> >!DSPAM:1003,450041f2193607731818748!
> >
>
>------------------------------------------------------------------------
> >
>
>-------------------------------------------------------------------------
> >Using Tomcat but need to do more? Need to support web
>services,
> >security?
> >Get stuff done quickly with pre-integrated technology to make
>your
> >job easier
> >Download IBM WebSphere Application Server v.1.0.1 based on
>Apache
> >Geronimo
>
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> >!DSPAM:1003,450041f2193607731818748!
> >
>
>------------------------------------------------------------------------
> >
> >_______________________________________________
> >Geoserver-users mailing list
> >Geoserver-users@lists.sourceforge.net
>
>https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
> >!DSPAM:1003,450041f2193607731818748!
>
> --
> Chris Holmes
> The Open Planning Project
> http://topp.openplans.org
> << cholmes.vcf >>
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services,
>security?
>Get stuff done quickly with pre-integrated technology to make your
>job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache
>Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>------------------------------------------------------------------------
>
>_______________________________________________
>Geoserver-devel mailing list
>Geoserver-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>

Brent,

Thanks for the reply. Below is the sld which I am trying to use. Basically, it’s saying - if imageurl is not null, then symbolize it as an orange circle. This works when I view a wms image request. But when I view it in google earth with kml, it shows all of the points instead of the subset. Please let me know if there is any other info you need.

Also, if my memory serves me correctly, we did have both red and orange kml points (with a different sld then below) in google earth previously. It seeemed to be displaying the colors correctly based upon my sld styles.

Thanks for your help on this,
Scott

<?xml version="1.0" encoding="ISO-8859-1"?>

Scotts Style A boring default style A sample style that just prints out a purple circle Rule 1 OrangeFill 50% transparent red fill with a red outline 1 pixel in width

ogc:Filter
ogc:Not
ogc:PropertyIsEqualTo
ogc:PropertyNameimageurl</ogc:PropertyName>
ogc:Literalnull</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Not>
</ogc:Filter>

circle #FFFA17 1.0 10

Scott Pezanowski

email: scottpez@anonymised.com


From: “Brent Owens”