[Geoserver-users] How to show sparkling points in my map?

Hi,

I have succeed, and the <blinkSample.htm> is the source. It is just a simple demo without thinking about efficiency for clear. I think I will load the layers with Ajax in fact.

And I have another question, that is the getUrlSld method in the htm file, if I use this method instead of getUrl, the server gives the following error message: XML document structures must start and end within the same entity. So I had to use the getUrl method with SLD file.

Can you help me again?

Thanks in advance!

Youni.

From: Brent Owens <brentowens@anonymised.com>
To: ÓÆ ÄÝ <youni_9@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to show sparkling points in my map?
Date: Mon, 06 Nov 2006 22:21:45 -0800

Actually that sounds like a reasonable way to do it, and it should run
fairly smooth.
If you get it working, we would love to see it and maybe document your
experience.

cheers,

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:
> Thank you very much! I will try the method.
>
> Otherwise, I think there is another solution can be expected, that is
> get another picture by WMS request, and have only those specific
> points on it with another style, then show it in an <img>, and put the
> <img> into a <div> with the biggest z-index value, and control the
> layer's visibility between visible and hidden again and again.
>
> But I don't know how about the efficiency. I will have a try too, and
> compare with the first sulution.
>
>> From: Brent Owens <brentowens@anonymised.com>
>> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> CC: geoserver-users@lists.sourceforge.net
>> Subject: Re: [Geoserver-users] How to show sparkling points in my map?
>> Date: Mon, 06 Nov 2006 07:58:10 -0800
>>
>> One thing you could do, is if you are making a web application (in
>> javascript for example), you could perform a WFS request for those
>> specific points that you want to sparkle, then you just get the
>> coordinates of them and convert the coordinates to screen coordinates
>> and render the GIF image over those points.
>> Not an easy task, but probably easier than changing the renderer.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> ÓÆ ÄÝ wrote:
>> > Hi,
>> >
>> > I Would like to show some sparkling points in my map, because I want
>> > to stand out these points. But the map got by GetMap request with

GIF

>> > format couldn't sparkle, though I used a Gif picture in my
>> > PointSymbolizer.
>> >
>> > Could anyone help me?
>> >
>> > Thanks in advance!
>> >
>> > Youni.
>> >
>> > _________________________________________________________________
>> > ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.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-users mailing list
>> > Geoserver-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >
>
> _________________________________________________________________
> Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
>

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn

blinkSample.htm (4.37 KB)

poi_blink.sld (1.54 KB)

I think in your request, if you are using SLDBODY, you do not need the
'layers=' or 'styles=' parameters. The other thing that might be causing
a problem is the '#' symbol, try using %23 instead. As for that, I don't
see any other characters that might cause an issue.
Tell me if it works or not.
Good luck.

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:

Hi,

I have succeed, and the <blinkSample.htm> is the source. It is just a
simple demo without thinking about efficiency for clear. I think I
will load the layers with Ajax in fact.

And I have another question, that is the getUrlSld method in the htm
file, if I use this method instead of getUrl, the server gives the
following error message: XML document structures must start and end
within the same entity. So I had to use the getUrl method with SLD file.

Can you help me again?

Thanks in advance!

Youni.

From: Brent Owens <brentowens@anonymised.com>
To: ÓÆ ÄÝ <youni_9@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to show sparkling points in my map?
Date: Mon, 06 Nov 2006 22:21:45 -0800

Actually that sounds like a reasonable way to do it, and it should run
fairly smooth.
If you get it working, we would love to see it and maybe document your
experience.

cheers,

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:
> Thank you very much! I will try the method.
>
> Otherwise, I think there is another solution can be expected, that is
> get another picture by WMS request, and have only those specific
> points on it with another style, then show it in an <img>, and put the
> <img> into a <div> with the biggest z-index value, and control the
> layer's visibility between visible and hidden again and again.
>
> But I don't know how about the efficiency. I will have a try too, and
> compare with the first sulution.
>
>
>> From: Brent Owens <brentowens@anonymised.com>
>> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> CC: geoserver-users@lists.sourceforge.net
>> Subject: Re: [Geoserver-users] How to show sparkling points in my
map?
>> Date: Mon, 06 Nov 2006 07:58:10 -0800
>>
>> One thing you could do, is if you are making a web application (in
>> javascript for example), you could perform a WFS request for those
>> specific points that you want to sparkle, then you just get the
>> coordinates of them and convert the coordinates to screen coordinates
>> and render the GIF image over those points.
>> Not an easy task, but probably easier than changing the renderer.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>>
>>
>> ÓÆ ÄÝ wrote:
>> > Hi,
>> >
>> > I Would like to show some sparkling points in my map, because I
want
>> > to stand out these points. But the map got by GetMap request with

GIF

>> > format couldn't sparkle, though I used a Gif picture in my
>> > PointSymbolizer.
>> >
>> > Could anyone help me?
>> >
>> > Thanks in advance!
>> >
>> > Youni.
>> >
>> > _________________________________________________________________
>> > ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.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-users mailing list
>> > Geoserver-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >
>
> _________________________________________________________________
> Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
>

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
------------------------------------------------------------------------

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

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<NamedLayer> <Name> poi </Name>
    <UserStyle>
        
        <FeatureTypeStyle>

            <Rule>
    
      <Name>blinking</Name>

      <Filter>
                <Or>
                  <PropertyIsEqualTo>
                    <PropertyName>NAME</PropertyName>
                    <Literal>art</Literal>
                  </PropertyIsEqualTo>
                  <PropertyIsEqualTo>
                    <PropertyName>NAME</PropertyName>
                    <Literal>church</Literal>
                  </PropertyIsEqualTo>
                  <PropertyIsEqualTo>
                    <PropertyName>NAME</PropertyName>
                    <Literal>fire</Literal>
                  </PropertyIsEqualTo>
                </Or>
      </Filter>

      <PointSymbolizer>
        <Graphic>
      <Mark>
          <WellKnownName>circle</WellKnownName>
          <Fill>
        <CssParameter name="fill">#FF0000</CssParameter>
        <CssParameter name="fill-opacity">1.0</CssParameter>
          </Fill>
      </Mark>
      <Size>11</Size>
        </Graphic>

    </PointSymbolizer>
    
            </Rule>
            
        </FeatureTypeStyle>
    </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

You are right, thank you! :slight_smile:
And yesterday, Frank told me that use 0x (Zero x) instead, it works too.

Youni.

From: Brent Owens <brentowens@anonymised.com>
To: ÓÆ ÄÝ <youni_9@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to show sparkling points in my map?
Date: Thu, 09 Nov 2006 08:19:53 -0800

I think in your request, if you are using SLDBODY, you do not need the
'layers=' or 'styles=' parameters. The other thing that might be causing
a problem is the '#' symbol, try using %23 instead. As for that, I don't
see any other characters that might cause an issue.
Tell me if it works or not.
Good luck.

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:
> Hi,
>
> I have succeed, and the <blinkSample.htm> is the source. It is just a
> simple demo without thinking about efficiency for clear. I think I
> will load the layers with Ajax in fact.
>
> And I have another question, that is the getUrlSld method in the htm
> file, if I use this method instead of getUrl, the server gives the
> following error message: XML document structures must start and end
> within the same entity. So I had to use the getUrl method with SLD

file.

>
> Can you help me again?
>
> Thanks in advance!
>
> Youni.
>
>> From: Brent Owens <brentowens@anonymised.com>
>> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> CC: geoserver-users@lists.sourceforge.net
>> Subject: Re: [Geoserver-users] How to show sparkling points in my map?
>> Date: Mon, 06 Nov 2006 22:21:45 -0800
>>
>> Actually that sounds like a reasonable way to do it, and it should run
>> fairly smooth.
>> If you get it working, we would love to see it and maybe document your
>> experience.
>>
>> cheers,
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> ÓÆ ÄÝ wrote:
>> > Thank you very much! I will try the method.
>> >
>> > Otherwise, I think there is another solution can be expected, that

is

>> > get another picture by WMS request, and have only those specific
>> > points on it with another style, then show it in an <img>, and put

the

