[Geoserver-users] How to include WMS layer?

Hi,
How to include WMS layer as base layer in my layer group?

Thanks,
Madhuri
--
View this message in context: http://old.nabble.com/How-to-include-WMS-layer--tp30296394p30296394.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Madhuri,
I guess you are referring to WMS cascading.
That is available only on 2.1.x aka trunk. You can grab a nightly
build and test it.

Ciao,
Simone.
-------------------------------------------------------

Notice that our office phone number has recently changed!
Please, update your records!

Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

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

On Wed, Nov 24, 2010 at 1:33 PM, Madhuri k <life.madhuri@anonymised.com> wrote:

Hi,
How to include WMS layer as base layer in my layer group?

Thanks,
Madhuri
--
View this message in context: http://old.nabble.com/How-to-include-WMS-layer--tp30296394p30296394.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Ciao,
Thanks for replying.
I have developed map for a city. I want to add world map as a base layer to
the map I have developed. how can I do this?

Thanks,
Madhuri

Simone Giannecchini wrote:

Ciao Madhuri,
I guess you are referring to WMS cascading.
That is available only on 2.1.x aka trunk. You can grab a nightly
build and test it.

Ciao,
Simone.
-------------------------------------------------------

Notice that our office phone number has recently changed!
Please, update your records!

Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

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

On Wed, Nov 24, 2010 at 1:33 PM, Madhuri k <life.madhuri@anonymised.com> wrote:

Hi,
How to include WMS layer as base layer in my layer group?

