[postgis-devel] a slight error in postgis TopologySummary

Sandro Santilli strk at keybit.net
Thu Sep 26 02:20:05 PDT 2013


On Thu, Sep 26, 2013 at 11:11:12AM +0200, Rémi Cura wrote:
> Hello,
> I noticed a slight error in the TopologySummary function :
> The layer count is wrong : it appears that if a layer is empty it is not
> counted.
> 
> Cheers,
> Rémi-C
> 
> Here is what I get :
> 
> SELECT TopologySummary('demo_zone_test')
> Topology demo_zone_test (11), SRID 931008, precision 0.1, has Z
> 88 nodes, 105 edges, 49 faces, 76 topogeoms in 2 layers
> Layer 1, type Lineal (2), 48 topogeoms
>  Deploy: demo_zone_test.route_demo.tg
> Layer 4, type Polygonal (3), 28 topogeoms
>  Deploy: demo_zone_test.bati_demo.tg
> Layer 5, type Polygonal (3), 0 topogeoms
>  Deploy: demo_zone_test.chaussee.tg

Uhm, Layer 5 is empty too, why is that counted ?
Are you using latest version of PostGIS ?
If you find the problem and have a patch, I'll be happy to apply it.

--strk;



More information about the postgis-devel mailing list