[Geoserver-devel] [jira] Created: (GEOS-1941) FeatureType cannot be created for postGIS table with single point

FeatureType cannot be created for postGIS table with single point
-----------------------------------------------------------------

                 Key: GEOS-1941
                 URL: http://jira.codehaus.org/browse/GEOS-1941
             Project: GeoServer
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.6.2
         Environment: Debian 4.0 rc2
            Reporter: Milo van der Linden
            Assignee: Andrea Aime
            Priority: Minor

When I create a spatial table in postgis with the following:

CREATE TABLE points
(
  gid serial NOT NULL,
  point_type integer,
  the_geom geometry,
  CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2),
  CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL),
  CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 4326)
)
WITHOUT OIDS;
ALTER TABLE points OWNER TO postgres;

insert into points(point_type, the_geom) values (0,SetSRID(MakePoint(50,50),4326))

I cannot create a featureType for this table because Geoserver reports:

The FeatureType 'point' has a NULL extent.
HINT: the dataset is empty or has no default geometry attribute.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira