Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hy! I am trying to make an application which will test if any of the segments (multi line layer acquired from GeoServer) intersects with polygon acquired using OpenLayers.Protocol.WFS.fromWMSLayer, and if it does add it to the map. After the polygon has been selected it's added to an empty vector layer which is then used as an input in WPS.Client. The code looks like this:

int = client.getProcess('server', 'JTS:intersection');

   for (var i=0; i<v_layer.features.length+1; i++){

                 inputs: {
                          a: selected.features[0].geometry,
                          b: segment_layer.features[i].geometry
                 success: function(outputs) {


This works, when I tested it on just a few segments, but since this layer contains about 200 of them it crashes the browser. I couldn't find any other WPS process that i could use other than JTS:intersection.

Any suggestions?

Thank you for your time.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.