Problems showing mapInfo text layer without OGR {Scanned} {Scanned} {Scanned}
Frederico Lucca
fredlucca at GMAIL.COM
Tue May 2 13:56:43 PDT 2006
Ok, thanks a lot.
I found the solution using MapInfo Universal Translator as you describe and
it creates 3 fields, with text, size and angle.
With ogr2ogr I couldn't reach a usefully shape.
Problem solved.
Thanks again.
Best Regards,
Fred
On 5/2/06, Siki Zoltan <siki at agt.bme.hu> wrote:
>
> Shape file cannot store text features. When ogr2ogr convert mapinfo text
> features to shape file it changes text to point shape features.
> My layer definition is usefull if you have line features which gives the
> insertion points and directions of texts. I usually use MapInfo Universal
> translator to create such shapes :(
> Another solution could be to have point features and direction attribute
> beside the text to display.
>
> Unfortunatelly I cannot tell you how to reach that shape with ogr2ogr :(
>
> Zoltan
>
> On Tue, 2 May 2006, Frederico Lucca wrote:
>
> > 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"
> >
>
>
--
"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/b2d266e2/attachment.htm>
More information about the MapServer-users
mailing list