Problems showing mapInfo text layer without OGR {Scanned} {Scanned}
Frederico Lucca
fredlucca at GMAIL.COM
Tue May 2 12:32:35 PDT 2006
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.
Maybe the problem is how to translate it to a shape file.
I already try to use:
ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB
ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB
But I have always the same problem.
Using OGR everything is ok...
#STYLEITEM "auto"
#CONNECTIONTYPE ogr
#CONNECTION "/var/www/maps/TB.TAB"
But according to Frank, I need a thread-safe environment and OGR is not
really threadsafe.
Thanks in advance,
Fred
On 5/2/06, Siki Zoltan <siki at agt.bme.hu> wrote:
>
> Hi Frederico,
>
> Tra something like this
>
> LAYER
> NAME "sample"
> DATA "path/to/your/shape"
> STATUS ON
> TYPE ANNOTATION
> LABELITEM "text_field_to_display"
> LABELMAXSCALE 8001
> SYMBOLSCALE 2000 # you need it for scaleable labels
> CLASS
> LABEL
> COLOR 240 150 5
> SIZE 7
> POSITION CC
> FONT my_font # defined in your FONTSET file
> TYPE TRUETYPE
> ANGLE AUTO
> END
> END
> END
>
> I hope this helps you
>
> Zoltan
>
> On Tue, 2 May 2006, Frederico Lucca wrote:
>
> > Hello all,
> >
> > I have a mapinfo text layer and i need to view it on the map.
> > I use ogr2ogr to convert to esri shape format and put in my mapfile but
> i
> > can't see the layer.
> > I have a multi-thread environment, then i don't want to use OGR, because
> of
> > mutex.
> >
> > LAYER
> > NAME TB
> > TYPE annotation
> > #STYLEITEM "auto"
> > #CONNECTIONTYPE ogr
> > #CONNECTION "/var/www/maps/TB.TAB"
> > DATA "/var/www/maps/shp/TB"
> > STATUS DEFAULT
> > MINSCALE 1
> > MAXSCALE 50000
> > CLASS
> > COLOR 255 0 0
> > OUTLINECOLOR 171 158 137
> > END
> > END
> >
> > Thanks in advance.
> >
> > Fred
> >
> > --
> > "Everything under the sun is in tune
> > But the sun is eclipsed by the moon"
> >
>
>
--
"Everything under the sun is in tune
But the sun is eclipsed by the moon"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060502/fabbc43b/attachment.htm>
More information about the MapServer-users
mailing list