[OpenLayers-Dev] WFSDescribeFeatureType request in 2.7-rc1 extra "?"

Alexandre Dube adube at mapgears.com
Mon Sep 8 10:18:50 EDT 2008


Hi devs,

  I noticed a new strange behavior with OpenLayers 2.7-rc1 using 
WFSDescribeFeatureType format.

  Here's the request I'm using :
        var sUrl =  olWFSRoads.getFullRequestString({
            REQUEST: "DescribeFeatureType",
            SERVICE: "WFS",
            TYPENAME: "BDGA_ROUTE_L_ARC",
            VERSION: "1.0.0"
        });
        OpenLayers.loadURL(sUrl, '', this, setRoadAttributes);

  Here's the end of the URL in :
  2.6 : &SRS=EPSG%3A32198&TYPENAME=BDGA_ROUTE_L_ARC
  2.7 : &SRS=EPSG%3A32198&TYPENAME=BDGA_ROUTE_L_ARC?

  With 2.7, I get the following error : Invalid typename 
(BDGA_ROUTE_L_ARC?).  There should not be a "?" at the end of the request.

  Then, I realized that "typename" is already at the beginning of the 
request so I just quoted //TYPENAME: "BDGA_ROUTE_L_ARC", and it worked, 
but the "?" is still there ( at the end ) but it didn't affect 
anything.  I don't know if this extra "?" could appear elsewhere ( on 
other requests )

 Should I open a ticket for this ?

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Dev mailing list