Ticket #555 (closed defect: fixed)
Ability to define a geometry column as Polyhedral surface
| Reported by: | robe | Owned by: | colivier |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
Olivier,
I'm sure you are aware of these, but though I would itemize them as I come across so we don't forget.
CREATE TABLE pgis_garden (gid serial);
SELECT AddGeometryColumn('pgis_garden','the_geom',ST_SRID(the_geom),GeometryType(the_geom),ST_CoordDim(the_geom))
FROM ((SELECT ST_GeomFromEWKT(
'SRID=0;PolyhedralSurface(
((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),
((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1))
)') As the_geom) ) As foo limit 1;
gives error:
ERROR: Invalid type name - valid ones are:
SELECT GeometryType(the_geom), ST_GeometryType(the_geom) FROM ((SELECT ST_GeomFromEWKT( 'SRID=0;PolyhedralSurface( ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)), ((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) )') As the_geom) ) As foo limit 1;
Gives 'Unknown' for GeometryType? and ST_PolyhedralSurface for ST_GeometryType. You think we should allow GeometryType? to return POLYHEDRALSURFACE ?
Change History
Note: See
TracTickets for help on using
tickets.