Thanks,
Madhuri
--
View this message in context:
http://old.nabble.com/How-to-include-WMS-layer--tp30296394p30296394.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for
grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
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/How-to-include-WMS-layer--tp30296394p30308890.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hello,
I guess you must be using Open Layers.
For making the layer as a base use the following in your open layer code
  var political = new OpenLayers.Layer.WMS("layer name",
            "http://demo.opengeo.org/geoserver/wms&quot;,
            {'layers': 'layer name', transparent: true, format:
'image/gif'},
            {isBaseLayer: true}.

Hope this may help you

Regards
Aditya Kumar
Geo Spatial Application Developer

Madhuri k wrote:

Hi Ciao,
Thanks for replying.
I have developed map for a city. I want to add world map as a base layer
to the map I have developed. how can I do this?

Thanks,
Madhuri

Simone Giannecchini wrote:

Ciao Madhuri,
I guess you are referring to WMS cascading.
That is available only on 2.1.x aka trunk. You can grab a nightly
build and test it.

Ciao,
Simone.
-------------------------------------------------------

Notice that our office phone number has recently changed!
Please, update your records!

Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

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

On Wed, Nov 24, 2010 at 1:33 PM, Madhuri k <life.madhuri@anonymised.com>
wrote:

Hi,
How to include WMS layer as base layer in my layer group?

Thanks,
Madhuri
--
View this message in context:
http://old.nabble.com/How-to-include-WMS-layer--tp30296394p30296394.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for
grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for
grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
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/How-to-include-WMS-layer--tp30296394p30308893.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi

I am just starting to look at GeoWebCache (I'm with Geoserver-2.0.2) and see from the documentation that you can use Parameter Filters to handle CQL filters set by the client - which is just what I need. But the documentation is incomplete and refers the reader to the comprehensive configuration example and the XSD documentation. The configuration example also says TODO and there are no details. I cannot find relevant XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Many thanks Arne

So, if I understand correctly, I have to construct my own geowebcache.xml which will include details of any layer for which I wish to call GWC, and place under data_dir/gwc/.

Can I assume that (in <floatParameterFilter>) the <values> entries are optional? My values can be any one of over 6000 decimal numbers. In fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

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

Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

__________ Information from ESET Smart Security, version of virus signature database 5651 (20101126) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Yes, you'll have to construct a configuration file. Make sure you give layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

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

Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for
grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

__________ Information from ESET Smart Security, version of virus
signature database 5651 (20101126) __________

The message was checked by ESET Smart Security.

http://www.eset.com

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thank you Arne

I'm not sure I understand the second point. My filter looks like this: "specid=x" where x is a decimal value from one of over 6000 possibilities. They are all of the same format. I assume "specid" is entered within the <key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

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

Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for
grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

__________ Information from ESET Smart Security, version of virus
signature database 5651 (20101126) __________

The message was checked by ESET Smart Security.

http://www.eset.com

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

Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

__________ Information from ESET Smart Security, version of virus signature database 5654 (20101127) __________

The message was checked by ESET Smart Security.

http://www.eset.com

The key is correct. The floatParameterFilter tries to avoid duplicates, but in order to do so it needs to know all the possible values*.

A regexParameterFilter just treats the numbers as a text, and matches it againt a pattern. So it doesn't need to know the 6000 values in advance.

-Arne

*: If you code, you know how you never compare floating point numbers directly, you just check that the difference is sufficiently small? This is the same idea.

On 11/28/10 12:53 PM, Alan Hale wrote:

Thank you Arne

I'm not sure I understand the second point. My filter looks like this:
"specid=x" where x is a decimal value from one of over 6000
possibilities. They are all of the same format. I assume "specid" is
entered within the<key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give
layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression
filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing
tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with
Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to
handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find
relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

Arne - thank you so much. Now I understand.

Alan

On 28/11/2010 18:48, Arne Kepp wrote:

The key is correct. The floatParameterFilter tries to avoid duplicates, but in order to do so it needs to know all the possible values*.

A regexParameterFilter just treats the numbers as a text, and matches it againt a pattern. So it doesn't need to know the 6000 values in advance.

-Arne

*: If you code, you know how you never compare floating point numbers directly, you just check that the difference is sufficiently small? This is the same idea.

On 11/28/10 12:53 PM, Alan Hale wrote:

Thank you Arne

I'm not sure I understand the second point. My filter looks like this:
"specid=x" where x is a decimal value from one of over 6000
possibilities. They are all of the same format. I assume "specid" is
entered within the<key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give
layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression
filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing
tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with
Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to
handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find
relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

__________ Information from ESET Smart Security, version of virus signature database 5656 (20101128) __________

The message was checked by ESET Smart Security.

http://www.eset.com

I'm still having trouble with this, so testing out with a simpler dataset. I can get the unfiltered data to display,but I can't get the filter to work.

This is the layer definition in my OpenLayers init() function:

var sppfilter = "taxa_taxon_list_id=3";
   // create WMS tetrads layer - individual species can be filtered on
   var wmstetrads = new OpenLayers.Layer.WMS(
            "Tetrads",
             "http://www.alanhale.co.uk:8080/geoserver/gwc/service/wms&quot;,
            {'layers': 'indicia_test:detail_occurrences', 'CQL_FILTER':sppfilter,'format':'image/png', 'transparent':'true'},
            {'opacity': 0.6, 'isBaseLayer': false, 'visibility': true}
       );

And here is my parameterFilter in geowebcache.xml:

<parameterFilters>
<regexParameterFilter>
<key>taxa_taxon_list_id</key>
<defaultValue>1</defaultValue>
<regex>^(.+)$</regex>
</regexParameterFilter>
</parameterFilters>

Grateful for any further guidance

Alan

On 28/11/2010 18:48, Arne Kepp wrote:

The key is correct. The floatParameterFilter tries to avoid duplicates, but in order to do so it needs to know all the possible values*.

A regexParameterFilter just treats the numbers as a text, and matches it againt a pattern. So it doesn't need to know the 6000 values in advance.

-Arne

*: If you code, you know how you never compare floating point numbers directly, you just check that the difference is sufficiently small? This is the same idea.

On 11/28/10 12:53 PM, Alan Hale wrote:

Thank you Arne

I'm not sure I understand the second point. My filter looks like this:
"specid=x" where x is a decimal value from one of over 6000
possibilities. They are all of the same format. I assume "specid" is
entered within the<key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give
layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression
filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing
tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with
Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to
handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find
relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

__________ Information from ESET Smart Security, version of virus signature database 5656 (20101128) __________

The message was checked by ESET Smart Security.

http://www.eset.com

The key is CQL_FILTER in this case, "taxa_taxon_list_id=3" is the value (after URL encoding).

Check, using Firebug or something similar, that it is indeed sent as uppercase to the server.

-Arne

On 12/3/10 10:41 PM, Alan Hale wrote:

I'm still having trouble with this, so testing out with a simpler
dataset. I can get the unfiltered data to display,but I can't get the
filter to work.

This is the layer definition in my OpenLayers init() function:

var sppfilter = "taxa_taxon_list_id=3";
    // create WMS tetrads layer - individual species can be filtered on
    var wmstetrads = new OpenLayers.Layer.WMS(
             "Tetrads",
              "http://www.alanhale.co.uk:8080/geoserver/gwc/service/wms&quot;,
             {'layers': 'indicia_test:detail_occurrences',
'CQL_FILTER':sppfilter,'format':'image/png', 'transparent':'true'},
             {'opacity': 0.6, 'isBaseLayer': false, 'visibility': true}
        );

And here is my parameterFilter in geowebcache.xml:

<parameterFilters>
<regexParameterFilter>
<key>taxa_taxon_list_id</key>
<defaultValue>1</defaultValue>
<regex>^(.+)$</regex>
</regexParameterFilter>
</parameterFilters>

Grateful for any further guidance

Alan

On 28/11/2010 18:48, Arne Kepp wrote:

The key is correct. The floatParameterFilter tries to avoid
duplicates, but in order to do so it needs to know all the possible
values*.

A regexParameterFilter just treats the numbers as a text, and matches
it againt a pattern. So it doesn't need to know the 6000 values in
advance.

-Arne

*: If you code, you know how you never compare floating point numbers
directly, you just check that the difference is sufficiently small?
This is the same idea.

On 11/28/10 12:53 PM, Alan Hale wrote:

Thank you Arne

I'm not sure I understand the second point. My filter looks like this:
"specid=x" where x is a decimal value from one of over 6000
possibilities. They are all of the same format. I assume "specid" is
entered within the<key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give
layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression
filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing
tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I
wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with
Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to
handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the
comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find
relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

__________ Information from ESET Smart Security, version of virus
signature database 5656 (20101128) __________

The message was checked by ESET Smart Security.

http://www.eset.com

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: New IBM DB2 features make compatibility easy.
Learn about native support for PL/SQL, new data types, scalar functions,
improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools,
best practices and more - all designed to run applications on both DB2 and
Oracle platforms. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Arne

So, I have changed geowebcache.xml to look like this:

<parameterFilters>
<regexParameterFilter>
<key>CQL_FILTER</key>
<defaultValue>taxa_taxon_list_id=1</defaultValue>
<regex>^(.+)$</regex>
</regexParameterFilter>
</parameterFilters>

and the request looks like this:

http://www.alanhale.co.uk:8080/geoserver/gwc/service/wms?LAYERS=indicia_test%3Adetail_occurrences&CQL_FILTER=taxa_taxon_list_id%3D3&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-747655.7288,6443946.7458,-434569.661,6757032.8136&WIDTH=256&HEIGHT=256

But the filter does not work. I guess I am missing something obvious.

Regards

Alan

On 04/12/2010 09:55, Arne Kepp wrote:

The key is CQL_FILTER in this case, "taxa_taxon_list_id=3" is the value (after URL encoding).

Check, using Firebug or something similar, that it is indeed sent as uppercase to the server.

-Arne

On 12/3/10 10:41 PM, Alan Hale wrote:

I'm still having trouble with this, so testing out with a simpler
dataset. I can get the unfiltered data to display,but I can't get the
filter to work.

This is the layer definition in my OpenLayers init() function:

var sppfilter = "taxa_taxon_list_id=3";
    // create WMS tetrads layer - individual species can be filtered on
    var wmstetrads = new OpenLayers.Layer.WMS(
             "Tetrads",
"http://www.alanhale.co.uk:8080/geoserver/gwc/service/wms&quot;,
             {'layers': 'indicia_test:detail_occurrences',
'CQL_FILTER':sppfilter,'format':'image/png', 'transparent':'true'},
             {'opacity': 0.6, 'isBaseLayer': false, 'visibility': true}
        );

And here is my parameterFilter in geowebcache.xml:

<parameterFilters>
<regexParameterFilter>
<key>taxa_taxon_list_id</key>
<defaultValue>1</defaultValue>
<regex>^(.+)$</regex>
</regexParameterFilter>
</parameterFilters>

Grateful for any further guidance

Alan

On 28/11/2010 18:48, Arne Kepp wrote:

The key is correct. The floatParameterFilter tries to avoid
duplicates, but in order to do so it needs to know all the possible
values*.

A regexParameterFilter just treats the numbers as a text, and matches
it againt a pattern. So it doesn't need to know the 6000 values in
advance.

-Arne

*: If you code, you know how you never compare floating point numbers
directly, you just check that the difference is sufficiently small?
This is the same idea.

On 11/28/10 12:53 PM, Alan Hale wrote:

Thank you Arne

I'm not sure I understand the second point. My filter looks like this:
"specid=x" where x is a decimal value from one of over 6000
possibilities. They are all of the same format. I assume "specid" is
entered within the<key> element tags.

Alan

On 28/11/2010 10:16, Arne Kepp wrote:

Yes, you'll have to construct a configuration file. Make sure you give
layers new names, otherwise you'll have a hard time finding errors.

If you want a wildcard filter you should use the regular expression
filter, and set it up for the types of numbers your backend supports.

Note that GWC currently provides no facilities for seeding or removing
tiles that use such filters.

-Arne

On 11/28/10 10:58 AM, Alan Hale wrote:

Many thanks Arne

So, if I understand correctly, I have to construct my own
geowebcache.xml which will include details of any layer for which I
wish
to call GWC, and place under data_dir/gwc/.

Can I assume that (in<floatParameterFilter>) the<values> entries are
optional? My values can be any one of over 6000 decimal numbers. In
fact, am I expecting too much of GWC to cope with this in any case?

Regards

Alan

On 26/11/2010 15:03, Arne Kepp wrote:

Hi,

have a look at

https://github.com/GeoWebCache/geowebcache/blob/1.1.2/geowebcache/src/main/resources/geowebcache.xml

-Arne

On 11/26/10 3:24 PM, Alan Hale wrote:

Hi

I am just starting to look at GeoWebCache (I'm with
Geoserver-2.0.2) and
see from the documentation that you can use Parameter Filters to
handle
CQL filters set by the client - which is just what I need. But the
documentation is incomplete and refers the reader to the
comprehensive
configuration example and the XSD documentation. The configuration
example also says TODO and there are no details. I cannot find
relevant
XSD documentation. Could anyone kindly give me some pointers?

Many thanks

Alan Hale

__________ Information from ESET Smart Security, version of virus
signature database 5656 (20101128) __________

The message was checked by ESET Smart Security.

http://www.eset.com

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

Oracle to DB2 Conversion Guide: New IBM DB2 features make compatibility easy.
Learn about native support for PL/SQL, new data types, scalar functions,
improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools,
best practices and more - all designed to run applications on both DB2 and
Oracle platforms. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

__________ Information from ESET Smart Security, version of virus signature database 5672 (20101203) __________

The message was checked by ESET Smart Security.

http://www.eset.com