Opened 14 years ago

Closed 14 years ago

#815 closed defect (invalid)

topology: topology.asgml(topo, visitedTable) give wrong results

Reported by: aperi2007 Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: master
Keywords: Cc:

Description

Hi, executing topology.AsGML with this parameter it give wrong results.

select o.id, topology.asgml(o.topo_geom,'caricamento.test'::regclass) as gml from topo_test._linee_topo as o;

The results are all like this

<gml:TopoCurve><gml:directedEdge xlink:href="#E1" /></gml:TopoCurve>

they are wrong because the xlink:href with the anchor don't link to any of existent in the result-set.

Change History (2)

comment:1 by strk, 14 years ago

The caricamento.test table must disagree with you. Check it doesn't have a row with element_type = 2 and element_id = 1.

The function assumes the visitedTable contains correct informations, and only queries and appends records to it. It's up to you to clean the table up when you're finished writing a set of TopoGeometries.

comment:2 by aperi2007, 14 years ago

Resolution: invalid
Status: newclosed

You are right. The visitedTable was not empty so it recycle the old value and put xlink:href. with an empty visitedTable it work right.

Note: See TracTickets for help on using tickets.