Re: [mapserver-users] Issue with label offset

2017-03-01 Thread thomas bonfort
So it seems the offsetter is failing on some line coordinates, and may
happen only in A rather than B because they differing due to the different
projections used. Try getting a backtrace of the crash, and/or create a
self-contained testcase that consistently reproduces the issue.

--
thomas

On Tue, Feb 28, 2017 at 4:21 PM Björn Danielsson 
wrote:

> We are using different mapfiles for different users and sometimes over the
> same geographical area.
>
> Funny thing is that in one of the cases where two mapfiles cover the same
> area a label for a line works ok in  mapfile A but not in mapfile B despite
> the fact that the label code for one particular line feature is identical
> in the two mapfiles.
>
> I have traced this to OFFSET. OFFSET 3 99 works in mapfile A but gives
> Error 500 Internal Server Error in mapfile B. On the other hand OFFSET 1 99
> and -2 99 works fine in mapfile B.
>
> The two mapfiles use different epsg and have different scale levels and as
> far as I can see that is the only thing that differs.
>
> I can contribute with more data if anyone will dig into this.
>
>LABEL
> TEXT   "[text]"
> COLOR  0 0 255
> OUTLINECOLOR 255 255 255
> TYPE   TRUETYPE
> FONT   arial
> SIZE   8
> ANTIALIAS  FALSE
> POSITION   CC
> PARTIALS   FALSE
> FORCE  TRUE
> MINDISTANCE 0
> BUFFER  0
> ANGLE  FOLLOW
> MAXOVERLAPANGLE 180
> OFFSET 3 99
>   END
>
> Björn Danielsson
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Issue with label offset

2017-02-28 Thread Björn Danielsson
We are using different mapfiles for different users and sometimes over the 
same geographical area.

Funny thing is that in one of the cases where two mapfiles cover the same 
area a label for a line works ok in  mapfile A but not in mapfile B despite 
the fact that the label code for one particular line feature is identical in 
the two mapfiles.

I have traced this to OFFSET. OFFSET 3 99 works in mapfile A but gives Error 
500 Internal Server Error in mapfile B. On the other hand OFFSET 1 99 and -2 
99 works fine in mapfile B.

The two mapfiles use different epsg and have different scale levels and as 
far as I can see that is the only thing that differs.

I can contribute with more data if anyone will dig into this.

   LABEL
TEXT   "[text]"
COLOR  0 0 255
OUTLINECOLOR 255 255 255
TYPE   TRUETYPE
FONT   arial
SIZE   8
ANTIALIAS  FALSE
POSITION   CC
PARTIALS   FALSE
FORCE  TRUE
MINDISTANCE 0
BUFFER  0
ANGLE  FOLLOW
MAXOVERLAPANGLE 180
OFFSET 3 99
  END

Björn Danielsson___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users