WFS: Problems with multipolygons

Fernando Simon fsimon at UNIVALI.BR
Sun May 20 23:15:08 EDT 2007


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