[gdal-dev] How to export STYLE from Mapinfo to Shapefile?

Ralf Suhr Ralf.Suhr at itc-halle.de
Wed Jan 25 11:45:28 EST 2012


Hi Eduardo,

you can get the style information by using the sql-option of ogr2ogr.

-sql "SELECT *, OGR_STYLE FROM TESTE_NUMERACAO"


Gr
Ralf

On Mittwoch 25 Januar 2012 10:56:25 Eduardo Kanegae wrote:
> hi there,
> 
> I need to read mapinfo data from a file but:
> * when opening the mapinfo file using QGIS only ID field is displayed
> within attributes table
> * the attribute I need is set at STYLE property at mapinfo file
> 
> The result of an ogrinfo line dump is:
>  OGRFeature(TESTE_NUMERACAO):1536
>    ID (Integer) = 244106
>    *Style* =
> LABEL(t:"335",a:295.100000,s:2.759527g,c:#000000,p:1,f:"Arial") POINT
> (288636.59898806165 7465166.827180054)
> 
> I need Style->Label->t value to be converted to a shapefile column (335
> value).
> 
> Is there any parameter to use with ogr2ogr to export this value?
> 
> thanks in advance
> 
> Eduardo Patto Kanegae
> http://www.webmapit.com | @webmapit
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120125/21de0b17/attachment.html


More information about the gdal-dev mailing list