[Geoserver-devel] heavy capabilities

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide things are broken. This delay is what it takes the native DOM parser to deal with the capabilities response - just to display the resulting purple, black, and blue DOM tree. Extracting any useful information out of this doc requires additional parsing time, and displaying something more meaningful (than the purple, black, and blue DOM tree) requires extra rendering time.

I know folks can configure things to limit the SRS list in the capabilities doc (http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when designing W*S specs, but it is a pretty important player in the W part.

Hi Tim,

I think your suggestion makes sense. One thing we could probably do is on startup check each layer for its SRS and only include those in the default capabilities document. If the user wants to change it after that they are free to do so.

It would take a bit of book keeping to manage when new layers are added but I think it could work.

Andrea, what do you think?

-Justin

Tim Schaub wrote:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide things are broken. This delay is what it takes the native DOM parser to deal with the capabilities response - just to display the resulting purple, black, and blue DOM tree. Extracting any useful information out of this doc requires additional parsing time, and displaying something more meaningful (than the purple, black, and blue DOM tree) requires extra rendering time.

I know folks can configure things to limit the SRS list in the capabilities doc (http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,483de2c4307935332866982!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Hi Tim;

The OGC model of open web services is in fact very heavy. Some of the later specifications include a number so you can tell if your local cache is any good .... you will actually find that GeoServer is one of the faster WMS servers out there; Ionic servers are much much slower and often have thousands of layers "cascaded" into the same capabilities document from a couple of services.

I am not sure I want to see the abilities of the server changed just to keep the browser happy. Making the configuration option and putting this in the hands of users seems the best idea, could we change the configuration used for the example configuration we include with GeoServer?(but then I wonder if people will ever find the rest...).

Jody

Tim Schaub wrote:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide things are broken. This delay is what it takes the native DOM parser to deal with the capabilities response - just to display the resulting purple, black, and blue DOM tree. Extracting any useful information out of this doc requires additional parsing time, and displaying something more meaningful (than the purple, black, and blue DOM tree) requires extra rendering time.

I know folks can configure things to limit the SRS list in the capabilities doc (http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
  

I think it's a terrible idea! Firefox is not the expected client for a
OWS capabilities file, and by restricting the SRSs you advertise
you're restricting the power of your server: a client cannot request
an SRS it thinks you don't support! You have this wonderful SRS
engine behind Geoserver, that supports every SRS under the sun, don't
hide it from the world by default.

P.

On Wed, May 28, 2008 at 4:01 PM, Justin Deoliveira
<jdeolive@anonymised.com> wrote:

Hi Tim,

I think your suggestion makes sense. One thing we could probably do is
on startup check each layer for its SRS and only include those in the
default capabilities document. If the user wants to change it after that
they are free to do so.

It would take a bit of book keeping to manage when new layers are added
but I think it could work.

Andrea, what do you think?

-Justin

Tim Schaub wrote:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the
boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide
things are broken. This delay is what it takes the native DOM parser to
deal with the capabilities response - just to display the resulting
purple, black, and blue DOM tree. Extracting any useful information out
of this doc requires additional parsing time, and displaying something
more meaningful (than the purple, black, and blue DOM tree) requires
extra rendering time.

I know folks can configure things to limit the SRS list in the
capabilities doc
(http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My
question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three
options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser
time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when
designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,483de2c4307935332866982!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Yeah, I see the point... but then how does a server that supports the entire epsg database avoid overloading a client? I mean sure maybe the browser is not the intended client for a WMS capabilities document but its not absurd to think that a client will be storing the parsed capabilities document in memory.

I guess there is no way to have your cake and eat it to... Perhaps this is something better left to be handled on a configuration basis. But the question now becomes is it more "useful" to by default tame the capabilities document to a more manageable size, or more useful to advertise every srs under the sun... I don't know the answer. I will let those smarter than I debate that one :).

Paul Ramsey wrote:

I think it's a terrible idea! Firefox is not the expected client for a
OWS capabilities file, and by restricting the SRSs you advertise
you're restricting the power of your server: a client cannot request
an SRS it thinks you don't support! You have this wonderful SRS
engine behind Geoserver, that supports every SRS under the sun, don't
hide it from the world by default.

P.

On Wed, May 28, 2008 at 4:01 PM, Justin Deoliveira
<jdeolive@anonymised.com> wrote:

Hi Tim,

I think your suggestion makes sense. One thing we could probably do is
on startup check each layer for its SRS and only include those in the
default capabilities document. If the user wants to change it after that
they are free to do so.

It would take a bit of book keeping to manage when new layers are added
but I think it could work.

Andrea, what do you think?

-Justin

Tim Schaub wrote:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the
boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide
things are broken. This delay is what it takes the native DOM parser to
deal with the capabilities response - just to display the resulting
purple, black, and blue DOM tree. Extracting any useful information out
of this doc requires additional parsing time, and displaying something
more meaningful (than the purple, black, and blue DOM tree) requires
extra rendering time.

I know folks can configure things to limit the SRS list in the
capabilities doc
(http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My
question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three
options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser
time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when
designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,483df03212411096210785!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Paul Ramsey wrote:

I think it's a terrible idea! Firefox is not the expected client for a
OWS capabilities file, and by restricting the SRSs you advertise
you're restricting the power of your server: a client cannot request
an SRS it thinks you don't support! You have this wonderful SRS
engine behind Geoserver, that supports every SRS under the sun, don't
hide it from the world by default.

Fair enough. I have this warped sense that the browser is an important client in the web business.

I totally understand that limiting the advertised capabilities of a wonderful server is a bad idea. If only there were links...

Tim

P.

On Wed, May 28, 2008 at 4:01 PM, Justin Deoliveira
<jdeolive@anonymised.com> wrote:

Hi Tim,

I think your suggestion makes sense. One thing we could probably do is
on startup check each layer for its SRS and only include those in the
default capabilities document. If the user wants to change it after that
they are free to do so.

It would take a bit of book keeping to manage when new layers are added
but I think it could work.

Andrea, what do you think?

-Justin

Tim Schaub wrote:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the
boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide
things are broken. This delay is what it takes the native DOM parser to
deal with the capabilities response - just to display the resulting
purple, black, and blue DOM tree. Extracting any useful information out
of this doc requires additional parsing time, and displaying something
more meaningful (than the purple, black, and blue DOM tree) requires
extra rendering time.

I know folks can configure things to limit the SRS list in the
capabilities doc
(http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My
question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three
options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser
time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when
designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4033,483def639261804284693!

What about allowing the client to limit the number of SRSs?

I'm thinking adding a parameter
1) Specifying a list of projections of interest (GeoServer would return the intersection)
or
2) A numeric limit?

That way it can have as much cake as it can handle, and not change the default behavior :wink:
-Arne

Justin Deoliveira wrote:

Yeah, I see the point... but then how does a server that supports the entire epsg database avoid overloading a client? I mean sure maybe the browser is not the intended client for a WMS capabilities document but its not absurd to think that a client will be storing the parsed capabilities document in memory.

I guess there is no way to have your cake and eat it to... Perhaps this is something better left to be handled on a configuration basis. But the question now becomes is it more "useful" to by default tame the capabilities document to a more manageable size, or more useful to advertise every srs under the sun... I don't know the answer. I will let those smarter than I debate that one :).

Paul Ramsey wrote:
  

I think it's a terrible idea! Firefox is not the expected client for a
OWS capabilities file, and by restricting the SRSs you advertise
you're restricting the power of your server: a client cannot request
an SRS it thinks you don't support! You have this wonderful SRS
engine behind Geoserver, that supports every SRS under the sun, don't
hide it from the world by default.

P.

On Wed, May 28, 2008 at 4:01 PM, Justin Deoliveira
<jdeolive@anonymised.com> wrote:
    

Hi Tim,

I think your suggestion makes sense. One thing we could probably do is
on startup check each layer for its SRS and only include those in the
default capabilities document. If the user wants to change it after that
they are free to do so.

It would take a bit of book keeping to manage when new layers are added
but I think it could work.

Andrea, what do you think?

-Justin

Tim Schaub wrote:
      

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)
2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the
boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide
things are broken. This delay is what it takes the native DOM parser to
deal with the capabilities response - just to display the resulting
purple, black, and blue DOM tree. Extracting any useful information out
of this doc requires additional parsing time, and displaying something
more meaningful (than the purple, black, and blue DOM tree) requires
extra rendering time.

I know folks can configure things to limit the SRS list in the
capabilities doc
(http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My
question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three
options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser
time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when
designing W*S specs, but it is a pretty important player in the W part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Tim Schaub ha scritto:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities
(wait 3 seconds)

Hum, how curious. I've tested the same, and for me it takes between 1
and 2. Checked the response headers, and the file has been gzipped,
content lenght is "only" 19kb. 3 seconds to grab 19kb seems like
a long time to me.

2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide things are broken. This delay is what it takes the native DOM parser to deal with the capabilities response - just to display the resulting purple, black, and blue DOM tree. Extracting any useful information out of this doc requires additional parsing time, and displaying something more meaningful (than the purple, black, and blue DOM tree) requires extra rendering time.

I know folks can configure things to limit the SRS list in the capabilities doc (http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when designing W*S specs, but it is a pretty important player in the W part.

I guess the main problem here is that the server does not know what it
is serving data to. Is the client limited capabilities (browser), plain
stupid (arcgis < 9.3) or ok (udig)? There is no way to know in advance.
Whatever preset we choose on the server side is going to be sub-optimal
for some clients out there.

Since we have a human in the middle (either as the programmer that sets
up the connection to a well known server, or as the user that pastes
the capabilities) we could provide him with options, profiles, that
would generate different capabilities documents. Stuff like:
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=full
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=limited
and then have a few more capabilities links in the UI.
(btw, smart == limited, layers always show up in their native
projection anyways afaik?)

How does this sound?
Cheers
Andrea

Hey-

Andrea Aime wrote:

Tim Schaub ha scritto:

Hey-

A small exercise with my results next to each step.

1) Click:
http://sigma.openplans.org/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities

(wait 3 seconds)

Hum, how curious. I've tested the same, and for me it takes between 1
and 2. Checked the response headers, and the file has been gzipped,
content lenght is "only" 19kb. 3 seconds to grab 19kb seems like
a long time to me.

Yeah, ignore this. It was hailing heavily and I was counting on my fingers.

2) Save the result to your desktop, call it ows.xml.
3) Drag ows.xml into Firefox (wait 10 seconds).

Granted, the delay in step one is largely my fault for living in the boonies. I'm mostly concerned about the delay in step 3.

A 10 second delay in a web application is enough time for me to decide things are broken. This delay is what it takes the native DOM parser to deal with the capabilities response - just to display the resulting purple, black, and blue DOM tree. Extracting any useful information out of this doc requires additional parsing time, and displaying something more meaningful (than the purple, black, and blue DOM tree) requires extra rendering time.

I know folks can configure things to limit the SRS list in the capabilities doc (http://geoserver.org/display/GEOSDOC/Common+OWS+Configuration). My question is if others think it makes sense to start out with a limited set.

Would it be possible to have a smarter default? Seems like three options for controlling SRS in capabilities would be nice:

1) all (current default)
2) native + limited set (proposed smart default)
3) limited set (current alternative to default)

