-
Notifications
You must be signed in to change notification settings - Fork 142
Annotorious saving data (annotations/coordinate) in database #178
Comments
This is the example in my code for Add Update And Delete.
|
but does it get current annotation being edited/added? I mean I have to either use loop as getAnnotation() is not help ful |
is there any id associated with annotation object? I mean how will I come to know which annotation to update in case of onAnnotationUpdated. @gunturbudi |
@FlyingBugs I iterate my array(which I get from db) searching for a annotation with the same geography. Unfortunately an annotation does not have a unique id |
@gunturbudi I am trying similar thing where I am persisting annotation co-ordinates in database. But for single annotation drawn, 'onAnnotationCreated' event is getting executed arbitrary number of times. Sometimes the event is executed once or thrice or six times for single annotation drawn on image. Did you face any such issue while persisting data in database? |
@jaikishangurav Did you set the handler inside a controller ? |
If somebody needs the solution to add, edit and delete annotation data in json file. In the zip file you will find index.php, add.php, delete.php and update.php file. (you still need to download the annotorious library). The base code provided by @gunturbudi. Thank you. |
Bay-dice i have been using your json files and retrofitting them to SQL, i have the add working fine and the update and delete is bring across the text variable but my id reads blank, there for my SQL query fails? and idea what i have got wrong. |
ID is defined in anno.addHandler try to add Also if you are using a database you can have id column with auto increment so you don't need to deal with that in the code. |
Has anyone used Freehand selector and saved coordinates ? I am not being able to make it working. |
Solution to add, edit and delete annotation data in json file was very helpfull. I need your help in add, edit and delete annotation data in json file for polygon annotation @bay-dice . |
Hi,
I would like to save the coordinates and the annotations, I can not understand how to do it, but I'm not very experienced with programming.
I have seen several posts including this:
Https://groups.google.com/forum/#!topic/annotorious/BlnboEveCmI
but is a bit old,
Are there easy way to do that or an examples to use? thank you so much
The text was updated successfully, but these errors were encountered: