[Geoserver-devel] [jira] Created: (GEOS-1706) DescribeCoverage kvp sample request breaks...

DescribeCoverage kvp sample request breaks...
---------------------------------------------

                 Key: GEOS-1706
                 URL: http://jira.codehaus.org/browse/GEOS-1706
             Project: GeoServer
          Issue Type: Sub-task
            Reporter: Andrea Aime
            Assignee: Andrea Aime

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

Hi everybody. After a serie of strange configuration-related questions and weird and bizarre errors i manage to solve mainly thanks to your help, I am here to try asking the fatal question: is it possible to do this in geoserver?

OK, here is what I have to do: my objective is summed up in two use cases.

1st A user select a point, then another point, then asks the system to calculate the shortest path

2nd A user selects a set of features, and marks them as affected by a certain level of traffic (for example, the 8th boulevard is at traffic level 5, to make it fairly simple)

I thought that to be this should be nice WFS, but as I am getting near to the protocol architecture, what is coming in front of me is the fact that in WFS you have to configure the Features before, and cannot send instructions to geoserver for calling e.g. a procedure in Postgis (that could for example store the result in a table and then display the results as a view that was configured before as a feature in geoserver). Is this correct? I mean, WFS is only for serving Features instead that creating a dialog with the database. Exception made for WFS-T, but latter can only add, delete or edit the geometries, and not communicating to the model layer to update an attribute. Is also this correct?

Please forgive my confusion and my falls of questions, but i really have no time for preparing a graduating thesis, so my develop time is concentrated in two hours after dinner.

Thanks a lot for helping

Andrea Maschio
http://www.superandrew.it

Hi Andrea,

You are correct, the WFS interface is not well suited for this sort of
application. The web service you need is called WPS (web processing
service), which GeoServer does not implement.

I have seen routing applications put together with pgrouting, a routing
extension to postgis. And actually it seems that WebProcessingServer has
routing capabilities which use pgrouting. It is probably worth you
checking it out.

-Justin

Andrea Maschio wrote:

Hi everybody. After a serie of strange configuration-related questions
and weird and bizarre errors i manage to solve mainly thanks to your
help, I am here to try asking the fatal question: is it possible to do
this in geoserver?

OK, here is what I have to do: my objective is summed up in two use cases.

1st A user select a point, then another point, then asks the system to
calculate the shortest path

2nd A user selects a set of features, and marks them as affected by a
certain level of traffic (for example, the 8th boulevard is at traffic
level 5, to make it fairly simple)

I thought that to be this should be nice WFS, but as I am getting near
to the protocol architecture, what is coming in front of me is the fact
that in WFS you have to configure the Features before, and cannot send
instructions to geoserver for calling e.g. a procedure in Postgis (that
could for example store the result in a table and then display the
results as a view that was configured before as a feature in geoserver).
Is this correct? I mean, WFS is only for serving Features instead that
creating a dialog with the database. Exception made for WFS-T, but
latter can only add, delete or edit the geometries, and not
communicating to the model layer to update an attribute. Is also this
correct?

Please forgive my confusion and my falls of questions, but i really have
no time for preparing a graduating thesis, so my develop time is
concentrated in two hours after dinner.

Thanks a lot for helping

Andrea Maschio
http://www.superandrew.it/>

!DSPAM:4007,4799058b79761030819293!

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

-------------------------------------------------------------------------
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/

!DSPAM:4007,4799058b79761030819293!

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

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

!DSPAM:4007,4799058b79761030819293!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

isnt this conceptually a function call in WFS?

What is involved in making a postgres procedure available as a function?

i've looked for doco and the best I can see is this:
http://docs.codehaus.org/display/GEOSDOC/Filter+Function+tutorial+(unfinished)

Is there better doco anywhere?

FYI This is one of the issues we are looking into with respect to
supporting real-world data models - supporting functions may allow us
to avoid the worst complexities of traversing feature realtionships to
run sensible queries. We can put some effort into testing and updating
doco, and coding if necessary, but a heads up from the people who know
whats already there would be helpful!

Rob Atkinson

On Jan 25, 2008 11:02 AM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Andrea,

You are correct, the WFS interface is not well suited for this sort of
application. The web service you need is called WPS (web processing
service), which GeoServer does not implement.

I have seen routing applications put together with pgrouting, a routing
extension to postgis. And actually it seems that WebProcessingServer has
routing capabilities which use pgrouting. It is probably worth you
checking it out.

-Justin

Andrea Maschio wrote:
> Hi everybody. After a serie of strange configuration-related questions
> and weird and bizarre errors i manage to solve mainly thanks to your
> help, I am here to try asking the fatal question: is it possible to do
> this in geoserver?
>
> OK, here is what I have to do: my objective is summed up in two use cases.
>
> 1st A user select a point, then another point, then asks the system to
> calculate the shortest path
>
> 2nd A user selects a set of features, and marks them as affected by a
> certain level of traffic (for example, the 8th boulevard is at traffic
> level 5, to make it fairly simple)
>
> I thought that to be this should be nice WFS, but as I am getting near
> to the protocol architecture, what is coming in front of me is the fact
> that in WFS you have to configure the Features before, and cannot send
> instructions to geoserver for calling e.g. a procedure in Postgis (that
> could for example store the result in a table and then display the
> results as a view that was configured before as a feature in geoserver).
> Is this correct? I mean, WFS is only for serving Features instead that
> creating a dialog with the database. Exception made for WFS-T, but
> latter can only add, delete or edit the geometries, and not
> communicating to the model layer to update an attribute. Is also this
> correct?
>
> Please forgive my confusion and my falls of questions, but i really have
> no time for preparing a graduating thesis, so my develop time is
> concentrated in two hours after dinner.
>
> Thanks a lot for helping
>
>
> Andrea Maschio
> http://www.superandrew.it/&gt;
>
> !DSPAM:4007,4799058b79761030819293!
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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/
>
> !DSPAM:4007,4799058b79761030819293!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
>
> !DSPAM:4007,4799058b79761030819293!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
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

