Ok, thanks a lot.<br>I found the solution using MapInfo Universal Translator as you describe and it creates 3 fields, with text, size and angle.<br>With ogr2ogr I couldn't reach a usefully shape.<br><br>Problem solved.<br>
Thanks again.<br><br>Best Regards,<br><br>Fred<br><br><div><span class="gmail_quote">On 5/2/06, <b class="gmail_sendername">Siki Zoltan</b> &lt;<a href="mailto:siki@agt.bme.hu">siki@agt.bme.hu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Shape file cannot store text features. When ogr2ogr convert mapinfo text<br>features to shape file it changes text to point shape features.<br>My layer definition is usefull if you have line features which gives the<br>insertion points and directions of texts. I usually use MapInfo Universal
<br>translator to create such shapes :(<br>Another solution could be to have point features and direction attribute<br>beside the text to display.<br><br>Unfortunatelly I cannot tell you how to reach that shape with ogr2ogr :(
<br><br>Zoltan<br><br>On Tue, 2 May 2006, Frederico Lucca wrote:<br><br>&gt; Thanks for the help, but I think the problem is that the text i have in my<br>&gt; mapinfo file don't have a text field to display. The feature is a text.
<br>&gt; Maybe the problem is how to translate it to a shape file.<br>&gt; I already try to use:<br>&gt;<br>&gt; ogr2ogr -f &quot;ESRI Shapefile&quot; -nlt POINT shp/TB.shp TB.TAB<br>&gt; ogr2ogr -f &quot;ESRI Shapefile&quot; shp/TB.shp 
TB.TAB<br>&gt;<br>&gt; But I have always the same problem.<br>&gt;<br>&gt; Using OGR everything is ok...<br>&gt;<br>&gt; #STYLEITEM &quot;auto&quot;<br>&gt; #CONNECTIONTYPE ogr<br>&gt; #CONNECTION &quot;/var/www/maps/TB.TAB&quot;
<br>&gt;<br>&gt; But according to Frank, I need a thread-safe environment and OGR is not<br>&gt; really threadsafe.<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; Fred<br>&gt;<br>&gt; On 5/2/06, Siki Zoltan &lt;<a href="mailto:siki@agt.bme.hu">
siki@agt.bme.hu</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi Frederico,<br>&gt; &gt;<br>&gt; &gt; Tra something like this<br>&gt; &gt;<br>&gt; &gt; LAYER<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;sample&quot;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;path/to/your/shape&quot;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE ANNOTATION<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELITEM &quot;text_field_to_display&quot;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELMAXSCALE 8001<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOLSCALE 2000 # you need it for scaleable labels
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 240 150 5<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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, 2 May 2006, Frederico Lucca wrote:<br>&gt; &gt;<br>&gt; &gt; &gt; Hello all,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I have a mapinfo text layer and i need to view it on the map.
<br>&gt; &gt; &gt; I use ogr2ogr to convert to esri shape format and put in my mapfile but<br>&gt; &gt; i<br>&gt; &gt; &gt; can't see the layer.<br>&gt; &gt; &gt; I have a multi-thread environment, then i don't want to use OGR, because
<br>&gt; &gt; of<br>&gt; &gt; &gt; mutex.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; LAYER<br>&gt; &gt; &gt;&nbsp;&nbsp;NAME TB<br>&gt; &gt; &gt;&nbsp;&nbsp;TYPE annotation<br>&gt; &gt; &gt;&nbsp;&nbsp;#STYLEITEM &quot;auto&quot;<br>&gt; &gt; &gt;&nbsp;&nbsp;#CONNECTIONTYPE ogr
<br>&gt; &gt; &gt;&nbsp;&nbsp;#CONNECTION &quot;/var/www/maps/TB.TAB&quot;<br>&gt; &gt; &gt;&nbsp;&nbsp;DATA &quot;/var/www/maps/shp/TB&quot;<br>&gt; &gt; &gt;&nbsp;&nbsp;STATUS DEFAULT<br>&gt; &gt; &gt;&nbsp;&nbsp;MINSCALE 1<br>&gt; &gt; &gt;&nbsp;&nbsp;MAXSCALE 50000<br>
&gt; &gt; &gt;&nbsp;&nbsp;CLASS<br>&gt; &gt; &gt;&nbsp;&nbsp; COLOR 255 0 0<br>&gt; &gt; &gt;&nbsp;&nbsp; OUTLINECOLOR 171 158 137<br>&gt; &gt; &gt;&nbsp;&nbsp;END<br>&gt; &gt; &gt; END<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks in advance.<br>&gt; &gt; &gt;<br>
&gt; &gt; &gt; Fred<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; &quot;Everything under the sun is in tune<br>&gt; &gt; &gt; But the sun is eclipsed by the moon&quot;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;
<br>&gt;<br>&gt;<br>&gt; --<br>&gt; &quot;Everything under the sun is in tune<br>&gt; But the sun is eclipsed by the moon&quot;<br>&gt;<br><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Everything under the sun is in tune
<br>But the sun is eclipsed by the moon&quot;