FdoPropertyTypeDefinitin::GetSpecificGeometryTypes returns too much

2 messages Options
Embed this post
Permalink
VJ

FdoPropertyTypeDefinitin::GetSpecificGeometryTypes returns too much

Reply Threaded More More options
Print post
Permalink
Hello,

I have a PostGIS database with this definition (omitted irrelevant fields):
CREATE TABLE abris
(
  gid serial NOT NULL,
  the_geom geometry,
  CONSTRAINT abris_pkey PRIMARY KEY (gid),
  CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2),
  CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL),
  CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = (-1))
)
WITH (OIDS=FALSE);
ALTER TABLE abris OWNER TO postgres;

When queried using FdoGeometricPropertyDefinition::GetSpecificGeometryTypes, it get a list of 4 allowed types: polygon, mulitpolygon, curvepolygon and multicurvepolygon. However, only the insertion of a multipolygon works (others throw an exception stating that the geometry constraint is not met.

Any suggestions on what is going on with this GetSpecificGeometryTypes problem?

Thanks!


Jörg

edit: removed a reference to GetGeometryTypes, as it was a misinterpretation on my behalf.
VJ

Re: FdoPropertyTypeDefinitin::GetSpecificGeometryTypes returns too much

Reply Threaded More More options
Print post
Permalink
Browsed the code, and apparently I misinterpreted the meaning of GetSpecificGeometryTypes...

It just lists the possible geometries that are possible according to the geometrictype... I need to find the constraint imposed on the geometry...