| Message |
Hello,
I am developing an application to record vegetation changes as I walk along a riverbank.
I have made a custom toolbar. First i start a gps stream using the inbuilt tool. Upon clicking one of the custom buttons I am attempting to stop the gps stream, add a vertex from the current GPS position and then resume the GPS stream. When the first vertex of the section is added I would like my custom form to pop up (apl assocaited with my editable polyline file). I would like the information that is entered into this form to fill the attribute table for the section of polyline until the next time the "vegetation" button is clicked (i.e. until the next vertex is added). Then the next section will be filled with info filled in on the second time the form opens and so on along the riverbank.
So far I have managed to click on my vegetation button to add a vertex and start the gps stream, then when i next click on my button another vertex is added and my form opens. then the form opens only when every second vertex is added (i.e. the end vertex of the section.)
I would like this line to be continuous, so maybe adding a vertex is the wrong solution?
Bascially what I want to do is record the vegetation type at the start of my site, stream a gps line all along the riverbank, record where there is a vegetation change and then carry on with the gps stream.
There si one more thing that may complicate this. As I walk along the riverbank I also have a point file that i need to add gps points to along the way. I am hoping that i can add a point without interupting the gps stream function.
Help with this would be greatly appreaciated as I am very confused by the coding for all of it. I have posted some code below, which I believer to be switching the gps stream off, adding a vertex and then switching the gps stream back on. This sub is called when I click my custom button. But this code isn't working as it does not switch off the gps stream and no vertex ois actually added :(
Thanks!!
Luisa |