Re: [JPP-Devel] Hi: Startpoint/Endpoint X and Y with BeanShell

2013-04-02 Thread Michaël Michaud
Hi, > Thanks a lot for the improvements. However, I would like to ask you to help > with one more fix. Now the script fires the requests automatically and it is > dangerous if user has selected a layer with thousands of features. Could you > show how to limit the maximum number of requests to 1

Re: [JPP-Devel] Hi: Startpoint/Endpoint X and Y with BeanShell

2013-04-02 Thread Rahkonen Jukka
Hi Michaël, Thanks a lot for the improvements. However, I would like to ask you to help with one more fix. Now the script fires the requests automatically and it is dangerous if user has selected a layer with thousands of features. Could you show how to limit the maximum number of requests to

Re: [JPP-Devel] Hi: Startpoint/Endpoint X and Y with BeanShell

2013-04-01 Thread Michaël Michaud
Hi Jukka, Good job, With a few more lines, you can get the path in your map (hereafter, kml parsing is very crude, but it shows how powerful beanshell scripting can be). { import com.vividsolutions.jts.geom.*; import com.vividsolutions.jts.io.WKTReader; import com.vividsolutions.jump.feature.*;