[Qgis-user] Polygon colours in existing shape files

KubaZ zbudniewkowo at interia.pl
Fri Oct 8 05:12:18 PDT 2010


  On MapInfo side: There are MapBasic functions that read object style 
values. You can use them to populate the attribute table with the 
styles. This should then be possible without mif/mid export.
On QGis side: make use of the style values already in attribute table, 
by translating them into qgis styles. I don't know yet how to automate it :)
Maybe creating an external dictionary table mapping MI styles onto qgis 
styles would be helpful.
In case your polygons have an attribute that differentiate the style, 
you can just create qgis styles from the scratch in a table or text file 
and use (python?) script in qgis to apply them to a layer. If not, 
"Select objects by style" function is a part of MapCAD toolset in MIPro 
you can use to differentiate polygons.

Personally, I find storing styles inside of tab file the MIPro 
advantage. In qgis you always get a random style unless you save a project.
Command line (MapBasic window equivalent) in QGIS would be a great feature.

Bests,
KubaZ


> I have a number of files that are full of filled polygons, which are available as .shp or .tab files. Most of these files represent geological data, so the colours of the polygons are an important part of visually identifying the data. When I was using these in Mapinfo (and from what I saw in Arc) they would come up with the predefined colours consistently.
>
> When I open these up in Qgis, it does not appear to honour these colours (regardless of whether I open the shp or tab file).
> Is there a way to get Qgis to use these colours?
>
> If there isn't, is there a quicker way of getting these colours back to what I'm expecting?
> At the moment the best I can see is to group them by the code fields and then redo do hundreds of code colours.
>
> -ramon.

----------------------------------------------------------------------
Grasz iiiii....wygrywasz!!! Bilet na final Ligi Mistrzow!
http://linkint.pl/f282c




More information about the Qgis-user mailing list