Thank you for your response, but I need whole geometry, so I’m using gs:IntersectionFeatureCollection.
Geoserver version I’m using is 2.2 and this is my example, on tiger: poly_landmarks layer
<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version=“1.0.0” service=“WPS” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns=“http://www.opengis.net/wps/1.0.0” xmlns:wfs=“http://www.opengis.net/wfs” xmlns:wps=“http://www.opengis.net/wps/1.0.0” xmlns:ows=“http://www.opengis.net/ows/1.1” xmlns:gml=“http://www.opengis.net/gml” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:wcs=“http://www.opengis.net/wcs/1.1.1” xmlns:xlink=“http://www.w3.org/1999/xlink” xsi:schemaLocation=“http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd”>
ows:Identifiergs:IntersectionFeatureCollection</ows:Identifier>
wps:DataInputs
wps:Input
ows:Identifierfirst feature collection</ows:Identifier>
<wps:Reference mimeType=“text/xml; subtype=wfs-collection/1.0” xlink:href=“http://geoserver/wfs” method=“POST”>
wps:Body
<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:tiger=“http://www.census.gov”>
<wfs:Query typeName=“tiger:poly_landmarks”/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
wps:Input
ows:Identifiersecond feature collection</ows:Identifier>
wps:Data
<wps:ComplexData mimeType=“application/json”></wps:ComplexData>
</wps:Data>
</wps:Input>
wps:Input
ows:Identifierfirst attributes to retain</ows:Identifier>
wps:Data
wps:LiteralDataLANAME</wps:LiteralData>
</wps:Data>
</wps:Input>
wps:Input
ows:IdentifierintersectionMode</ows:Identifier>
wps:Data
wps:LiteralDataFIRST</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
wps:ResponseForm
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.0”>
ows:Identifierresult</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
And this is the response
wfs:FeatureCollection
gml:boundedBy
<gml:Box srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:coord
gml:X-74.047185</gml:X>
gml:Y40.679648</gml:Y>
</gml:coord>
gml:coord
gml:X-73.90782</gml:X>
gml:Y40.882078</gml:Y>
</gml:coord>
</gml:Box>
</gml:boundedBy>
gml:featureMember
<feature:poly_landmarks fid=“0”>
gml:boundedBy
<gml:Box srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:coord
gml:X-73.999146</gml:X>
gml:Y40.704246</gml:Y>
</gml:coord>
gml:coord
gml:X-73.910551</gml:X>
gml:Y40.79908</gml:Y>
</gml:coord>
</gml:Box>
</gml:boundedBy>
feature:the_geom
<gml:MultiPolygon srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:polygonMember
gml:Polygon
gml:outerBoundaryIs
gml:LinearRing
gml:coordinates-73.943591,40.782784 -73.943326,40.783218999999995 -73.942796,40.783673 -73.94143,40.784760999999996 -73.940674,40.785050999999996 -73.939598,40.785513 -73.936573,40.784143 -73.935602,40.783184 -73.931106,40.78215 -73.92801299999999,40.780395999999996 -73.927213,40.780466 -73.92544699999999,40.782154999999996 -73.924464,40.782621999999996 -73.923377,40.783822 -73.920377,40.789522 -73.91487699999999,40.793521999999996 -73.914677,40.794422 -73.915677,40.796122 -73.916277,40.797422 -73.916479,40.797892999999995 -73.918742,40.798967999999995 -73.918606,40.79908 -73.91630599999999,40.79788 -73.915806,40.79748 -73.913806,40.79688 -73.912506,40.79618 -73.911186,40.792908 -73.910551,40.790988 -73.913414,40.78886 -73.915358,40.788095999999996 -73.916316,40.786601 -73.917817,40.784976 -73.918172,40.784591999999996 -73.91923299999999,40.783939 -73.920425,40.782875 -73.920773,40.782596999999996 -73.921125,40.782317 -73.92143899999999,40.782066 -73.924255,40.779731999999996 -73.924605,40.779433999999995 -73.926006,40.77888 -73.92797,40.776762 -73.929555,40.776868 -73.931823,40.777049 -73.931857,40.778262999999995 -73.934114,40.777575999999996 -73.935087,40.779266 -73.93508,40.779218 -73.93731199999999,40.780657 -73.937601,40.78179 -73.93962499999999,40.781631 -73.943591,40.782784</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
gml:polygonMember
gml:Polygon
gml:outerBoundaryIs
gml:LinearRing
gml:coordinates-73.99197,40.709979 -73.990634,40.710208 -73.99030599999999,40.709081 -73.989999,40.709188999999995 -73.990222,40.710215 -73.989904,40.710224 -73.989508,40.710224 -73.98936499999999,40.709233999999995 -73.986661,40.709073 -73.984979,40.709223 -73.980779,40.709723 -73.978179,40.710522999999995 -73.977597,40.711196 -73.97627899999999,40.712723 -73.975284,40.715091 -73.973658,40.719408 -73.973094,40.721513 -73.972078,40.726518 -73.972043,40.726670999999996 -73.971893,40.727318 -73.971612,40.727914999999996 -73.971447,40.729014 -73.971448,40.729611 -73.971578,40.729738 -73.971595,40.730050999999996 -73.972106,40.730537999999996 -73.972948,40.731175 -73.97336,40.731487 -73.973367,40.731665 -73.973344,40.732011 -73.973591,40.732548 -73.97392099999999,40.732985 -73.974186,40.73415 -73.972458,40.733492 -73.972126,40.733782999999995 -73.973984,40.734334 -73.974215,40.735225 -73.97269299999999,40.734583 -73.972137,40.735213 -73.971458,40.734984 -73.970896,40.73561 -73.971413,40.735656 -73.971608,40.735336 -73.97362,40.736173 -73.973989,40.735870999999996 -73.974794,40.736246 -73.97447,40.737261 -73.974342,40.737303 -73.974361,40.737418 -73.97419,40.737418 -73.974138,40.73761 -73.972555,40.736923 -73.972706,40.740513 -73.971879,40.743122 -73.971479,40.743822 -73.970979,40.744422 -73.970579,40.745022 -73.970079,40.745622 -73.969078,40.746722 -73.968541,40.747565 -73.968093,40.747895 -73.968029,40.747969 -73.964293,40.75201 -73.963742,40.752649 -73.962942,40.753423 -73.96279,40.753574 -73.962727,40.753643 -73.9623,40.754493 -73.961743,40.755238 -73.96093599999999,40.755883999999995 -73.96026599999999,40.756358999999996 -73.959683,40.756842999999996 -73.959363,40.757357 -73.95885899999999,40.757943 -73.958494,40.758309 -73.958128,40.758713 -73.956932,40.75826 -73.9567,40.758158 -73.955787,40.757757999999995 -73.958854,40.754242999999995 -73.95914499999999,40.753955999999995 -73.959595,40.753682 -73.95991,40.753377 -73.960186,40.752696 -73.96044599999999,40.751967 -73.960517,40.751632 -73.96024899999999,40.751417 -73.959997,40.751369 -73.959689,40.751369 -73.959445,40.751470999999995 -73.95786,40.752534 -73.957342,40.75281 -73.95311,40.756620999999996 -73.951807,40.758417 -73.949906,40.760511 -73.946405,40.764298 -73.945111,40.763086 -73.951011,40.755724 -73.95274599999999,40.753915 -73.95492,40.751509 -73.955595,40.750361 -73.95685,40.748225 -73.9583,40.745731 -73.961544,40.743081 -73.96179699999999,40.741388 -73.962295,40.740213 -73.96235899999999,40.740061 -73.96270299999999,40.738302999999995 -73.962795,40.737674 -73.962706,40.736789 -73.962695,40.73668 -73.96266299999999,40.73641 -73.96264,40.73572 -73.962638,40.735664 -73.962738,40.734936 -73.96288299999999,40.733891 -73.962721,40.732849 -73.96265,40.732396 -73.962301,40.731618 -73.961302,40.730973 -73.96093499999999,40.730281999999995 -73.960286,40.729619 -73.960664,40.728949 -73.961142,40.728103999999995 -73.961289,40.727371999999995 -73.96193199999999,40.726911 -73.96191,40.725857 -73.961821,40.724965999999995 -73.96199399999999,40.724762 -73.962192,40.724528 -73.962318,40.724396 -73.962774,40.723918 -73.963494,40.723167 -73.965942,40.719031 -73.966484,40.718455 -73.967058,40.717815 -73.967755,40.71655 -73.96825,40.715194 -73.96858,40.714158999999995 -73.969036,40.713051 -73.96925999999999,40.712506999999995 -73.96938999999999,40.712074 -73.969793,40.710741 -73.970336,40.709261 -73.97014,40.708087 -73.969855,40.707525 -73.969152,40.707043 -73.97046999999999,40.707172 -73.97048199999999,40.707194 -73.972207,40.708892 -73.97239499999999,40.708793 -73.972589,40.708687999999995 -73.97332899999999,40.708254 -73.974068,40.707820999999996 -73.97425799999999,40.70771 -73.974448,40.707598 -73.974546,40.707547 -73.978366,40.706123 -73.979145,40.705825 -73.97912199999999,40.705574999999996 -73.979469,40.705535 -73.980925,40.705369 -73.982198,40.705174 -73.984101,40.705256999999996 -73.986138,40.705244 -73.986513,40.705221 -73.98727,40.705175 -73.987957,40.705135 -73.989519,40.705117 -73.9896,40.705082 -73.989625,40.705079 -73.989915,40.7051 -73.990882,40.705124 -
73.99148,40.705625 -73.992722,40.705543999999996 -73.993853,40.704829 -73.994776,40.704246 -73.999146,40.708248 -73.997601,40.708968999999996 -73.99197,40.709979</gml:coordinates></gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</feature:the_geom>
feature:poly_landmarks_LAND7.0</feature:poly_landmarks_LAND>
feature:poly_landmarks_CFCCH11</feature:poly_landmarks_CFCC>
feature:poly_landmarks_LANAMEEast River</feature:poly_landmarks_LANAME>
feature:INTERSECTION_ID0</feature:INTERSECTION_ID>
</feature:poly_landmarks>
</gml:featureMember>
gml:featureMember
<feature:poly_landmarks fid=“1”>
gml:boundedBy
<gml:Box srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:coord
gml:X-73.981634</gml:X>
gml:Y40.764389</gml:Y>
</gml:coord>
gml:coord
gml:X-73.94951999999999</gml:X>
gml:Y40.800588</gml:Y>
</gml:coord>
</gml:Box>
</gml:boundedBy>
feature:the_geom
<gml:MultiPolygon srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:polygonMember
gml:Polygon
gml:outerBoundaryIs
gml:LinearRing
gml:coordinates-73.981464,40.767773999999996 -73.981396,40.768268 -73.981634,40.768482999999996 -73.98113099999999,40.769272 -73.98065199999999,40.76983 -73.980215,40.770488 -73.9798,40.771096 -73.979298,40.771753 -73.97886199999999,40.77241 -73.978447,40.773018 -73.97792299999999,40.773708 -73.977465,40.7743 -73.97707199999999,40.774859 -73.97657,40.775565 -73.97609,40.776288 -73.975588,40.776947 -73.97513,40.777553999999995 -73.974671,40.778244 -73.974234,40.778852 -73.973776,40.779427 -73.971899,40.782105 -73.971375,40.782795 -73.970917,40.78342 -73.97043699999999,40.783995 -73.969956,40.784684999999996 -73.969498,40.785292999999996 -73.96901799999999,40.785983 -73.968537,40.786623999999996 -73.968036,40.787264 -73.96762,40.787921999999995 -73.967119,40.78848 -73.966704,40.789105 -73.966245,40.789713 -73.96578699999999,40.790352999999996 -73.96524099999999,40.79106 -73.964804,40.791684 -73.964281,40.792358 -73.96290499999999,40.794247 -73.962403,40.794905 -73.96196599999999,40.795545 -73.961529,40.796153 -73.961049,40.796761 -73.960612,40.797418 -73.960109,40.798125 -73.95960699999999,40.798781999999996 -73.959149,40.799374 -73.95868999999999,40.800047 -73.958428,40.800425 -73.958124,40.800506999999996 -73.95788499999999,40.800588 -73.95531199999999,40.799509 -73.95248,40.798297999999996 -73.94954,40.797003 -73.94951999999999,40.79669 -73.949761,40.796329 -73.95024099999999,40.795705 -73.950744,40.795031 -73.95115899999999,40.794374 -73.95177,40.793684 -73.952142,40.79306 -73.95259999999999,40.792418999999995 -73.953103,40.791729 -73.953496,40.791154 -73.954042,40.790414 -73.954937,40.789198999999996 -73.95535199999999,40.788624 -73.955854,40.787949999999995 -73.956335,40.787259999999996 -73.95681499999999,40.786668999999996 -73.95733899999999,40.786027999999995 -73.957732,40.785419999999995 -73.958212,40.784796 -73.95862699999999,40.784188 -73.959086,40.783514 -73.959588,40.782872999999995 -73.96009,40.782233 -73.960548,40.781625 -73.961029,40.780851999999996 -73.961466,40.780294 -73.961946,40.779587 -73.962383,40.779012 -73.962863,40.778388 -73.963343,40.777747 -73.96384499999999,40.777105999999996 -73.96439099999999,40.776334 -73.964871,40.775726 -73.96543799999999,40.77502 -73.96593899999999,40.774494 -73.966398,40.773770999999996 -73.96685599999999,40.773196 -73.967315,40.772523 -73.967817,40.7718 -73.96825299999999,40.771225 -73.96869,40.770585 -73.96914799999999,40.769991999999995 -73.969607,40.769368 -73.97006499999999,40.76871 -73.970501,40.768135 -73.970981,40.767511 -73.971397,40.766836999999995 -73.971898,40.766213 -73.972313,40.765605 -73.972793,40.764981 -73.97325099999999,40.764389 -73.97379099999999,40.764621 -73.976428,40.765651 -73.97926,40.766812 -73.981008,40.767575 -73.981464,40.767773999999996</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</feature:the_geom>
feature:poly_landmarks_LAND10.0</feature:poly_landmarks_LAND>
feature:poly_landmarks_CFCCD85</feature:poly_landmarks_CFCC>
feature:poly_landmarks_LANAMECentral Park</feature:poly_landmarks_LANAME>
feature:INTERSECTION_ID1</feature:INTERSECTION_ID>
</feature:poly_landmarks>
</gml:featureMember>
</wfs:FeatureCollection>
The input geometry doesn’t intersect any geometry.
Any ideas?
Thank you
Samanta
Paolo Crosato —21/12/2012 10.52.19—Hi, It looks like you are trying to get the intersection between a
Da: Paolo Crosato paolo.crosato@anonymised.com
Per: geoserver-users@lists.sourceforge.net
Data: 21/12/2012 10.52
Oggetto: Re: [Geoserver-users] Rif: Re: wps gs:IntersectionFeatureCollection
Hi,
It looks like you are trying to get the intersection between a collection of geometries and a single geometry. For that purpose, gs:Clip is faster and easier to implement than intersectionFeatureCollection, you can build a request with the wps integrated builder in geoserver against your dataset. If you need to clip with a rectangle, gs:rectangularClip is even faster.
I had a similar issue, look a this thread http://sourceforge.net/mailarchive/message.php?msg_id=30209330 .
A sample of code that works for me:
<?xml version="1.0" encoding="UTF-8"?>
ows:Identifiergs:Clip</ows:Identifier>
wps:DataInputs
wps:Input
ows:Identifierfeatures</ows:Identifier>
<wps:Reference mimeType=“text/xml” xlink:href="http://geoserver/wfs" method=“POST”>
wps:Body
<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:navteq=“navteq”>
<wfs:Query typeName=“navteq:comuni_ita”/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
wps:Input
ows:Identifierclip</ows:Identifier>
wps:Data
<wps:ComplexData mimeType=“application/wkt”></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
wps:ResponseForm
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.0”>
ows:Identifierresult</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
Regards,
Paolo
Il 21/12/2012 09:32, Samanta.Biasiolli@anonymised.com ha scritto:
Yes, in the GetFeature I put my attributes, but when I copied the request in this e-mail I deleted them
Any other ideas?
Thank you
Samanta
Martin Davis —20/12/2012 19.06.12—A couple of things that seem wrong are: - in the GetFeature element the xmlns:topp attribute is empt
Da: Martin Davis mdavis@anonymised.com
Per:
Cc: geoserver-users@anonymised.comeforge.net
Data: 20/12/2012 19.06
Oggetto: Re: [Geoserver-users] wps gs:IntersectionFeatureCollection
A couple of things that seem wrong are:
- in the GetFeature element the xmlns:topp attribute is empty
- in the Query element the typeName attribute is empty
On Thu, Dec 20, 2012 at 8:33 AM, <Samanta.Biasiolli@anonymised.com> wrote:
Hi,
I have a problem with wps intersectionFeatureCollection, this wps included geometry not doing intersection.
This is my code
ows:Identifiergs:IntersectionFeatureCollection</ows:Identifier>
wps:DataInputs
wps:Input
ows:Identifierfirst feature collection</ows:Identifier>
<wps:Reference mimeType=“text/xml; subtype=wfs-collection/1.0” xlink:href=“http://geoserver/wfs” method=“POST”>
wps:Body
<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:topp=“”>
<wfs:Query typeName=“”/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
wps:Input
ows:Identifiersecond feature collection</ows:Identifier>
wps:Data
<wps:ComplexData mimeType=“application/json”></wps:ComplexData>
</wps:Data>
</wps:Input>
wps:Input
ows:IdentifierintersectionMode</ows:Identifier>
wps:Data
wps:LiteralDataFIRST</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
wps:ResponseForm
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.0”>
ows:Identifierresult</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
Do you have any idea?
Thank you, I appreciate your effort.
Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e’ vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente.
The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
Die Informationen in dieser E-Mail-Mitteilung sind vertraulich und deren Verbreitung in jeglicher Art oder Form ist untersagt. Sollten Sie diese Nachricht irrtümlich erhalten haben, ersuchen wir Sie, sofort den Absender darüber zu informieren und die Mail zu löschen.
http://www.dedagroup.it
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e’ vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente.
The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
Die Informationen in dieser E-Mail-Mitteilung sind vertraulich und deren Verbreitung in jeglicher Art oder Form ist untersagt. Sollten Sie diese Nachricht irrtümlich erhalten haben, ersuchen wir Sie, sofort den Absender darüber zu informieren und die Mail zu löschen.
http://www.dedagroup.it
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmei n_12329d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Paolo Crosato
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
[http://p.sf.net/sfu/logmein_12329d2d](http://p.sf.net/sfu/logmein_12329d2d)``_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)
Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e’ vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente.
The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
Die Informationen in dieser E-Mail-Mitteilung sind vertraulich und deren Verbreitung in jeglicher Art oder Form ist untersagt. Sollten Sie diese Nachricht irrtümlich erhalten haben, ersuchen wir Sie, sofort den Absender darüber zu informieren und die Mail zu löschen.
http://www.dedagroup.it