labels truncated at 256 chars

Francesco Sozzi fsozzi at INTERCAD.CH
Thu May 24 03:00:10 EDT 2007


Hi Umberto!

Great!!! It works!

Thank you very much for suggestion.

Best regards

Francesco

----- Original Message ----- 
From: "Umberto Nicoletti" <umberto.nicoletti at GMAIL.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Thursday, May 24, 2007 8:46 AM
Subject: Re: [UMN_MAPSERVER-USERS] labels truncated at 256 chars


This is almost surely a limitation of oracle spatial.
You could try to recompile mapserver after editing the
maporaclespatial.c file at about line 58 where it says:

#define TEXT_SIZE                  256

and set TEXT_SIZE to a higher number.
HTH,
Umberto

On 5/24/07, Francesco Sozzi <fsozzi at intercad.ch> wrote:
> Hi Steve and Fernando,
>
> Thanks for your support and fast answer.
>
> I am using Oracle Spatial 9i on Mapserver 4.10.1 compiled by Visual Studio
> .NET 2003  (Everithing very stable from several years).
> Do you think it is something related to Oracle?...
>
> Here you are my layer definition:
>
> LAYER
>  NAME "Voli"
>  TYPE POINT
>  CONNECTIONTYPE oraclespatial
>  CONNECTION "ti_externals/avs at franz"
>  DATA "GEOM FROM (SELECT fid,label,geom FROM ic_voli) USING UNIQUE fid"
>  LABELITEM "label"
>  STATUS DEFAULT
>
>  CLASS
>   NAME 'Volo'
>   SYMBOL 'circle'
>   SIZE 10
>   COLOR 255 0 0
>   TEMPLATE "templates/default.html"
>   LABEL
>    COLOR 0 0 0
>    TYPE TRUETYPE
>    FONT arial
>    SIZE 8
>    ANGLE AUTO
>    BUFFER 2
>    OFFSET 0 -10
>    FORCE TRUE
>    WRAP '@'
>   END
>  END
> END
>
>
> Best regards
>
> Francesco
>
> ----- Original Message -----
> From: "Steve Lime" <Steve.Lime at DNR.STATE.MN.US>
> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
> Sent: Thursday, May 24, 2007 6:47 AM
> Subject: Re: [UMN_MAPSERVER-USERS] labels truncated at 256 chars
>
>
> I created a quick test case using inline features and can render more than
> 256 chars, 322 in my example. Must be a data driver issue. What data 
> source
> are you using? With shapefiles I thought the limit in a single column was
> 256 chars.
>
> Steve
>
> >>> Steve Lime <Steve.Lime at DNR.STATE.MN.US> 05/23/07 5:49 PM >>>
> I didn't think this was a limitation, lemme check and reply back...
>
> Steve
>
> >>> Francesco Sozzi <fsozzi at INTERCAD.CH> 05/23/07 7:20 AM >>>
> Hi All,
>
> Anybody has a workaround to display labels longer than 256 chars?
> Or may be any suggestions on where to modify mapserver code?
>
> Best regards
>
> Francesco
>
>
> __________ Informazione NOD32 2287 (20070523) __________
>
> Questo messaggio  è stato controllato dal Sistema Antivirus NOD32
> http://www.nod32.it
>


__________ Informazione NOD32 2287 (20070523) __________

Questo messaggio  è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it



More information about the mapserver-users mailing list