[fdo-trac] #510: FDO Schema Writer bases gml:AbstractFeatureType on
itself
FDO
trac_fdo at osgeo.org
Tue Apr 21 08:52:10 EDT 2009
#510: FDO Schema Writer bases gml:AbstractFeatureType on itself
-----------------------------+----------------------------------------------
Reporter: brentrobinson | Owner: brentrobinson
Type: defect | Status: new
Priority: minor | Milestone: 3.5.0
Component: FDO API | Version: 3.5.0
Severity: 3 | Keywords: FDO XML Schema writer AbstractFeatureType infinite recursion
External_id: |
-----------------------------+----------------------------------------------
The following code:
{{{
FdoFeatureSchemasP schemas = FdoFeatureSchemaCollection::Create(NULL);
FdoFeatureSchemasP schemas2 =
FdoFeatureSchemaCollection::Create(NULL);
FdoXmlFlagsP flags = FdoXmlFlags::Create(
L"",
FdoXmlFlags::ErrorLevel_VeryLow
);
schemas = FdoFeatureSchemaCollection::Create(NULL);
FdoXmlReaderP gmlReader = FdoGml212Schema::CreateReader();
schemas->ReadXml( gmlReader, flags );
// Write the schema back to an XML document.
schemas->WriteXml( L"schema_gml212a.xml", flags );
schemas2 = FdoFeatureSchemaCollection::Create(NULL);
schemas2->ReadXml( L"schema_gml212a.xml", flags );
}}}
leads to an infinite recursion on the 2nd ReadXml. The problem is that
WriteXML writes out gml:AbstractFeatureType as an extension of itself.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/510>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list