Other information...<br><br># ogrinfo -al TB.TAB<br><br>OGRFeature(TB):1734<br> Rotulo (String) =<br> Style = LABEL(t:"TIRADENTES",a:0.000000,s:0.000403g,c:#ff0000,p:1,f:"Arial")<br> POINT (-39.302056999999998
-7.230767)<br><br>I want the "TIRADENTES" string in my map, but it's a style in mapinfo file.<br><br>Best regards,<br><br>Fred<br><br><div><span class="gmail_quote">On 5/2/06, <b class="gmail_sendername">Frederico Lucca
</b> <<a href="mailto:fredlucca@gmail.com">fredlucca@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">
Thanks for the help, but I think the problem is that the text i have in my mapinfo file don't have a text field to display. The feature is a text.<br>Maybe the problem is how to translate it to a shape file.<br>I already try to use:
<br><br>ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB<br>ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB<br><br>But I have always the same problem.<br><br>Using OGR everything is ok...</div><div style="direction: ltr;">
<span class="q"><br><br>
#STYLEITEM "auto"<br>#CONNECTIONTYPE ogr<br>#CONNECTION "/var/www/maps/TB.TAB"<br><br></span></div><div style="direction: ltr;">But according to Frank, I need a thread-safe environment and OGR is not really threadsafe.
<br><br>Thanks in advance,
<br><br>Fred</div><div style="direction: ltr;"><span class="e" id="q_10af696717e7d7a6_3"><br><br>
<div><span class="gmail_quote">On 5/2/06, <b class="gmail_sendername">Siki Zoltan</b> <<a href="mailto:siki@agt.bme.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">siki@agt.bme.hu</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Frederico,<br><br>Tra something like this<br><br>LAYER<br> NAME "sample"<br> DATA "path/to/your/shape"<br> STATUS ON<br> TYPE ANNOTATION<br> LABELITEM "text_field_to_display"
<br> LABELMAXSCALE 8001<br> SYMBOLSCALE 2000 # you need it for scaleable labels<br> CLASS<br> LABEL<br> COLOR 240 150 5<br> SIZE 7<br> POSITION CC
<br> FONT my_font # defined in your FONTSET file<br> TYPE TRUETYPE<br> ANGLE AUTO<br> END<br> END<br>END<br><br>I hope this helps you
<br><br>Zoltan<br><br>On Tue, 2 May 2006, Frederico Lucca wrote:<br><br>> Hello all,<br>><br>> I have a mapinfo text layer and i need to view it on the map.<br>> I use ogr2ogr to convert to esri shape format and put in my mapfile but i
<br>> can't see the layer.<br>> I have a multi-thread environment, then i don't want to use OGR, because of<br>> mutex.<br>><br>> LAYER<br>> NAME TB<br>> TYPE annotation<br>> #STYLEITEM "auto"
<br>> #CONNECTIONTYPE ogr<br>> #CONNECTION "/var/www/maps/TB.TAB"<br>> DATA "/var/www/maps/shp/TB"<br>> STATUS DEFAULT<br>> MINSCALE 1<br>> MAXSCALE 50000<br>> CLASS<br>> COLOR 255 0 0
<br>> OUTLINECOLOR 171 158 137<br>> END<br>> END<br>><br>> Thanks in advance.<br>><br>> Fred<br>><br>> --<br>> "Everything under the sun is in tune<br>> But the sun is eclipsed by the moon"
<br>><br><br></blockquote></div><br><br clear="all"><br></span></div><div style="direction: ltr;">-- </div><div style="direction: ltr;"><span class="e" id="q_10af696717e7d7a6_5"><br>"Everything under the sun is in tune
<br>But the sun is eclipsed by the moon"
</span></div></blockquote></div><br><br clear="all"><br>-- <br>"Everything under the sun is in tune<br>But the sun is eclipsed by the moon"