[Geoserver-users] SLD doesnt work exactly for GoogleEarth-Plugin

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my application. I
made a SLD with PointSymbolizers which have a dynamic size.

<PointSymbolizer>
  <Graphic>
              <Mark>
                       <WellKnownName>circle</WellKnownName>
      <Fill>
        <CssParameter name="fill-opacity">1.0</CssParameter>
        <CssParameter name="fill">#FFFFD4</CssParameter>
      </Fill>
              </Mark>
              <Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
        </Graphic>
</PointSymbolizer>

The size is defined by the field "magnitude" coming from GeoServer (at the
end from PostGIS). In my OpenLayers-application everything works fine. The
points have a different size. However the GoogleEarth-plugin styles the
points with the default point style of GoogleEarth and the color I defined
for different rules. The problem is, that the size is the same for every
point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin
--
View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29523761.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

  Google Earth is a toy that basically renders any symbol as a 32 pixel image and then resizes that as it pleases to make everything fit.

One way to achieve the effect you are after is to create a polygon for each of these points and send these polygons as KML to Google Earth. Those are not clickable, so if you want popups you'll also have to add a transparent PNG or something something similar as a point symbolizer.

-Arne

On 8/24/10 9:23 PM, Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my application. I
made a SLD with PointSymbolizers which have a dynamic size.

<PointSymbolizer>
  <Graphic>
               <Mark>
                        <WellKnownName>circle</WellKnownName>
      <Fill>
        <CssParameter name="fill-opacity">1.0</CssParameter>
        <CssParameter name="fill">#FFFFD4</CssParameter>
      </Fill>
               </Mark>
               <Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
         </Graphic>
</PointSymbolizer>

The size is defined by the field "magnitude" coming from GeoServer (at the
end from PostGIS). In my OpenLayers-application everything works fine. The
points have a different size. However the GoogleEarth-plugin styles the
points with the default point style of GoogleEarth and the color I defined
for different rules. The problem is, that the size is the same for every
point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin

Great! Thank you for the quick response.
How can I get a polygon from only one point? There is a PostGIS-function
makepolygon but I have to have more than one points for that.
Is there another solution?

Martin

Arne Kepp-2 wrote:

One way to achieve the effect you are after is to create a polygon for
each of these points and send these polygons as KML to Google Earth.
Those are not clickable, so if you want popups you'll also have to add a
transparent PNG or something something similar as a point symbolizer.

-Arne

On 8/24/10 9:23 PM, Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my
application. I
made a SLD with PointSymbolizers which have a dynamic size.

<PointSymbolizer>
  <Graphic>
               <Mark>
                        <WellKnownName>circle</WellKnownName>
      <Fill>
        <CssParameter name="fill-opacity">1.0</CssParameter>
        <CssParameter name="fill">#FFFFD4</CssParameter>
      </Fill>
               </Mark>
              
<Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
         </Graphic>
</PointSymbolizer>

The size is defined by the field "magnitude" coming from GeoServer (at
the
end from PostGIS). In my OpenLayers-application everything works fine.
The
points have a different size. However the GoogleEarth-plugin styles the
points with the default point style of GoogleEarth and the color I
defined
for different rules. The problem is, that the size is the same for every
point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29532009.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Buffering a point produces a polygon. In postgis, you’d use “ST_buffer(the_geom, d)”. Replace d with the real-world size you would like the markers to have (they’ll be in world units, so they will resize as you zoom.) You’ll have to do this in the database though; I don’t think SLD geometry transformations work in KML output.

I believe polygons are clickable in recent versions of Google Earth as well, so you may be able to save a bit of work.

-d

On Wed, Aug 25, 2010 at 9:02 AM, Martin.L <hermsdorfer84@anonymised.com> wrote:

Great! Thank you for the quick response.
How can I get a polygon from only one point? There is a PostGIS-function
makepolygon but I have to have more than one points for that.
Is there another solution?

Martin

Arne Kepp-2 wrote:

One way to achieve the effect you are after is to create a polygon for
each of these points and send these polygons as KML to Google Earth.
Those are not clickable, so if you want popups you’ll also have to add a
transparent PNG or something something similar as a point symbolizer.

-Arne