Thanks Justin. Surely I will check out WebProcessingServer. Btw, yesterday I thought at this workaround, please tell me if in your opinion it could work:

A tomcat server with geoserver deployed as a war.

The geoserver WFS service gives me a map. I select two points, and memorize it on two fields or js variables. Posting then all the information i need to another servlet that has charge to do just the communication with postgis (for example calling the shortest_path function and creating a set of results in a table). Then the servlet sends me again to the map page that’s binded to the shortest_path feature, who is a view on the original data joined with the results table reloading the changes in a layer over the original layer.

I feel that this is more a workaround than a solution, and has some async issues that have to be solved. But could this in your opinion work? Will WPS do just this with a reasonable learning curve?

Thanks

Andrea

Justin Deoliveira ha scritto:

Ciao guys,
just sharing my 0,02 €.

There are a few open source projects playing with routing applications
one is pgrouting (which is IMHO the bes tone so far) but htere is also
something from 52 North (not so sure about its state). Therefore if I
had to look into something I'd give a look at pgrouting which seems to
be more mature and robust and which also builds right inside of
postgis.

Beside this, we (GeoSolutions) are interested as well in routing
functionalities hence we have investigated a bit how to implement
them. IMHO WFS is not the right place to do so because I think that if
you start putting functionalities into the data tier you end up with
stove pipes monoliths, I would rather suggest to go down the path of
a specific WPS profile which can just solve the routing problem and do
all sort of magic to cache results of complex calculations focusing
solely on the implementing and optimizing the business process of
"find the best route". Note however that using a WPS approach does not
mean that there is a function in the WPS spec that implements routing
(actually there should be something in OPenLS core services..). WPS
aims, IMHO, to provide a generic framework to expose geoprocessing
(well in fact nobody prevents us from expoing non geospatial
processing as well) capabilities to the web in an interoperable self
describing manner but it does not specify which functionalities you
can expose, that's up to you. In this specific case I guess the work
would be using a preexistent WPS framework and embed into it the
process of routing which would mean create a WPS profile for routing.

Anyway, as I said Andrea I would be interested in getting to know a
bit more about what you are trying to achieve since we are going to
work soon in that field hence I forsee the possibility to have some
sort of cooperation. Just in case you can find me anytime on gtalk.

Simone.

On Jan 25, 2008 4:39 PM, Andrea Maschio <andrea.maschio@anonymised.com> wrote:

Thanks Justin. Surely I will check out WebProcessingServer. Btw, yesterday
I thought at this workaround, please tell me if in your opinion it could
work:

A tomcat server with geoserver deployed as a war.

The geoserver WFS service gives me a map. I select two points, and memorize
it on two fields or js variables. Posting then all the information i need to
another servlet that has charge to do just the communication with postgis
(for example calling the shortest_path function and creating a set of
results in a table). Then the servlet sends me again to the map page that's
binded to the shortest_path feature, who is a view on the original data
joined with the results table reloading the changes in a layer over the
original layer.

I feel that this is more a workaround than a solution, and has some async
issues that have to be solved. But could this in your opinion work? Will WPS
do just this with a reasonable learning curve?

Thanks

Andrea

Justin Deoliveira ha scritto:

Hi Andrea,

You are correct, the WFS interface is not well suited for this sort of
application. The web service you need is called WPS (web processing
service), which GeoServer does not implement.

I have seen routing applications put together with pgrouting, a routing
extension to postgis. And actually it seems that WebProcessingServer has
routing capabilities which use pgrouting. It is probably worth you
checking it out.

-Justin

Andrea Maschio wrote:

Hi everybody. After a serie of strange configuration-related questions
and weird and bizarre errors i manage to solve mainly thanks to your
help, I am here to try asking the fatal question: is it possible to do
this in geoserver?

OK, here is what I have to do: my objective is summed up in two use cases.

1st A user select a point, then another point, then asks the system to
calculate the shortest path

2nd A user selects a set of features, and marks them as affected by a
certain level of traffic (for example, the 8th boulevard is at traffic
level 5, to make it fairly simple)

I thought that to be this should be nice WFS, but as I am getting near
to the protocol architecture, what is coming in front of me is the fact
that in WFS you have to configure the Features before, and cannot send
instructions to geoserver for calling e.g. a procedure in Postgis (that
could for example store the result in a table and then display the
results as a view that was configured before as a feature in geoserver).
Is this correct? I mean, WFS is only for serving Features instead that
creating a dialog with the database. Exception made for WFS-T, but
latter can only add, delete or edit the geometries, and not
communicating to the model layer to update an attribute. Is also this
correct?

Please forgive my confusion and my falls of questions, but i really have
no time for preparing a graduating thesis, so my develop time is
concentrated in two hours after dinner.

Thanks a lot for helping

Andrea Maschio
http://www.superandrew.it/&gt;

!DSPAM:4007,4799058b79761030819293!

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

-------------------------------------------------------------------------
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/

!DSPAM:4007,4799058b79761030819293!

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

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

!DSPAM:4007,4799058b79761030819293!

-------------------------------------------------------------------------
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

--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

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

http://www.geo-solutions.it

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