(Trimming the list down to a more reasonable 10 cuts the native parser time down to a fraction of a second.)

Thanks for any feedback.
Tim

PS - I know the browser is not the client folks have in mind when designing W*S specs, but it is a pretty important player in the W part.

I guess the main problem here is that the server does not know what it
is serving data to. Is the client limited capabilities (browser), plain
stupid (arcgis < 9.3) or ok (udig)? There is no way to know in advance.
Whatever preset we choose on the server side is going to be sub-optimal
for some clients out there.

Since we have a human in the middle (either as the programmer that sets
up the connection to a well known server, or as the user that pastes
the capabilities) we could provide him with options, profiles, that
would generate different capabilities documents. Stuff like:
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=full
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=limited
and then have a few more capabilities links in the UI.
(btw, smart == limited, layers always show up in their native
projection anyways afaik?)

How does this sound?

Ok, yeah, this is the point.

GeoServer is hugely capable, the default (and I assume rarely changed) configuration is to advertise everything, and this effectively renders the capabilities doc useless (or less handy at least) to subset of clients. (Let's say it is a separate discussion to determine which clients should and should not be asking GeoServer about its capabilities.)

Your suggestion is to allow clients to advertise something about their own capabilities ("I only care to parse limited capabilities docs" or "please send me a list of everything under the sun").

I also like Arne's suggestion about allowing the client to advertise a bit more ("I only care about your capabilities if you support these SRS").

The srsProfile parameter in a query is a handy shortcut, but requires the client and server to share some understanding about the meaning.

A more flexible solution would allow a client to say something like: tell me what you've got in this region, in these SRS, etc.

This gets beyond the initial motivation, but as long as we're talking about allowing a client to ask for a filtered set of capabilities, is it nuts to think about BBOX and SRS filters?

Tim

Cheers
Andrea

!DSPAM:4033,483e8629325215332866982!

Tim Schaub ha scritto:
...

Since we have a human in the middle (either as the programmer that sets
up the connection to a well known server, or as the user that pastes
the capabilities) we could provide him with options, profiles, that
would generate different capabilities documents. Stuff like:
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=full
http://…/ows?SERVICE=WMS&REQUEST=GetCapabilities&srsProfile=limited
and then have a few more capabilities links in the UI.
(btw, smart == limited, layers always show up in their native
projection anyways afaik?)

How does this sound?

Ok, yeah, this is the point.

GeoServer is hugely capable, the default (and I assume rarely changed) configuration is to advertise everything, and this effectively renders the capabilities doc useless (or less handy at least) to subset of clients. (Let's say it is a separate discussion to determine which clients should and should not be asking GeoServer about its capabilities.)

Your suggestion is to allow clients to advertise something about their own capabilities ("I only care to parse limited capabilities docs" or "please send me a list of everything under the sun").

I also like Arne's suggestion about allowing the client to advertise a bit more ("I only care about your capabilities if you support these SRS").

The srsProfile parameter in a query is a handy shortcut, but requires the client and server to share some understanding about the meaning.

A more flexible solution would allow a client to say something like: tell me what you've got in this region, in these SRS, etc.

This gets beyond the initial motivation, but as long as we're talking about allowing a client to ask for a filtered set of capabilities, is it nuts to think about BBOX and SRS filters?

Hmmm... no, not really. What you're suggesting is:
* more flexible
* more work on both sides I believe, the client has to figure out
   how to compose the request (instead of just "gimme something that
   won't kill my arcgis"), the server has to setup some longer filtering
   code.

But I have nothing specific against them. In fact some time ago I was
suggesting to add namespace or layer filtering, but since that will
be covered by workspaces/maps, it's no more needed.
Cheers
Andrea

Tim Schaub wrote:

This gets beyond the initial motivation, but as long as we're talking about allowing a client to ask for a filtered set of capabilities, is it nuts to think about BBOX and SRS filters?
  

I think the part you are missing here is a catalog right? ie it already has all these things parsed and is able to answer questions about SRS and BBOX. So if you are going to grow scope consider asking GeoServer to support a "mini" catalog in order to quickly answer these questions about its own data content and abilities.

The story is Publish / Find / Bind; and are trying to ask the "Find" questions out of the "Publish" API ... don't skip a step :wink:

Cheers,
Jody