On Tue, Oct 5, 2010 at 9:39 PM, Martin Jensen <[email protected]> wrote: > > Hi, > I am playing around with the WPS query builder. > I was trying to do a buffer on the local vector layer: tiger:poi layer in > Geoserver. > The query gives me an error: > <ows:ExceptionReport version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://geoserver.cbkort.dk:8680/schemas/ows/1.1.0/owsAll.xsd"> > - > <ows:Exception exceptionCode="NoApplicableCode"> > - > <ows:ExceptionText> > Process returned with an exception > Could not convert net.opengis.wfs.impl.featurecollectiontypei...@1ab0086 > (lockId: null, timeStamp: > java.util.GregorianCalendar[time=1286307427078,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Paris",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=184,lastRule=java.util.SimpleTimeZone[id=Europe/Paris,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2010,MONTH=9,WEEK_OF_YEAR=40,WEEK_OF_MONTH=1,DAY_OF_MONTH=5,DAY_OF_YEAR=278,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=9,HOUR_OF_DAY=21,MINUTE=37,SECOND=7,MILLISECOND=78,ZONE_OFFSET=3600000,DST_OFFSET=3600000], > numberOfFeatures: 0, feature: > [org.geotools.data.crs.forcecoordinatesystemfeatureresu...@1af75dd]) to > target type com.vividsolutions.jts.geom.Geometry > </ows:ExceptionText> > </ows:Exception> > </ows:ExceptionReport> > > I believe this is because the buffer proces require only the gml:geometry but > receives a whole featurecollection from WFS ?? > Am I doing any thing wrong ?
Yeah, the request builder is not very smart and it's allowing you to provide invalid inputs to the process. The process you are using requires just a geometry, and you're providing something else (a list of feature, that eventually might contain geometries inside). Try the gt:BufferFeatureCollection (maybe the name is not exactly that one) process instead, which is meant to work on feature collections instead. 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 ----------------------------------------------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
