Getting closer.  I have downloaded WPF extension and I have been able to create 
a sample gs:Nearest WPS request using the new WPS request builder.  I was able 
to get the closest feature to say

POINT(0 0).

However, I am unable to specify max range and units.  Also, I need the n 
closest features, where I specify n as another input parameter.  Is this 
possible?  If not, can one easily modify source to return a list of features 
instead of just one?

TIA.

-----Original Message-----
From: Nji, Klaus [mailto:[email protected]] 
Sent: September 30, 2010 01:36 PM
To: Andrea Aime
Cc: [email protected]
Subject: Re: [Geoserver-users] FW: Querying WFS for first n features closest to 
a geometry

I have downloaded and installed Geoserver 2.1.0 -beta 1.  Tried the following 
WFS request:

http://localhost:8081/geoserver/wfs?request=getNearest&service=wfs&version=1.0.0&typename=ems:airport&PropertyName=ems:name,the_geom&POINT=-77.51761,37.02235&MAXRANGE=50&UNITS=mi

and received the following exception:

  <?xml version="1.0" encoding="UTF-8" ?> 
- <ows:ExceptionReport version="1.0.0" 
xsi:schemaLocation="http://www.opengis.net/ows 
http://localhost:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ows="http://www.opengis.net/ows";>
- <ows:Exception exceptionCode="OperationNotSupported" locator="getNearest">
  <ows:ExceptionText>No such operation wfs 1.1.0 getNearest</ows:ExceptionText> 
  </ows:Exception>
  </ows:ExceptionReport>

I see no reference in the 2.1 documentation mentioning getNearest.  Am I 
overlooking something?

Thanks again.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: September 30, 2010 02:46 AM
To: Nji, Klaus
Cc: [email protected]
Subject: Re: [Geoserver-users] FW: Querying WFS for first n features closest to 
a geometry

On Thu, Sep 30, 2010 at 5:29 AM, Nji, Klaus <[email protected]> wrote:
> I ran into the WFS GetNearest plugin which may do the trick for me.  This is 
> a 3 year old document so I am suspecting something has changed but cound not 
> find any reference of GetNearest in current doc.
>
> http://geoserver.org/display/GEOSDOC/WFS+GetNearest+Plug-in
>
> Can I safely follow instructions in above link and install plugin?

Hmmm...the plugin is old and it's probably working only with the same
version of GeoServer is was developed against.
But now that very same code has been ported into a WPS process, if you
grab the GeoServer 2.1.0 beta 1 release it will be there

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to