[fdo-trac] #565: WFS: Provider does not set FeatureClass Capabilities

FDO trac_fdo at osgeo.org
Thu Oct 1 17:00:26 EDT 2009


#565: WFS: Provider does not set FeatureClass Capabilities
--------------------------+-------------------------------------------------
 Reporter:  gregboone     |         Owner:  gregboone
     Type:  defect        |        Status:  assigned 
 Priority:  minor         |     Milestone:  3.5.0    
Component:  WFS Provider  |       Version:  3.4.0    
 Severity:  3             |    Resolution:           
 Keywords:                |   External_id:  1087759  
--------------------------+-------------------------------------------------
Changes (by gregboone):

  * status:  new => assigned

Old description:

> When constructing the WFS class definitions in
> FdoWfsConnection::GetSchemas(), the classes that are defined are not
> constructed with Class Capabilities
>

> The following code block needs to be added to the function.
>
> {{{
> // Perform 6. Set Class capabilities
> FdoPtr<FdoClassCapabilities> classCaps = classDef->GetCapabilities();
> if (NULL == classCaps)
> {
>     // Create the class capabilities.
>     classCaps = FdoClassCapabilities::Create(*classDef.p);
>     classCaps->SetSupportsLocking(false);
>     classCaps->SetSupportsLongTransactions(false);
>     classCaps->SetSupportsWrite(false);
>
>     // Set the class capabilities
>     classDef->SetCapabilities(classCaps);
> }
> }}}

New description:

 When constructing the WFS class definitions in
 FdoWfsConnection::!GetSchemas(), the classes that are defined are not
 constructed with Class Capabilities


 The following code block needs to be added to the function.

 {{{
 // Perform 6. Set Class capabilities
 FdoPtr<FdoClassCapabilities> classCaps = classDef->GetCapabilities();
 if (NULL == classCaps)
 {
     // Create the class capabilities.
     classCaps = FdoClassCapabilities::Create(*classDef.p);
     classCaps->SetSupportsLocking(false);
     classCaps->SetSupportsLongTransactions(false);
     classCaps->SetSupportsWrite(false);

     // Set the class capabilities
     classDef->SetCapabilities(classCaps);
 }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/565#comment:1>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list