[mapserver-users] Truncated msGMLOutput

Daniel Morissette dmorissette at mapgears.com
Thu Jan 7 14:37:09 EST 2010


My first guess would be that the mapserv process aborts (seg faults?).

I'd suggest you enable MS_ERRORFILE/DEBUG at both the map and layer 
level and look for any hints in the debug output. Also check your Apache 
error_log for signs of a seg fault (not sure if you'd see anything on 
Windows though).

Daniel



Yves Moisan wrote:
> Hi All,
> 
> I have a truncated msGMLOutput document for one of my layers and I fail
> to understand where the problem is.  It looks similar to
> http://trac.osgeo.org/mapserver/ticket/779 but for GetFeatureInfo.  I'm
> running MS 5.2.1 under windows.  I tried to run the query on the
> commandline and here's what I get : 
> 
> E:\mydir\ms4w\Apache\cgi-bin>mapserv
> "QUERY_STRING=map=../mapfiles/mymapfile.map&QUERY_LA
> YERS=stations&LAYERS=stations&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION
> =1.0.0&SRS=EPSG%3A32644&BBOX=373865.273287%2C2090503.076491%
> 2C374934.203341%2C2090907.506727&X=406&Y
> =293&INFO_FORMAT=gml%3B%20charset%3Diso-8859-1&FEATURE_COUNT=1000"
> 
> Content-type: text/xml
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <msGMLOutput
>          xmlns:gml="http://www.opengis.net/gml"
>          xmlns:xlink="http://www.w3.org/1999/xlink"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <stations_layer>
> 
> I guess there's something wrong in my layer definition but I can't see
> it so here it is :
> 
> LAYER
> 	NAME 'stations'
> 	TYPE POINT
> 	DUMP TRUE
> 	STATUS On
> 	TEMPLATE void
> 	CLASSITEM e_cat_station_type_id
> 	CONNECTION 'user=user password=pwd dbname=mydb host=localhost
> port=5433'
> 	CONNECTIONTYPE POSTGIS
> 	DATA '"the_geom_dummy_32644" FROM "e_cat_station" USING UNIQUE
> e_cat_station_id USING SRID=32644'
> 
> 	METADATA 
>           'DESCRIPTION' 'Stations'
>           'LAYER_ENCODING' 'UTF-8'
>           "wms_title"  "Monitoring station"
>           "wms_srs"  "EPSG:32644"
>           "gml_include_items" "all"
>     	END  # Metadata
> 
> 	TRANSPARENCY 100
> 	TOLERANCE 5
> 
> 	CLASS
> 		NAME "Number7"
> 		EXPRESSION "7"
> 		STYLE
>   		  SYMBOL 'circle'
>   		  OUTLINECOLOR 0 0 0
>             	  COLOR 0 255 0
>   		  SIZE 18
> 		END
> 	END
> 	CLASS
> 		NAME "All Stations"
> 		STYLE
> 		  SYMBOL 'circle'
> 		  OUTLINECOLOR 0 0 0
>           	  COLOR 255 0 0
> 		  SIZE 6
> 		END
> 	END
> 
> 	
>   END  # Layer
> 
> The layer shows well (except for the CLASSITEM which I have to sort out,
> but that's another issue).  What am I doing wrong and also how can a
> truncated XML be generated like this ?
> 
> TIA,
> 
> Yves Moisan
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list