On 8/24/10 9:23 PM, Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my
application. I
made a SLD with PointSymbolizers which have a dynamic size.

circle 1.0 #FFFFD4

ogc:PropertyNamemagnitude</ogc:PropertyName>

The size is defined by the field “magnitude” coming from GeoServer (at
the
end from PostGIS). In my OpenLayers-application everything works fine.
The
points have a different size. However the GoogleEarth-plugin styles the
points with the default point style of GoogleEarth and the color I
defined
for different rules. The problem is, that the size is the same for every
point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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


View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29532009.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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

Wow! I knew about these function but I can't believe that GoogleEarth
visualize the buffers. Thank you very much @ all.
One question again. The buffered region is white. How can I colour them like
the points in my Mappingapplication? The SLD only colours the points
(centroid of the buffer).

Martin

David Winslow-5 wrote:

Buffering a point produces a polygon. In postgis, you'd use
"ST_buffer(the_geom, d)". Replace d with the real-world size you would
like the markers to have (they'll be in world units, so they will resize
as
you zoom.) You'll have to do this in the database though; I don't think
SLD
geometry transformations work in KML output.

On Wed, Aug 25, 2010 at 9:02 AM, Martin.L <hermsdorfer84@anonymised.com> wrote:

Great! Thank you for the quick response.
How can I get a polygon from only one point? There is a PostGIS-function
makepolygon but I have to have more than one points for that.
Is there another solution?

Martin

Arne Kepp-2 wrote:
>
> One way to achieve the effect you are after is to create a polygon for
> each of these points and send these polygons as KML to Google Earth.
> Those are not clickable, so if you want popups you'll also have to add
a
> transparent PNG or something something similar as a point symbolizer.
>
> -Arne
>
> On 8/24/10 9:23 PM, Martin.L wrote:
>> Hi @ all!
>>
>> I have a problem with my SLD and the GoogleEarth-Plugin in my
>> application. I
>> made a SLD with PointSymbolizers which have a dynamic size.
>>
>> <PointSymbolizer>
>> <Graphic>
>> <Mark>
>> <WellKnownName>circle</WellKnownName>
>> <Fill>
>> <CssParameter
name="fill-opacity">1.0</CssParameter>
>> <CssParameter
name="fill">#FFFFD4</CssParameter>
>> </Fill>
>> </Mark>
>>
>> <Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
>> </Graphic>
>> </PointSymbolizer>
>>
>> The size is defined by the field "magnitude" coming from GeoServer (at
>> the
>> end from PostGIS). In my OpenLayers-application everything works fine.
>> The
>> points have a different size. However the GoogleEarth-plugin styles
the
>> points with the default point style of GoogleEarth and the color I
>> defined
>> for different rules. The problem is, that the size is the same for
every
>> point.
>>
>> Does anyone have a solution for this problem? I appreciate any help.
>> Thanks in advance
>> Martin
>
>
>
------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook
users
> worldwide. Take advantage of special opportunities to increase revenue
and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>

--
View this message in context:
http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29532009.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue
and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29533729.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Add a with the appropriate fill color to your SLD.


David Winslow
OpenGeo - http://opengeo.org/

On Wed, Aug 25, 2010 at 11:38 AM, Martin.L <hermsdorfer84@anonymised.com> wrote:

Wow! I knew about these function but I can’t believe that GoogleEarth
visualize the buffers. Thank you very much @ all.
One question again. The buffered region is white. How can I colour them like
the points in my Mappingapplication? The SLD only colours the points
(centroid of the buffer).

Martin

David Winslow-5 wrote:

Buffering a point produces a polygon. In postgis, you’d use
“ST_buffer(the_geom, d)”. Replace d with the real-world size you would
like the markers to have (they’ll be in world units, so they will resize
as
you zoom.) You’ll have to do this in the database though; I don’t think
SLD
geometry transformations work in KML output.

On Wed, Aug 25, 2010 at 9:02 AM, Martin.L <hermsdorfer84@anonymised.com.157…> wrote:

Great! Thank you for the quick response.
How can I get a polygon from only one point? There is a PostGIS-function
makepolygon but I have to have more than one points for that.
Is there another solution?

Martin

Arne Kepp-2 wrote:

One way to achieve the effect you are after is to create a polygon for
each of these points and send these polygons as KML to Google Earth.
Those are not clickable, so if you want popups you’ll also have to add
a
transparent PNG or something something similar as a point symbolizer.

-Arne

On 8/24/10 9:23 PM, Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my
application. I
made a SLD with PointSymbolizers which have a dynamic size.

circle <CssParameter

name=“fill-opacity”>1.0

#FFFFD4

ogc:PropertyNamemagnitude</ogc:PropertyName>

The size is defined by the field “magnitude” coming from GeoServer (at
the
end from PostGIS). In my OpenLayers-application everything works fine.
The
points have a different size. However the GoogleEarth-plugin styles
the
points with the default point style of GoogleEarth and the color I
defined
for different rules. The problem is, that the size is the same for
every
point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook
users
worldwide. Take advantage of special opportunities to increase revenue
and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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


View this message in context:
http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29532009.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue
and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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

View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29533729.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


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

Hi Martin,

If you are displaying KML as vector then colour is the only thing that Google Earth will use from your SLD. It is vector data after all. It may be useful for you to look at forcing Raster data from geoserver instead by setting a different KMSCORE, so check the docs for info (trunk docs are down at the moment so check http://docs.geoserver.org/2.0.1/user/googleearth/features/kmlscoring.html)

Regards,

Miles

Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my
application. I made a SLD with PointSymbolizers which have a dynamic
size.

<PointSymbolizer>
        <Graphic>
              <Mark>
                       <WellKnownName>circle</WellKnownName>
                        <Fill>
                                <CssParameter name="fill-
                                opacity">1.0</CssParameter> <CssParameter
name="fill">#FFFFD4</CssParameter>
                        </Fill>
              </Mark>
<Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
        </Graphic>
</PointSymbolizer>

The size is defined by the field "magnitude" coming from GeoServer (at
the end from PostGIS). In my OpenLayers-application everything works
fine. The points have a different size. However the GoogleEarth-plugin
styles the points with the default point style of GoogleEarth and the
color I defined for different rules. The problem is, that the size is
the same for every point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

Sorry for the late response. The PolygonSymbolizer does what I want.

Thank you again.
Martin

David Winslow-5 wrote:

Add a <PolygonSymbolizer> with the appropriate fill color to your SLD.

--
View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29571835.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Thanks for another solution. The idea to store the geometry with the buffer
works fine for me but I will take a look on kmlscoring. Perhaps its a more
elegant way.

Regards
Martin

Miles Jordan wrote:

Hi Martin,

If you are displaying KML as vector then colour is the only thing that
Google Earth will use from your SLD. It is vector data after all. It may
be useful for you to look at forcing Raster data from geoserver instead by
setting a different KMSCORE, so check the docs for info (trunk docs are
down at the moment so check
http://docs.geoserver.org/2.0.1/user/googleearth/features/kmlscoring.html)

Regards,

Miles

Martin.L wrote:

Hi @ all!

I have a problem with my SLD and the GoogleEarth-Plugin in my
application. I made a SLD with PointSymbolizers which have a dynamic
size.

<PointSymbolizer>
        <Graphic>
              <Mark>
                       <WellKnownName>circle</WellKnownName>
                        <Fill>
                                <CssParameter name="fill-
                                opacity">1.0</CssParameter> <CssParameter
name="fill">#FFFFD4</CssParameter>
                        </Fill>
              </Mark>
<Size><ogc:PropertyName>magnitude</ogc:PropertyName></Size>
        </Graphic>
</PointSymbolizer>

The size is defined by the field "magnitude" coming from GeoServer (at
the end from PostGIS). In my OpenLayers-application everything works
fine. The points have a different size. However the GoogleEarth-plugin
styles the points with the default point style of GoogleEarth and the
color I defined for different rules. The problem is, that the size is
the same for every point.

Does anyone have a solution for this problem? I appreciate any help.
Thanks in advance
Martin

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you
are not the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this
transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3
6232 3209 begin_of_the_skype_highlighting +61 3 6232
3209 end_of_the_skype_highlighting and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://old.nabble.com/SLD-doesnt-work-exactly-for-GoogleEarth-Plugin-tp29523761p29571899.html
Sent from the GeoServer - User mailing list archive at Nabble.com.