[fdo-trac] #178: PostGIS : Can't insert in a non-feature class
FDO
trac_fdo at osgeo.org
Mon Apr 21 13:44:26 EDT 2008
#178: PostGIS : Can't insert in a non-feature class
------------------------------+---------------------------------------------
Reporter: bscott | Owner: mloskot
Type: defect | Status: assigned
Priority: blocker | Milestone: 3.4.0
Component: PostGIS Provider | Version: 3.2.0
Severity: 1 | Resolution:
Keywords: | External_id:
------------------------------+---------------------------------------------
Changes (by mloskot):
* status: new => assigned
Old description:
> In the PostGis provider it is not possible to insert in a non-feature
> class .
> The provider search first for the classdefinition in the "schemaDesc"
> And the schemadesc is only filled with the values from the postgis
> geometry_columns table.
>
> Here is the piece of code that make that call failed:
>
> FdoIFeatureReader* InsertCommand::Execute()
> {
> ...
>
> FdoPtr<FdoClassDefinition>
> classDef(schemaDesc->FindClassDefinition(mClassIdentifier));
> if (!classDef)
> {
> throw FdoCommandException::Create(L"[PostGIS] InsertCommand can not
> find class definition");
> }
>
> ...
> }
>
> Orest Halustchak wrote:
> FdoIInsert is supposed to work on non-feature classes as well. There is
> no separate insert command for these.
New description:
In the PostGis provider it is not possible to insert in a non-feature
class .
The provider search first for the classdefinition in the "schemaDesc"
And the schemadesc is only filled with the values from the postgis
geometry_columns table.
Here is the piece of code that make that call failed:
{{{
FdoIFeatureReader* InsertCommand::Execute()
{
...
FdoPtr<FdoClassDefinition>
classDef(schemaDesc->FindClassDefinition(mClassIdentifier));
if (!classDef)
{
throw FdoCommandException::Create(L"[PostGIS] InsertCommand can not
find class definition");
}
...
}
}}}
Orest Halustchak wrote:
FdoIInsert is supposed to work on non-feature classes as well. There is no
separate insert command for these.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/178#comment:3>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list