TILEINDEX EXPRESSION = Seg Fault

Steve Lime steve.lime at DNR.STATE.MN.US
Thu Oct 6 20:40:10 PDT 2005


Hmmmm.... There is something odd about your layer definitions. You're refering to
the same tileindex (cities) for all 3 layers but have not used different tileitem values
or set a value for data. That doesn't seem like that can be correct. I can't see why that
would cause the segfault issue you mention but I can't see how it could work either.

Is that how it's supposed to be? 

Steve

>>> Shannon Scott <sscott at GWI.NET> 10/06/05 10:31 AM >>>
Hello,
I am reposting this message because no one responded.  Has anyone else
experienced this issue?
 
Recently we reorganized some data for map performance, and started using
the TILEINDEX Layer parameter.  I have noticed an issue with the
EXPRESSION parameter when used with TILEINDEX.
Here is the output from gdb ( debug enabled ):
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218562784 (LWP 4589)]
0x08065822 in msEvalExpression (expression=0x99f5b08, itemindex=0,
items=0x0, numitems=161833360)
    at maputil.c:106
106                      tmpstr = gsub(tmpstr, expression->items[i],
items[expression->indexes[i]]);
 
I'm not sure the best way to proceed from here.
I have noticed when I switch the map file back to using a shapefile with
the DATA Layer parameter, the problem goes away.
Any help or pointers are greatly appreciated.
Thank you for your time.
 
Take Care.
Shannon
 
Linux RedHat ES
Mapserver 4.6.1
Apache CGI
 
<mapfile snip>
LAYER
  NAME cities1
  TILEINDEX cities
  TYPE POINT
  STATUS default
  MAXSCALE 500000
  GROUP "cities"
 
            CLASS
                        NAME "Villages"
                        EXPRESSION ('[CNTYSEAT]' != 'Y' AND '[CAPITAL]'
!= 'Y')
 
              STYLE
               SYMBOL "circle"
               SIZE 3
               color 255 255 255
              END
            END  # CLASS  
  PROJECTION
    "proj=latlong"
  END    
END  # cities1 LAYER
 
LAYER
  NAME County1
  TILEINDEX cities
  TYPE POINT
  STATUS default
  MAXSCALE 1000000
  GROUP "cities"
 
            CLASS
            NAME "Counties"
            EXPRESSION ('[CNTYSEAT]' = 'Y' AND '[CAPITAL]' != 'Y')
 
             STYLE
              SYMBOL "circle"
              SIZE 7
              COLOR 0 0 0
             END
 
            END  # CLASS  
  PROJECTION
    "proj=latlong"
  END    
END  # County1 LAYER
 
LAYER
  NAME Capitals1
  TILEINDEX cities
  TYPE POINT
  STATUS default
  MAXSCALE 20000000
  GROUP "cities"
 
            CLASS
                        NAME "Capitals"
                        EXPRESSION ('[CAPITAL]' = 'Y')
                        SYMBOL pntcapital
                        SIZE 13
                        COLOR 168 0 132
            END  # CLASS  
  PROJECTION
    "proj=latlong"
  END    
END  # Capitals1 LAYER
 
</mapfile>
 
 



More information about the MapServer-users mailing list