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

Bruno Scott bscott at geomapgis.com
Mon Nov 19 10:54:18 EST 2007


In the PostGis provider it is not possible in the actual implementation.
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.

Should i add a ticket for this?

Bruno



Orest Halustchak wrote:
> 
> 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
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users
> 
> 

-- 
View this message in context: http://www.nabble.com/PostGIS-%3A-Can%27t-insert-in-a-non-feature-class-tf4820492s18162.html#a13838675
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list