[fdo-users] FdoPropertyTypeDefinitin::GetSpecificGeometryTypes returns too much

VJ jorg.verstraete at telin.ugent.be
Wed Apr 8 03:58:45 EDT 2009


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. Using the function FdoGeometricPropertyDefinition::GetGeometryTypes yields undesirable results (as I posted before).
Any suggestions on what is going on with this GetSpecificGeometryTypes problem?

Thanks!


Jörg
-- 
View this message in context: http://n2.nabble.com/FdoPropertyTypeDefinitin%3A%3AGetSpecificGeometryTypes-returns-too-much-tp2603742p2603742.html
Sent from the FDO Users mailing list archive at Nabble.com.



More information about the fdo-users mailing list