Ticket #662 (closed defect: fixed)
ST_AddPoint is broken
| Reported by: | robe | Owned by: | pramsey |
|---|---|---|---|
| Priority: | blocker | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
Paul,
I didn't test your very very last set of changes, so this might be fixed. Your bulk load of changes didn't get too far in my maze of traps before setting off alarms.
Can you run the below and see if it works on your system. On my 9.1 alpha2 install it crashes the service.
CREATE TABLE pgis_garden (gid serial);
CREATE TABLE
SELECT AddGeometryColumn('pgis_garden','the_geom',ST_SRID(the_geom),GeometryType(the_geom),ST_CoordDim(the_geom))
FROM ((SELECT ST_MakePolygon(ST_AddPoint(ST_AddPoint(ST_MakeLine(ST_SetSRID(ST_MakePointM(i+m,j,m),4326),ST_SetSRID(ST_MakePointM(j+m,i-m,m),4326)),ST_SetSRID(ST_MakePointM(i,j,m),4326)),ST_SetSRID(ST_MakePointM(i+m,j,m),4326))) As the_geom
FROM generate_series(-10,50,20) As i
CROSS JOIN generate_series(50,70, 20) As j
CROSS JOIN generate_series(1,2) As m
ORDER BY i, j, m, i*j*m
)) As foo limit 1;
Change History
Note: See
TracTickets for help on using
tickets.
