beginner: text region polyline point from MapInfo

Julien Buratto mapserver at LINKAS.IT
Mon Mar 5 06:00:32 EST 2007


Great, it works! thanks a lot!

Julien

Siki Zoltan ha scritto:
> Hi Julien,
> 
> ESRI shapes are only for points, lines and polygons (regions).
> Universal translator converts MapInfo texts to line elements and the
> text string to an attribute. So you can display them as an annotation type 
> layer.
> 
> So change your layer something like this
> 
>  LAYER
>  DEBUG OFF
>    NAME "text"
>    TYPE ANNOTATION
>    STATUS OFF
>    TILEINDEX "priamo_text.shp"
>    TILEITEM "location"
>    LABELITEM "TEXTSTRING"
>    CLASS
>      NAME "region"
>      LABEL
>        SIZE ?
>        TYPE TRUETYPE
>        FONT ???
>        COLOR ? ? ?
>        ANGLE "TEXT_ANGLE"
>      END
>    END
>  END
> 
> You must use truetype font to rotate text.
> 
> Zoltan
> 
> On Fri, 2 Mar 2007, Julien Buratto wrote:
> 
>> Rahkonen Jukka ha scritto:
>>> Hi,
>>>  
>>> Correct.  While MapInfo tab is database-like format and can contain everything you may have in MapInfo in a single file, ESRI shapefiles can only have one kind of features in one shapefile set.
>>>  
>>> -Jukka-
>> Great, so I'm getting it :-D
>> Next question is, what "type" should I use to draw texts ?
>> My layer containing text is:
>>
>> LAYER
>> DEBUG OFF
>>   NAME "text"
>>   TYPE point
>>   STATUS OFF
>>   TILEINDEX "priamo_text.shp"
>>   TILEITEM "location"
>>   CLASS
>>     NAME "region"
>>     STYLE
>> #      OUTLINECOLOR 120 120 120
>>       COLOR 0 0 0
>>
>>     END
>>   END
>> END # layer
>>
>> the MAP header is:
>>
>> MAP
>> NAME DEMO
>> IMAGECOLOR 255 255 255
>> SIZE 530 530
>> Extent 2285117.310158 4727319.440000 2431485.920000 4871301.690000
>> FONTSET ../etc/fonts.txt
>>
>> Thanks again
>>
> 
> 
> 



More information about the mapserver-users mailing list