[OpenLayers-Users] Missing <ms:msGeometry> for vector layer

Frank Broniewski brfr at metrico.lu
Thu Jan 14 07:13:28 EST 2010


Thanks for the response, Eric. I tested that already without success.
I found meanwhile a Mapserver Bug report concerning this issue: 
http://trac.osgeo.org/mapserver/ticket/3235

So it's (luckily) not an OpenLayers issue
Frank

--------------------------------------------------
From: "Eric Lemoine" <eric.lemoine at camptocamp.com>
Sent: Thursday, January 14, 2010 12:41 PM
To: "Frank Broniewski" <brfr at metrico.lu>
Cc: <users at openlayers.org>
Subject: Re: [OpenLayers-Users] Missing <ms:msGeometry> for vector layer

> On Thu, Jan 14, 2010 at 11:31 AM, Frank Broniewski <brfr at metrico.lu> 
> wrote:
>> Hello
>>
>> I have a WFS Server set up and it works so far. Using OL.Layer.WFS gives 
>> me
>> my Layer as requested. However using OL.Layer.Vector with a WFS protocol
>> does not draw anything. Analyzing the request done in Firebug and 
>> comparing
>> it with the Layer.WFS request shows that the <ms:msGeometry> part is 
>> missing
>> from the response for the Layer.Vector. The Server is a UMN Mapserver ...
>> Any clues why the geometry is missing from the response?
>>
>> My layer definitions:
>>
>>  // works
>>    var winzer_1 = new OpenLayers.Layer.WFS (
>>                'Winzer1',
>> 'http://www.gis-hosting.lu/ogc/wms/strassederroemer',
>>                { typename: 'winzer' },
>>                { featureClass: OpenLayers.Feature.WFS }
>>    );
>>
>> // does not work
>>                var winzer_2 = new OpenLayers.Layer.Vector ('Winzer2',
>>                {
>>                                strategies: [new 
>> OpenLayers.Strategy.BBOX()],
>>                                protocol: new OpenLayers.Protocol.WFS (
>>                                        {
>>                                                url: 
>> 'http://www.gis-hosting.lu/ogc/service/strassederroemer',
>>                                                featureType: 'winzer',
>>                                                featureNS: 
>> "http://mapserver.gis.umn.edu/mapserver",
>>                                                featurePrefix: "ms",
>>                                                geometryName: "geom",
>
> what if you use geometryName: "the_geom" here?
>
>>                                                version: "1.0.0"
>>                                        }
>>                                )
>>                }
>>        );
>>
>>
>>
>>
>>
>> Frank Broniewski
>>
>> Metrico s.àr.l. ( http://www.metrico.lu )
>> 36, rue des Romains
>> L-5433 Niederdonven
>> Luxembourg
>>
>> Fon: +352 26 74 94 28
>> Fax: +352 26 74 94 99
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
>
> -- 
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com 




More information about the Users mailing list