Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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++){

   int.execute({
                 inputs: {
                          a: selected.features[0].geometry,
                          b: segment_layer.features[i].geometry
                         },
                 success: function(outputs) {
                                             map.layers[3].addFeatures(outputs.result);
                                            }
   });


   }

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.