Problem setting inline feature from URL

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCAN.GC.CA
Thu Dec 15 05:59:47 PST 2005


Hello,

Using MapServer 4.6.1, I'm trying to set the points of an inline feature
through the URL using map_layername_feature_points, but mapserver crashes :(

Putting the points straight in the mapfile works fine, so it seems to have
to do with the fact I'm doing it through the URL ...

The layer definition looks like this:

LAYER
  NAME coordinatepointer
  TYPE point
  STATUS off
  METADATA
    LEGEND_ORDER "-1"
    CHECKABLE "0"
  END
  CLASS
    SYMBOL arrow
    SIZE 30
    COLOR 0 0 0
  END
  FEATURE
    POINTS 1510565.6023157164 -170397.98957041 END
  END
END

And the URL to the CGI, when needed, will have this added to it:

&map_coordinatepointer_status=default&map_coordinatepointer_feature_points=1
510565.6023157164%20-170397.98957041

Without "map_coordinatepointer_feature_points" everything works fine ...
With it, Apache gives me an Internal Server Error, premature end of script
hearders.

The debugging looks like this (Thanks for the tip Tom!):

(gdb) set args
QUERY_STRING="map=/home/mapdata/aoc_v3/english/pb_ntdb_ms46_dec6.map&map_web
_template=/home/mapdata/aoc_v3/to_zope_new.html&mapxy=1510565.6023157164+-17
0397.98957041&scale=80000&map_scalebar_imagecolor=255+255+255&layers=other_f
eatures+million_grid+t50k_grid+grid_50k_3+roads+hydrography+boundary+builtup
+vegetation+populated_places+railway+power_network+manmade_features+designat
ed_areas+water_features+water_saturated_soils+relief+contours+toponymy+conto
ur&map_coordinatepointer_status=default&map_coordinatepointer_feature_points
=1510565.6023157164%20-170397.98957041&mapsize=428+380"
(gdb) r
Starting program: /home/atlas-prod/cgi-bin/mapserv461
QUERY_STRING="map=/home/mapdata/aoc_v3/english/pb_ntdb_ms46_dec6.map&map_web
_template=/home/mapdata/aoc_v3/to_zope_new.html&mapxy=1510565.6023157164+-17
0397.98957041&scale=80000&map_scalebar_imagecolor=255+255+255&layers=other_f
eatures+million_grid+t50k_grid+grid_50k_3+roads+hydrography+boundary+builtup
+vegetation+populated_places+railway+power_network+manmade_features+designat
ed_areas+water_features+water_saturated_soils+relief+contours+toponymy+conto
ur&map_coordinatepointer_status=default&map_coordinatepointer_feature_points
=1510565.6023157164%20-170397.98957041&mapsize=428+380"
[New Thread 1024 (LWP 4466)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4466)]
0x08074cd4 in msAddLine ()
(gdb) bt
#0  0x08074cd4 in msAddLine ()
#1  0x08065235 in loadLayerString ()
#2  0x0806b35a in msLoadMapString ()
#3  0x080500c7 in loadMap ()
#4  0x08052b06 in main ()
#5  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

Any ideas?

Thanks,

Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410



More information about the MapServer-users mailing list