I don't see why not. I create features and programatically add them to tables all the time using the following sort of thing:-
var newFeature = new Feature(table.TableInfo.Columns)
...assign values to feature, create geometry etc....
table.InsertFeature(newFeature)
This works fine on Mapinfo Native tables, I don't use database connections so can't comment on that side of things. How are you trying to do it?
------------------------------
Liz Walker
------------------------------
Original Message:
Sent: 08-05-2020 04:27
From: Augustin Boyer
Subject: Insert feature in a thread (MapXtreme)
Hi Liz,
Thanks for your answer.
Ok, but do you have any idea if I can insert a feature automatically at regular interval?
Because the thread works, I have my coordinates each x seconds and I can create a point from them, the problems is when I try to insert it in a database.
------------------------------
Augustin Boyer
GEO RM
Jaunay-Marigny
------------------------------
Original Message:
Sent: 08-04-2020 13:14
From: Liz Walker
Subject: Insert feature in a thread (MapXtreme)
Hi Augustin
I don't think you can use a thread as the map catalogue is unique to each thread. By default you will have your map and map catalogue on the main UI thread. If you then try and access the map catalogue from a background thread it is not the same catalogue as you have on the UI thread.
Regards
Liz
------------------------------
Liz Walker