Edit/add value in mapinfo .tab file using python API

490 views
Skip to first unread message

Manikandan K

unread,
Aug 21, 2017, 8:46:12 AM8/21/17
to MapInfo-L
Hi,

i have mapinfo table with different layers, i want to add/update/delete certain column values based on some condition. currently im using mapbasic query. its bit time consuming so im looking for alternate ways for doing this. 

is it any other way to handle this? like other languages python something..

is it possible to update/edit mapinfo .tab file using OGR?


Advance Thanks,

Mani

Alex Eastwood

unread,
Aug 22, 2017, 4:54:42 AM8/22/17
to MapInfo-L
Hi,

You can convert the tab files to a different data format using OGR2OGR (or via QGIS for GUI) and then access it with Python if you find that easier, and then convert it back to .tab. If you are an experienced developer however you could probably just learn what you need from MapBasi, using the documentation.

Hope that helps,

Alex

Manikandan K

unread,
Aug 23, 2017, 12:37:07 AM8/23/17
to MapInfo-L
Thanks Alex for your suggestion.

actually i used recently OGR to read .tab file. its worked fine. mean while i trying to edit/delete existing tab file data but i couldn't find way to handle such case.
if u have any suggestion pls share with me.

Advance Thanks,
Mani

Richard Greenwood

unread,
Aug 23, 2017, 9:35:32 AM8/23/17
to mapinfo-l
Maybe you could provide a little more detail on what you are trying to do and/or what problems you are having. editing/deleting/updating data is usually best done in the database with SQL statements rather than in a programming language in which you set thru each record. 

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Richard W. Greenwood, PLS
www.greenwoodmap.com
Reply all
Reply to author
Forward
0 new messages