[Mapbender-dev] gml:featureMember with more than one geometry

Arnulf Christl (CCGIS) arnulf.christl at ccgis.de
Tue Mar 7 04:25:02 EST 2006


> Hi list,
> when I made a Gazetteer request on geometries with "islands" (that is a
> gml:featureMember element with  ) I did not get the whole geometry but
> only the last one. I am requesting a UMN Mapserver WFS (but I once
> encountered the same with a Geoserver WFS). Finally I moved a counter in
> another if condidtion in the parsegml function in classes/class_gml2.php.
>
> I am not sure if this is a general problem or only a specific solution.
> Could you please check it out once you got time (and maybe appropriate
> geometries)? See the code snippet below:

Hi,
thanx for the info. The dev group is somewhat decimated due to illness and
holidays, so we will act upon this with a few days relay.

Best,

> // classes/class_gml2.php - parsegml($req):
> changed
> -- snip ---
> else if(strtoupper($element[tag]) == strtoupper("gml:coordinates") &&
> $geom == true){
>                     $this->geometry[$this->member][$cnt_geom] =
> str_replace(",,","",str_replace(" ",",",trim($element[value])));
>                }
>                 else
> if(in_array($this->sepNameSpace($element[tag]),$this->geometries) &&
> $element[type] == "close"){
>                     $cnt_geom++;
>                     $geom = false;
> --- snap ---
>
> to
> --- snip ---
> else if(strtoupper($element[tag]) == strtoupper("gml:coordinates") &&
> $geom == true){
>                     $this->geometry[$this->member][$cnt_geom] =
> str_replace(",,","",str_replace(" ",",",trim($element[value])));
>                    $cnt_geom++;
>                 }
>                 else
> if(in_array($this->sepNameSpace($element[tag]),$this->geometries) &&
> $element[type] == "close"){
>                     //$cnt_geom++;
>                     $geom = false;
> --- snap ---
>
> regards
> Christoph
>
> --
> Christoph Ratke
> GeoInformationsDienst GmbH
> Götzenbreite 10
> 37124 Rosdorf
> Fon:    ++49-(0)551-7890-25
> eMail:  ratke at geoinformationsdienst.de
> Web:    www.geoinformationsdienst.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at mapbender.osgeo.org
> For additional commands, e-mail: dev-help at mapbender.osgeo.org
>
>


-- 
Arnulf Christl
http://www.ccgis.de





More information about the Mapbender_dev mailing list