Opened 11 years ago

Closed 11 years ago

#2184 closed defect (fixed)

CopyTopology cannot copy topology which hasz

Reported by: jmorrison Owned by: strk
Priority: medium Milestone: PostGIS 2.0.3
Component: topology Version: 2.0.x
Keywords: history Cc:

Description

The following small test case:

select topology.createTopology('topo3d', 0, 0, true);
select st_addisonode('topo3d', NULL, ST_GeomFromText('POINT(1 2 3)'));
select topology.copyTopology('topo3d', 'topo3d-bis');

yields error:

ERROR:  Geometry has Z dimension but column does not

Looks like CopyTopology creates new topology without "hasz" arg, which presumably should mirror the old topology's hasz.

postgis_full_version() is:

POSTGIS="2.1.0SVN r10775" GEOS="3.4.0dev-CAPI-1.8.0 r3737" PROJ="Rel. 4.7.1, 23 September 2009" GDAL="GDAL 1.10dev, released 2011/12/29" LIBXML="2.7.8" TOPOLOGY RASTER

Change History (2)

comment:1 by strk, 11 years ago

Milestone: PostGIS 2.1.0PostGIS 2.0.3
Status: newassigned
Version: trunk2.0.x

comment:2 by strk, 11 years ago

Keywords: history added
Resolution: fixed
Status: assignedclosed

Fixed by r11022 in trunk and r11023 in 2.0 branch

Note: See TracTickets for help on using tickets.