WFS: Problems with multipolygons

Teemu Makela teemu.makela at ARBONAUT.COM
Tue May 22 01:32:44 PDT 2007


Version of the MapServr is 4.10.1.

Where I could find version 4.10.3 or is it the SVN version. Current version
seems to be 4.10.2 (http://mapserver.gis.umn.edu/download/current).

Teemu

On Mon, 21 May 2007 13:31:31 -0500, Steve Lime <Steve.Lime at DNR.STATE.MN.US>
wrote:

>What version of MapServer are we talking about here? There were some
problems with
>certain multi-part features in older version of MapServer (I don't recall
exact version numbers
>but can check). I believe Bart identified a test case that the fix was
based on. The problem
>was in the GML encoder. 4.10.3 should be fine.
>
>Steve
>
>>>> On 5/20/2007 at 10:15 PM, in message <46510EBC.9030808 at univali.br>,
Fernando
>Simon <fsimon at UNIVALI.BR> wrote:
>> Hi Teemu,
>>     Sorry for the delay to reply you message.
>>     About this error, did you already tried to draw a map in CGI mode, 
>> just to test all the polygons? Dis you already try to restrict the 
>> objects in the data definition. Like: "GEOLOC FROM (SELECT ID_X, GEOLOC 
>> TABLE_X WHERE ID_X = XXXXX) USING UNIQUE ID_X". Where the XXXXX is the 
>> id for the object that are not draw?
>>     About the objects, all have the same attributes, like SRID, GTYPE 
>> and ETYPE?
>>     I'm a not WFS specialist, I believe that the Bart can help in this 
>> way, I can help with the Oracle relate issues.
>>     Best regards.
>> 
>> --------------------------------------------------
>> Fernando Simon
>> UMN Mapserver and Oracle Spatial developer
>> --------------------------------------------------  
>> 
>> 
>> Teemu Makela wrote:
>>> More information related to this issues.
>>>
>>> I tested the same layer through WMS and WFS. Layer works fine through WMS
>>> but WFS omits all execpt one part of the multipolygon. At below you will
>>> also find the mapfiles.
>>>
>>> See attached image "MapServer_WMS" which contains a multipolygon (5 parts
>>> with label 10404).
>>>
>>> See another attached image "MapServer_WFS_missing_polygons_labels_from_WMS".
>>> On this image only one piece of the multipolygon is visible. Labels are from
>>> WMS layer just to show that there should be more data (label is variable
>>> ID_X from mapfiles).
>>>
>>> Is it so that MapServer's WFS just cannot handle multipolygons or am I doing
>>> something wrong? 
>>>
>>> ---- Mapfiles ----
>>> WMS layer drawing polygons:
>>>
>>> LAYER
>>> 	  NAME XXXXXX
>>> 	
>>> 	  TYPE POLYGON
>>> 	  STATUS ON
>>> 		
>>> 	  CONNECTIONTYPE oraclespatial
>>> 	  CONNECTION "xxx/xxx at xxx.xxx.com"
>>> 	  DATA "GEOLOC FROM TABLE_X USING UNIQUE ID_X"
>>> 		
>>> 	  PROJECTION
>>> 	    "init=epsg:2393"
>>> 	  END
>>> 		
>>> 	  CLASS
>>> 	    NAME "GEOMETRIA"
>>> 	    STYLE
>>> 	      OUTLINECOLOR 200 200 200
>>> 	      COLOR 255 0 0
>>> 	    END
>>> 	  END
>>> END
>>>
>>> WFS layer trying to draw polygons:
>>>
>>> LAYER
>>>   NAME XXXXXX
>>>   METADATA
>>>     "wfs_title"				"XXXXXXXX"				
>>>     "wfs_extent"				"XXX XXX XXX XXX"	
>>>     "gml_featureid"			"ID_X"
>>>     "gml_include_items"			"all"
>>>   END
>>>   TYPE POLYGON
>>>   STATUS ON
>>> 	
>>>   CONNECTIONTYPE oraclespatial
>>>   CONNECTION "xxx/xxx at xxx.xxx.com"
>>>   DATA "GEOLOC FROM TABLE_X USING UNIQUE ID_X"
>>> 	
>>>   PROJECTION
>>>     "init=epsg:2393"
>>>   END
>>> 	
>>>   DUMP TRUE
>>>   CLASS
>>>     NAME "GEOMETRIA"
>>>     STYLE
>>>       OUTLINECOLOR 200 200 200
>>>     END
>>>   END
>>> END
>>>
>>> Teemu
>>>   
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>>



More information about the MapServer-users mailing list