Hi All,
This one is probably aimed at NathanW because I know he has done some work on this exporting symbology from MapINFO to QGIS in the past. It is more related to GDAL and MapINFO rather than QGIS but I thought I would start asking questions locally before spreading further out.
I have written some python code that allow me to read in a mapinfo TAB file and then write it into various external file formats and from those create on the fly TAB files. This is mostly for working with style sheets for our data collection app. The idea is that a user can log into the web interface and select layer symbology for their styles and then write themselves a new TAB file with the styles in it.
Anyway; I can read in TAB files, store them as text and then write them out to TAB files and I can write them such that the geometry I want to display is being displayed (Lines, points and Polygons).
Point Symbology is giving me a headache though. I can read the style string in, in this case something like the following string;
SYMBOL(a:0,c:#ff0000,s:36pt,id:"mapinfo-sym-196,ogr-sym-1",o:#000000)
I can write this string to a new TAB file AND read it out of the new tab file and it looks the same BUT when I open the TAB file in MapINFO only symbols with the ID string of mapinfo-sym-{0 to 67} actually show up as a styled symbol. Everything else shows up as a square. As you can see, I read a symbol with a number of 196 in. Surly if I read that in and write it out EXACTLY as I read it, the symbology should be applied appropriately?
How did you get them to work when you write your Mapinfo to QGIS style converter?
Hopeing you can add some light to my problem and point me in the appropriate direction!
This module is pretty much almost written exactly how i want it to work EXCEPT for the symbology application issues.
Regards,
David Crisp