>> > <img> into a <div> with the biggest z-index value, and control the
>> > layer's visibility between visible and hidden again and again.
>> >
>> > But I don't know how about the efficiency. I will have a try too,

and

>> > compare with the first sulution.
>> >
>> >> From: Brent Owens <brentowens@anonymised.com>
>> >> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> >> CC: geoserver-users@lists.sourceforge.net
>> >> Subject: Re: [Geoserver-users] How to show sparkling points in my
>> map?
>> >> Date: Mon, 06 Nov 2006 07:58:10 -0800
>> >>
>> >> One thing you could do, is if you are making a web application (in
>> >> javascript for example), you could perform a WFS request for those
>> >> specific points that you want to sparkle, then you just get the
>> >> coordinates of them and convert the coordinates to screen

coordinates

>> >> and render the GIF image over those points.
>> >> Not an easy task, but probably easier than changing the renderer.
>> >>
>> >> Brent Owens
>> >> (The Open Planning Project)
>> >>
>> >> ÓÆ ÄÝ wrote:
>> >> > Hi,
>> >> >
>> >> > I Would like to show some sparkling points in my map, because I
>> want
>> >> > to stand out these points. But the map got by GetMap request with
> GIF
>> >> > format couldn't sparkle, though I used a Gif picture in my
>> >> > PointSymbolizer.
>> >> >
>> >> > Could anyone help me?
>> >> >
>> >> > Thanks in advance!
>> >> >
>> >> > Youni.
>> >> >
>> >> > _________________________________________________________________
>> >> > ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£

http://www.hotmail.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-users mailing list
>> >> > Geoserver-users@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >> >
>> >
>> > _________________________________________________________________
>> > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
>> >
>
> _________________________________________________________________
> ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
>

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

>
>

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

>
> <?xml version="1.0" encoding="UTF-8"?>
> <StyledLayerDescriptor version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/sld

StyledLayerDescriptor.xsd"

> xmlns="http://www.opengis.net/sld&quot;

xmlns:ogc="http://www.opengis.net/ogc&quot;

> xmlns:xlink="http://www.w3.org/1999/xlink&quot;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
> <NamedLayer> <Name> poi </Name>
> <UserStyle>
>
> <FeatureTypeStyle>
>
> <Rule>
>
> <Name>blinking</Name>
>
> <Filter>
> <Or>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>art</Literal>
> </PropertyIsEqualTo>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>church</Literal>
> </PropertyIsEqualTo>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>fire</Literal>
> </PropertyIsEqualTo>
> </Or>
> </Filter>
>
> <PointSymbolizer>
> <Graphic>
> <Mark>
> <WellKnownName>circle</WellKnownName>
> <Fill>
> <CssParameter name="fill">#FF0000</CssParameter>
> <CssParameter name="fill-opacity">1.0</CssParameter>
> </Fill>
> </Mark>
> <Size>11</Size>
> </Graphic>
>
> </PointSymbolizer>
>
> </Rule>
>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
>

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/

Glad to hear it is working Youni.

cheers,

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:

You are right, thank you! :slight_smile:
And yesterday, Frank told me that use 0x (Zero x) instead, it works too.

Youni.

From: Brent Owens <brentowens@anonymised.com>
To: ÓÆ ÄÝ <youni_9@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to show sparkling points in my map?
Date: Thu, 09 Nov 2006 08:19:53 -0800

I think in your request, if you are using SLDBODY, you do not need the
'layers=' or 'styles=' parameters. The other thing that might be causing
a problem is the '#' symbol, try using %23 instead. As for that, I don't
see any other characters that might cause an issue.
Tell me if it works or not.
Good luck.

Brent Owens
(The Open Planning Project)

ÓÆ ÄÝ wrote:
> Hi,
>
> I have succeed, and the <blinkSample.htm> is the source. It is just a
> simple demo without thinking about efficiency for clear. I think I
> will load the layers with Ajax in fact.
>
> And I have another question, that is the getUrlSld method in the htm
> file, if I use this method instead of getUrl, the server gives the
> following error message: XML document structures must start and end
> within the same entity. So I had to use the getUrl method with SLD

file.

>
> Can you help me again?
>
> Thanks in advance!
>
> Youni.
>
>
>
>
>> From: Brent Owens <brentowens@anonymised.com>
>> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> CC: geoserver-users@lists.sourceforge.net
>> Subject: Re: [Geoserver-users] How to show sparkling points in my
map?
>> Date: Mon, 06 Nov 2006 22:21:45 -0800
>>
>> Actually that sounds like a reasonable way to do it, and it should
run
>> fairly smooth.
>> If you get it working, we would love to see it and maybe document
your
>> experience.
>>
>> cheers,
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>>
>>
>> ÓÆ ÄÝ wrote:
>> > Thank you very much! I will try the method.
>> >
>> > Otherwise, I think there is another solution can be expected, that

is

>> > get another picture by WMS request, and have only those specific
>> > points on it with another style, then show it in an <img>, and put

the

>> > <img> into a <div> with the biggest z-index value, and control the
>> > layer's visibility between visible and hidden again and again.
>> >
>> > But I don't know how about the efficiency. I will have a try too,

and

>> > compare with the first sulution.
>> >
>> >
>> >> From: Brent Owens <brentowens@anonymised.com>
>> >> To: ÓÆ ÄÝ <youni_9@anonymised.com>
>> >> CC: geoserver-users@lists.sourceforge.net
>> >> Subject: Re: [Geoserver-users] How to show sparkling points in my
>> map?
>> >> Date: Mon, 06 Nov 2006 07:58:10 -0800
>> >>
>> >> One thing you could do, is if you are making a web application (in
>> >> javascript for example), you could perform a WFS request for those
>> >> specific points that you want to sparkle, then you just get the
>> >> coordinates of them and convert the coordinates to screen

coordinates

>> >> and render the GIF image over those points.
>> >> Not an easy task, but probably easier than changing the renderer.
>> >>
>> >> Brent Owens
>> >> (The Open Planning Project)
>> >>
>> >>
>> >>
>> >> ÓÆ ÄÝ wrote:
>> >> > Hi,
>> >> >
>> >> > I Would like to show some sparkling points in my map, because I
>> want
>> >> > to stand out these points. But the map got by GetMap request
with
> GIF
>> >> > format couldn't sparkle, though I used a Gif picture in my
>> >> > PointSymbolizer.
>> >> >
>> >> > Could anyone help me?
>> >> >
>> >> > Thanks in advance!
>> >> >
>> >> > Youni.
>> >> >
>> >> >
_________________________________________________________________
>> >> > ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£

http://www.hotmail.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-users mailing list
>> >> > Geoserver-users@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >> >
>> >
>> > _________________________________________________________________
>> > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
>> >
>
> _________________________________________________________________
> ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:
http://messenger.msn.com/cn
>

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

>
>

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

>
> <?xml version="1.0" encoding="UTF-8"?>
> <StyledLayerDescriptor version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/sld

StyledLayerDescriptor.xsd"

> xmlns="http://www.opengis.net/sld&quot;

xmlns:ogc="http://www.opengis.net/ogc&quot;

> xmlns:xlink="http://www.w3.org/1999/xlink&quot;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
> <NamedLayer> <Name> poi </Name>
> <UserStyle>
>
>
> <FeatureTypeStyle>
>
>
> <Rule>
>
>
> <Name>blinking</Name>
>
>
> <Filter>
> <Or>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>art</Literal>
> </PropertyIsEqualTo>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>church</Literal>
> </PropertyIsEqualTo>
> <PropertyIsEqualTo>
> <PropertyName>NAME</PropertyName>
> <Literal>fire</Literal>
> </PropertyIsEqualTo>
> </Or>
> </Filter>
>
>
> <PointSymbolizer>
> <Graphic>
> <Mark>
> <WellKnownName>circle</WellKnownName>
> <Fill>
> <CssParameter name="fill">#FF0000</CssParameter>
> <CssParameter name="fill-opacity">1.0</CssParameter>
> </Fill>
> </Mark>
> <Size>11</Size>
> </Graphic>
>
> </PointSymbolizer>
>
>
> </Rule>
>
>
>
>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
>
>

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/