[fdo-users] PostGIS : Can't insert in a non-feature class

Orest Halustchak orest.halustchak at autodesk.com
Fri Nov 16 12:50:58 EST 2007


Hi,

FdoIInsert is supposed to work on non-feature classes as well. There is no separate insert command for these.

Thanks,
Orest.

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Mateusz Loskot
Sent: Friday, November 16, 2007 12:30 PM
To: FDO Users Mail List
Subject: Re: [fdo-users] PostGIS : Can't insert in a non-feature class

Bruno Scott wrote:
> 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");
>     }
>
>    ...
> }
>
> I think this is a big limitation in the PostGis provider not beeing able to
> use non-feature class

Bruno,

I'm not sure but AFAIK the FdoIInsert interface is used to operate on
objects of feature only classes.

Could anyone correct me if I'm wrong?

Also, I'd be very thankful if you could report it as a ticket on the Trac.

Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list